@digabi/exam-engine-core 22.0.0 → 22.0.1-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +3 -0
- package/dist/components/context/CommonExamContext.js.map +1 -1
- package/dist/components/context/GradingInstructionContext.d.ts +12 -4
- package/dist/components/context/GradingInstructionContext.d.ts.map +1 -1
- package/dist/components/context/GradingInstructionContext.js.map +1 -1
- package/dist/components/grading-instructions/AnswerGradingInstruction.d.ts.map +1 -1
- package/dist/components/grading-instructions/AnswerGradingInstruction.js +7 -2
- package/dist/components/grading-instructions/AnswerGradingInstruction.js.map +1 -1
- package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +1 -1
- package/dist/components/grading-instructions/EditableGradingInstruction.js +20 -5
- package/dist/components/grading-instructions/EditableGradingInstruction.js.map +1 -1
- package/dist/components/grading-instructions/ExamGradingInstruction.d.ts.map +1 -1
- package/dist/components/grading-instructions/ExamGradingInstruction.js +7 -2
- package/dist/components/grading-instructions/ExamGradingInstruction.js.map +1 -1
- package/dist/components/grading-instructions/GradingInstructionProvider.d.ts +1 -1
- package/dist/components/grading-instructions/GradingInstructionProvider.d.ts.map +1 -1
- package/dist/components/grading-instructions/GradingInstructionProvider.js +4 -5
- package/dist/components/grading-instructions/GradingInstructionProvider.js.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.d.ts +2 -1
- package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.js +18 -15
- package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/package.json +2 -2
- package/dist/components/context/AnnotationContext.d.ts +0 -8
- package/dist/components/context/AnnotationContext.d.ts.map +0 -1
- package/dist/components/context/AnnotationContext.js +0 -3
- package/dist/components/context/AnnotationContext.js.map +0 -1
- 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/components/exam/FinishExam.d.ts +0 -5
- package/dist/components/exam/FinishExam.d.ts.map +0 -1
- package/dist/components/exam/FinishExam.js +0 -17
- package/dist/components/exam/FinishExam.js.map +0 -1
- package/dist/components/grading/reactAnnotation.d.ts +0 -4
- package/dist/components/grading/reactAnnotation.d.ts.map +0 -1
- package/dist/components/grading/reactAnnotation.js +0 -54
- package/dist/components/grading/reactAnnotation.js.map +0 -1
- package/dist/components/results/isExamFinishPageHook.d.ts +0 -2
- package/dist/components/results/isExamFinishPageHook.d.ts.map +0 -1
- package/dist/components/results/isExamFinishPageHook.js +0 -7
- package/dist/components/results/isExamFinishPageHook.js.map +0 -1
- package/dist/components/shared/CreateAnnotationPopup.d.ts +0 -6
- package/dist/components/shared/CreateAnnotationPopup.d.ts.map +0 -1
- package/dist/components/shared/CreateAnnotationPopup.js +0 -11
- package/dist/components/shared/CreateAnnotationPopup.js.map +0 -1
- package/dist/store/listenerMiddleware.d.ts +0 -89
- package/dist/store/listenerMiddleware.d.ts.map +0 -1
- package/dist/store/listenerMiddleware.js +0 -6
- package/dist/store/listenerMiddleware.js.map +0 -1
@@ -10,6 +10,7 @@ export interface CommonExamContext {
|
|
10
10
|
language: string;
|
11
11
|
/** The language of the subject matter. Differs from the language in foreign language exams. */
|
12
12
|
subjectLanguage: string;
|
13
|
+
examType: string;
|
13
14
|
maxAnswers?: number;
|
14
15
|
maxScore?: number;
|
15
16
|
sections: Element[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CommonExamContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/CommonExamContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAG9C,MAAM,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,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/C,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,eAAO,MAAM,iBAAiB,kCAA+C,CAAA;AAE7E,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,eAAe,EAC7D,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAChC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAyBxB"}
|
@@ -4,9 +4,11 @@ import { withContext } from './withContext';
|
|
4
4
|
export const CommonExamContext = React.createContext({});
|
5
5
|
export function withCommonExamContext(Component) {
|
6
6
|
return withContext(CommonExamContext, ({ attachmentsURL, resolveAttachment, doc, abitti2 }) => {
|
7
|
+
var _a;
|
7
8
|
const root = doc.documentElement;
|
8
9
|
const maybeDate = getAttribute(root, 'date');
|
9
10
|
const language = getAttribute(root, 'exam-lang');
|
11
|
+
const examType = (_a = getAttribute(root, 'exam-type')) !== null && _a !== void 0 ? _a : 'normal';
|
10
12
|
const subjectLanguage = getAttribute(root, 'lang') || language;
|
11
13
|
return {
|
12
14
|
attachmentsURL,
|
@@ -16,6 +18,7 @@ export function withCommonExamContext(Component) {
|
|
16
18
|
examCode: getAttribute(root, 'exam-code'),
|
17
19
|
language,
|
18
20
|
subjectLanguage,
|
21
|
+
examType,
|
19
22
|
maxAnswers: getNumericAttribute(root, 'max-answers'),
|
20
23
|
maxScore: getNumericAttribute(root, 'max-score'),
|
21
24
|
sections: queryAll(root, 'section'),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CommonExamContext.js","sourceRoot":"","sources":["../../../src/components/context/CommonExamContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OA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,CAAC;YACvC,QAAQ,EAAE,YAAY,CAAC,IAAI,EAAE,WAAW,CAAC;YACzC,QAAQ;YACR,eAAe;YACf,QAAQ;YACR,UAAU,EAAE,mBAAmB,CAAC,IAAI,EAAE,aAAa,CAAC;YACpD,QAAQ,EAAE,mBAAmB,CAAC,IAAI,EAAE,WAAW,CAAC;YAChD,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;YACnC,iBAAiB;YACjB,OAAO,EAAE,OAAO,IAAI,KAAK;YACzB,IAAI;SACL,CAAA;IACH,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;AACf,CAAC"}
|
@@ -1,9 +1,17 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
export interface
|
2
|
+
export interface GradingInstructionPropsBase {
|
3
3
|
children?: React.ReactNode;
|
4
|
-
editable?: boolean;
|
5
|
-
onChange?: (answerHTML: string, displayNumber?: string) => void;
|
6
|
-
saveScreenshot?: (type: string, data: Buffer, displayNumber?: string) => Promise<string>;
|
7
4
|
}
|
5
|
+
export interface EditableProps extends GradingInstructionPropsBase {
|
6
|
+
editable: true;
|
7
|
+
onContentChange: (answerHTML: string, xpath: string | null) => void;
|
8
|
+
saveScreenshot: (type: string, data: Buffer, displayNumber?: string) => Promise<string>;
|
9
|
+
}
|
10
|
+
export interface NotEditableProps extends GradingInstructionPropsBase {
|
11
|
+
editable?: false;
|
12
|
+
onContentChange?: never;
|
13
|
+
saveScreenshot?: never;
|
14
|
+
}
|
15
|
+
export type GradingInstructionProps = EditableProps | NotEditableProps;
|
8
16
|
export declare const GradingInstructionContext: React.Context<GradingInstructionProps>;
|
9
17
|
//# sourceMappingURL=GradingInstructionContext.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"GradingInstructionContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/GradingInstructionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,
|
1
|
+
{"version":3,"file":"GradingInstructionContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/GradingInstructionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,MAAM,WAAW,aAAc,SAAQ,2BAA2B;IAChE,QAAQ,EAAE,IAAI,CAAA;IACd,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACnE,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CACxF;AAED,MAAM,WAAW,gBAAiB,SAAQ,2BAA2B;IACnE,QAAQ,CAAC,EAAE,KAAK,CAAA;IAChB,eAAe,CAAC,EAAE,KAAK,CAAA;IACvB,cAAc,CAAC,EAAE,KAAK,CAAA;CACvB;AAED,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG,gBAAgB,CAAA;AAEtE,eAAO,MAAM,yBAAyB,wCAAqD,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"GradingInstructionContext.js","sourceRoot":"","sources":["../../../src/components/context/GradingInstructionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
1
|
+
{"version":3,"file":"GradingInstructionContext.js","sourceRoot":"","sources":["../../../src/components/context/GradingInstructionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAoBzB,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,CAAC,aAAa,CAAC,EAA6B,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AnswerGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/AnswerGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"AnswerGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/AnswerGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAIjE,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAOzE,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
@@ -1,4 +1,9 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
|
1
|
+
import React, { useContext } from 'react';
|
2
|
+
import { GradingInstructionContext } from '../context/GradingInstructionContext';
|
3
|
+
import { EditableGradingInstruction } from './EditableGradingInstruction';
|
4
|
+
const AnswerGradingInstruction = ({ element, renderChildNodes }) => {
|
5
|
+
const { editable } = useContext(GradingInstructionContext);
|
6
|
+
return (React.createElement("div", { className: "e-answer-grading-instruction e-multiline-results-text-answer e-mrg-b-2 e-pad-l-2" }, editable ? React.createElement(EditableGradingInstruction, { element: element }) : renderChildNodes(element)));
|
7
|
+
};
|
3
8
|
export default AnswerGradingInstruction;
|
4
9
|
//# sourceMappingURL=AnswerGradingInstruction.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AnswerGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/AnswerGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
1
|
+
{"version":3,"file":"AnswerGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/AnswerGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAA;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE,MAAM,wBAAwB,GAAgD,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC9G,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAA;IAC1D,OAAO,CACL,6BAAK,SAAS,EAAC,kFAAkF,IAC9F,QAAQ,CAAC,CAAC,CAAC,oBAAC,0BAA0B,IAAC,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CACpF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EditableGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAA;AAM5D,wBAAgB,0BAA0B,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,
|
1
|
+
{"version":3,"file":"EditableGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAA;AAM5D,wBAAgB,0BAA0B,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,qBA8B3E"}
|
@@ -4,22 +4,37 @@ import { GradingInstructionContext } from '../context/GradingInstructionContext'
|
|
4
4
|
import { CommonExamContext } from '../context/CommonExamContext';
|
5
5
|
import { QuestionContext } from '../context/QuestionContext';
|
6
6
|
export function EditableGradingInstruction({ element }) {
|
7
|
-
const { language } = useContext(CommonExamContext);
|
7
|
+
const { language, examType } = useContext(CommonExamContext);
|
8
8
|
const { displayNumber } = useContext(QuestionContext);
|
9
|
-
const {
|
9
|
+
const { onContentChange, saveScreenshot } = useContext(GradingInstructionContext);
|
10
10
|
const answerGradingInstructionDiv = useRef(null);
|
11
11
|
useEffect(() => {
|
12
12
|
if (answerGradingInstructionDiv.current) {
|
13
|
+
const xpath = answerGradingInstructionDiv.current.getAttribute('data-xpath');
|
13
14
|
makeRichText(answerGradingInstructionDiv.current, {
|
14
15
|
locale: language.startsWith('sv') ? 'SV' : 'FI',
|
15
16
|
screenshotSaver: saveScreenshot ? ({ type, data }) => saveScreenshot(type, data, displayNumber) : undefined,
|
16
|
-
//forceInit: true,
|
17
17
|
screenshotImageSelector: 'img[src^="data:image/png"], img[src^="data:image/jpeg"]',
|
18
18
|
fileTypes: ['image/png', 'image/jpeg']
|
19
|
-
}, ({ answerHTML }) => (
|
19
|
+
}, ({ answerHTML }) => (onContentChange ? onContentChange(answerHTML, xpath) : () => { }));
|
20
20
|
answerGradingInstructionDiv.current.replaceChildren(element);
|
21
21
|
}
|
22
22
|
}, [language]);
|
23
|
-
return React.createElement("div", { ref: answerGradingInstructionDiv });
|
23
|
+
return (React.createElement("div", { ref: answerGradingInstructionDiv, "data-xpath": xpathOf(element), "data-language": language, "data-exam-type": examType }));
|
24
|
+
}
|
25
|
+
function indexOf(element) {
|
26
|
+
if (element.parentElement) {
|
27
|
+
const siblings = Array.from(element.parentElement.querySelectorAll(`:scope > ${element.localName}`));
|
28
|
+
const index = siblings.findIndex(s => s == element);
|
29
|
+
return `[${index + 1}]`;
|
30
|
+
}
|
31
|
+
return '';
|
32
|
+
}
|
33
|
+
function xpathOf(element) {
|
34
|
+
const index = indexOf(element);
|
35
|
+
if (element.parentElement) {
|
36
|
+
return `${xpathOf(element.parentElement)}/${element.nodeName}${index}`;
|
37
|
+
}
|
38
|
+
return `/${element.nodeName}${index}`;
|
24
39
|
}
|
25
40
|
//# sourceMappingURL=EditableGradingInstruction.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EditableGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAA;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,MAAM,UAAU,0BAA0B,CAAC,EAAE,OAAO,EAAwB;IAC1E,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;
|
1
|
+
{"version":3,"file":"EditableGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAA;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,MAAM,UAAU,0BAA0B,CAAC,EAAE,OAAO,EAAwB;IAC1E,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IAC5D,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IACrD,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAA;IACjF,MAAM,2BAA2B,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAEhE,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,2BAA2B,CAAC,OAAO,EAAE,CAAC;YACxC,MAAM,KAA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GAAG,CAAC,GAAG,CAAA;IACzB,CAAC;IACD,OAAO,EAAE,CAAA;AACX,CAAC;AAED,SAAS,OAAO,CAAC,OAAgB;IAC/B,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC9B,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;QAC1B,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,OAAO,CAAC,QAAQ,GAAG,KAAK,EAAE,CAAA;IACxE,CAAC;IACD,OAAO,IAAI,OAAO,CAAC,QAAQ,GAAG,KAAK,EAAE,CAAA;AACvC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExamGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/ExamGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"ExamGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/ExamGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAIjE,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAQvE,CAAA;AACD,eAAe,sBAAsB,CAAA"}
|
@@ -1,4 +1,9 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
|
1
|
+
import React, { useContext } from 'react';
|
2
|
+
import { GradingInstructionContext } from '../context/GradingInstructionContext';
|
3
|
+
import { EditableGradingInstruction } from './EditableGradingInstruction';
|
4
|
+
const ExamGradingInstruction = ({ element, renderChildNodes }) => {
|
5
|
+
const { editable } = useContext(GradingInstructionContext);
|
6
|
+
return (React.createElement("div", { className: "e-exam-grading-instruction notification e-pad-4", "data-annotation-anchor": "exam-grading-instruction" }, editable ? React.createElement(EditableGradingInstruction, { element: element }) : renderChildNodes(element)));
|
7
|
+
};
|
3
8
|
export default ExamGradingInstruction;
|
4
9
|
//# sourceMappingURL=ExamGradingInstruction.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExamGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/ExamGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
1
|
+
{"version":3,"file":"ExamGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/ExamGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAA;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAEzE,MAAM,sBAAsB,GAAgD,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC5G,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAA;IAE1D,OAAO,CACL,6BAAK,SAAS,EAAC,iDAAiD,4BAAwB,0BAA0B,IAC/G,QAAQ,CAAC,CAAC,CAAC,oBAAC,0BAA0B,IAAC,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CACpF,CACP,CAAA;AACH,CAAC,CAAA;AACD,eAAe,sBAAsB,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { GradingInstructionProps } from '../context/GradingInstructionContext';
|
3
|
-
export declare const GradingInstructionProvider: ({ editable,
|
3
|
+
export declare const GradingInstructionProvider: ({ editable, onContentChange, saveScreenshot, children }: GradingInstructionProps) => React.JSX.Element;
|
4
4
|
//# sourceMappingURL=GradingInstructionProvider.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"GradingInstructionProvider.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructionProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAA6B,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAEzG,eAAO,MAAM,0BAA0B,
|
1
|
+
{"version":3,"file":"GradingInstructionProvider.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructionProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAA6B,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAEzG,eAAO,MAAM,0BAA0B,4DAKpC,uBAAuB,sBAGzB,CAAA"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { GradingInstructionContext } from '../context/GradingInstructionContext';
|
3
|
-
export const GradingInstructionProvider = ({ editable,
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
} }, children));
|
3
|
+
export const GradingInstructionProvider = ({ editable, onContentChange, saveScreenshot, children }) => {
|
4
|
+
const contextValue = editable ? { editable, onContentChange, saveScreenshot } : { editable };
|
5
|
+
return React.createElement(GradingInstructionContext.Provider, { value: contextValue }, children);
|
6
|
+
};
|
8
7
|
//# sourceMappingURL=GradingInstructionProvider.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"GradingInstructionProvider.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructionProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,yBAAyB,EAA2B,MAAM,sCAAsC,CAAA;AAEzG,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EACzC,QAAQ,EACR,
|
1
|
+
{"version":3,"file":"GradingInstructionProvider.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructionProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,yBAAyB,EAA2B,MAAM,sCAAsC,CAAA;AAEzG,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EACzC,QAAQ,EACR,eAAe,EACf,cAAc,EACd,QAAQ,EACgB,EAAE,EAAE;IAC5B,MAAM,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAA;IAC5F,OAAO,oBAAC,yBAAyB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,IAAG,QAAQ,CAAsC,CAAA;AACjH,CAAC,CAAA"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { AnnotationProps, CommonExamProps } from '../exam/Exam';
|
3
|
+
import { GradingInstructionProps } from '../context/GradingInstructionContext';
|
3
4
|
export declare const GradingInstructionsPageTitle: React.FunctionComponent;
|
4
|
-
declare const _default: React.MemoExoticComponent<React.ComponentType<CommonExamProps & AnnotationProps>>;
|
5
|
+
declare const _default: React.MemoExoticComponent<React.ComponentType<CommonExamProps & AnnotationProps & GradingInstructionProps>>;
|
5
6
|
export default _default;
|
6
7
|
//# sourceMappingURL=GradingInstructions.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"GradingInstructions.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAcpD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;
|
1
|
+
{"version":3,"file":"GradingInstructions.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAcpD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAoB/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAmH9E,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,iBAGhD,CAAA;;AAED,wBAAqE"}
|
@@ -30,6 +30,7 @@ import QuestionTitle from './QuestionTitle';
|
|
30
30
|
import Recording from './Recording';
|
31
31
|
import Section from './Section';
|
32
32
|
import SectionTitle from './SectionTitle';
|
33
|
+
import { GradingInstructionProvider } from './GradingInstructionProvider';
|
33
34
|
const renderIfWithinGradingInstructionContent = renderIf(({ element }) => queryAncestors(element, [
|
34
35
|
// Keep in sync with lists in mastering/index.ts
|
35
36
|
'answer-grading-instruction',
|
@@ -70,7 +71,7 @@ const renderChildNodes = createRenderChildNodes({
|
|
70
71
|
'section-title': SectionTitle,
|
71
72
|
video: Recording
|
72
73
|
});
|
73
|
-
const GradingInstructions = ({ doc, annotations, onClickAnnotation, onSaveAnnotation }) => {
|
74
|
+
const GradingInstructions = ({ doc, annotations, onClickAnnotation, onSaveAnnotation, editable, onContentChange, saveScreenshot }) => {
|
74
75
|
const root = doc.documentElement;
|
75
76
|
const { date, dateTimeFormatter, dayCode, examCode, language, subjectLanguage } = useContext(CommonExamContext);
|
76
77
|
const examTitle = findChildElement(root, 'exam-title');
|
@@ -84,21 +85,23 @@ const GradingInstructions = ({ doc, annotations, onClickAnnotation, onSaveAnnota
|
|
84
85
|
const i18n = useCached(() => initI18n(language, examCode, dayCode));
|
85
86
|
useEffect(changeLanguage(i18n, language));
|
86
87
|
useEffect(scrollToHash, []);
|
88
|
+
const props = editable ? { editable, onContentChange, saveScreenshot } : { editable };
|
87
89
|
return (React.createElement(AnnotationProvider, { annotations: annotations, onClickAnnotation: onClickAnnotation, onSaveAnnotation: onSaveAnnotation },
|
88
|
-
React.createElement(
|
89
|
-
React.createElement(
|
90
|
-
React.createElement(
|
91
|
-
|
92
|
-
React.createElement(
|
93
|
-
React.createElement(
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
React.createElement("
|
98
|
-
|
99
|
-
|
100
|
-
React.createElement(
|
101
|
-
|
90
|
+
React.createElement(GradingInstructionProvider, { ...props },
|
91
|
+
React.createElement(I18nextProvider, { i18n: i18n },
|
92
|
+
React.createElement("main", { className: "e-exam e-grading-instructions", lang: subjectLanguage },
|
93
|
+
React.createElement(React.StrictMode, null),
|
94
|
+
React.createElement(SectionElement, { "aria-labelledby": examTitleId },
|
95
|
+
React.createElement(DocumentTitle, { id: examTitleId },
|
96
|
+
React.createElement(GradingInstructionsPageTitle, null),
|
97
|
+
" ",
|
98
|
+
examTitle && renderChildNodes(examTitle)),
|
99
|
+
date && (React.createElement("p", null,
|
100
|
+
React.createElement("strong", null, dateTimeFormatter.format(date)))),
|
101
|
+
examGradingInstruction && (React.createElement(ExamGradingInstruction, { element: examGradingInstruction, renderChildNodes })),
|
102
|
+
tableOfContents && (React.createElement("div", { className: "main-toc-container" },
|
103
|
+
React.createElement(TableOfContents, { element: tableOfContents, renderChildNodes })))),
|
104
|
+
renderChildNodes(root))))));
|
102
105
|
};
|
103
106
|
// Wrap to a separate component, since we can't use translation hooks in the root component.
|
104
107
|
export const GradingInstructionsPageTitle = () => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"GradingInstructions.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAC5C,OAAO,kBAAkB,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AAEvF,OAAO,mBAAmB,MAAM,6BAA6B,CAAA;AAC7D,OAAO,gBAAgB,MAAM,0BAA0B,CAAA;AACvD,OAAO,iBAAiB,MAAM,2BAA2B,CAAA;AACzD,OAAO,eAAe,MAAM,2BAA2B,CAAA;AACvD,OAAO,IAAI,MAAM,gBAAgB,CAAA;AACjC,OAAO,OAAO,MAAM,mBAAmB,CAAA;AACvC,OAAO,KAAK,MAAM,iBAAiB,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,wBAAwB,MAAM,4BAA4B,CAAA;AACjE,OAAO,gBAAgB,MAAM,oBAAoB,CAAA;AACjD,OAAO,sBAAsB,MAAM,0BAA0B,CAAA;AAC7D,OAAO,sBAAsB,MAAM,0BAA0B,CAAA;AAC7D,OAAO,QAAQ,MAAM,YAAY,CAAA;AACjC,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAC3C,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,YAAY,MAAM,gBAAgB,CAAA;
|
1
|
+
{"version":3,"file":"GradingInstructions.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstructions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,e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