@digabi/exam-engine-core 22.1.6-alpha.3 → 22.1.6-move-to-em.2
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/GradingInstructionContext.d.ts +4 -2
- package/dist/components/context/GradingInstructionContext.d.ts.map +1 -1
- package/dist/components/grading-instructions/AnswerGradingInstruction.d.ts.map +1 -1
- package/dist/components/grading-instructions/AnswerGradingInstruction.js +2 -3
- package/dist/components/grading-instructions/AnswerGradingInstruction.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 -2
- package/dist/components/grading-instructions/GradingInstructionProvider.js.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.js +2 -2
- package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/dist/main.css +1 -1
- package/package.json +2 -11
- package/dist/__tests__/EditableGradingInsatruction.test.d.ts +0 -1
- package/dist/__tests__/EditableGradingInsatruction.test.d.ts.map +0 -1
- package/dist/__tests__/EditableGradingInsatruction.test.js +0 -2
- package/dist/__tests__/EditableGradingInsatruction.test.js.map +0 -1
- package/dist/__tests__/EditableGradingInstruction.test.d.ts +0 -2
- package/dist/__tests__/EditableGradingInstruction.test.d.ts.map +0 -1
- package/dist/__tests__/EditableGradingInstruction.test.js +0 -174
- package/dist/__tests__/EditableGradingInstruction.test.js.map +0 -1
- package/dist/__tests__/EditableGradingInstructionLocalization.test.d.ts +0 -2
- package/dist/__tests__/EditableGradingInstructionLocalization.test.d.ts.map +0 -1
- package/dist/__tests__/EditableGradingInstructionLocalization.test.js +0 -75
- package/dist/__tests__/EditableGradingInstructionLocalization.test.js.map +0 -1
- package/dist/__tests__/FormatButton.test.d.ts +0 -2
- package/dist/__tests__/FormatButton.test.d.ts.map +0 -1
- package/dist/__tests__/FormatButton.test.js +0 -94
- package/dist/__tests__/FormatButton.test.js.map +0 -1
- package/dist/__tests__/editor/FormatButton.test.d.ts +0 -2
- package/dist/__tests__/editor/FormatButton.test.d.ts.map +0 -1
- package/dist/__tests__/editor/FormatButton.test.js +0 -98
- package/dist/__tests__/editor/FormatButton.test.js.map +0 -1
- package/dist/__tests__/editor/Formula.test.d.ts +0 -2
- package/dist/__tests__/editor/Formula.test.d.ts.map +0 -1
- package/dist/__tests__/editor/Formula.test.js +0 -61
- package/dist/__tests__/editor/Formula.test.js.map +0 -1
- package/dist/__tests__/editor/ImageUploadButton.test.d.ts +0 -2
- package/dist/__tests__/editor/ImageUploadButton.test.d.ts.map +0 -1
- package/dist/__tests__/editor/ImageUploadButton.test.js +0 -69
- package/dist/__tests__/editor/ImageUploadButton.test.js.map +0 -1
- package/dist/__tests__/editor/List.test.d.ts +0 -2
- package/dist/__tests__/editor/List.test.d.ts.map +0 -1
- package/dist/__tests__/editor/List.test.js +0 -72
- package/dist/__tests__/editor/List.test.js.map +0 -1
- package/dist/__tests__/editor/NBSP.test.d.ts +0 -2
- package/dist/__tests__/editor/NBSP.test.d.ts.map +0 -1
- package/dist/__tests__/editor/NBSP.test.js +0 -55
- package/dist/__tests__/editor/NBSP.test.js.map +0 -1
- package/dist/__tests__/editor/Table.test.d.ts +0 -2
- package/dist/__tests__/editor/Table.test.d.ts.map +0 -1
- package/dist/__tests__/editor/Table.test.js +0 -172
- package/dist/__tests__/editor/Table.test.js.map +0 -1
- package/dist/__tests__/editor/br.test.d.ts +0 -2
- package/dist/__tests__/editor/br.test.d.ts.map +0 -1
- package/dist/__tests__/editor/br.test.js +0 -39
- package/dist/__tests__/editor/br.test.js.map +0 -1
- package/dist/__tests__/editor/hr.test.d.ts +0 -2
- package/dist/__tests__/editor/hr.test.d.ts.map +0 -1
- package/dist/__tests__/editor/hr.test.js +0 -39
- package/dist/__tests__/editor/hr.test.js.map +0 -1
- package/dist/__tests__/editor/no-wrap.test.d.ts +0 -2
- package/dist/__tests__/editor/no-wrap.test.d.ts.map +0 -1
- package/dist/__tests__/editor/no-wrap.test.js +0 -43
- package/dist/__tests__/editor/no-wrap.test.js.map +0 -1
- package/dist/__tests__/editor/noWrap.test.d.ts +0 -2
- package/dist/__tests__/editor/noWrap.test.d.ts.map +0 -1
- package/dist/__tests__/editor/noWrap.test.js +0 -62
- package/dist/__tests__/editor/noWrap.test.js.map +0 -1
- package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts +0 -1
- package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts.map +0 -1
- package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js +0 -2
- package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js.map +0 -1
- package/dist/__tests__/utils/ProseMirrorWrapper.d.ts +0 -8
- package/dist/__tests__/utils/ProseMirrorWrapper.d.ts.map +0 -1
- package/dist/__tests__/utils/ProseMirrorWrapper.js +0 -44
- package/dist/__tests__/utils/ProseMirrorWrapper.js.map +0 -1
- package/dist/__tests__/utils/prosemirror.d.ts +0 -2
- package/dist/__tests__/utils/prosemirror.d.ts.map +0 -1
- package/dist/__tests__/utils/prosemirror.js +0 -30
- package/dist/__tests__/utils/prosemirror.js.map +0 -1
- package/dist/__tests__/utils/renderEditableGradingInstruction.d.ts +0 -4
- package/dist/__tests__/utils/renderEditableGradingInstruction.d.ts.map +0 -1
- package/dist/__tests__/utils/renderEditableGradingInstruction.js +0 -22
- package/dist/__tests__/utils/renderEditableGradingInstruction.js.map +0 -1
- package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts +0 -1
- package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts.map +0 -1
- package/dist/__tests__/utils/renderEditableGradingInstructions.js +0 -2
- package/dist/__tests__/utils/renderEditableGradingInstructions.js.map +0 -1
- package/dist/__tests__/utils/util.d.ts +0 -2
- package/dist/__tests__/utils/util.d.ts.map +0 -1
- package/dist/__tests__/utils/util.js +0 -10
- package/dist/__tests__/utils/util.js.map +0 -1
- package/dist/components/LexicalEditor.d.ts +0 -3
- package/dist/components/LexicalEditor.d.ts.map +0 -1
- package/dist/components/LexicalEditor.js +0 -44
- package/dist/components/LexicalEditor.js.map +0 -1
- package/dist/components/RTE.d.ts +0 -3
- package/dist/components/RTE.d.ts.map +0 -1
- package/dist/components/RTE.js +0 -23
- package/dist/components/RTE.js.map +0 -1
- package/dist/components/TablePlugin.d.ts +0 -1
- package/dist/components/TablePlugin.d.ts.map +0 -1
- package/dist/components/TablePlugin.js +0 -2
- package/dist/components/TablePlugin.js.map +0 -1
- package/dist/components/ToolBarPlugin.d.ts +0 -10
- package/dist/components/ToolBarPlugin.d.ts.map +0 -1
- package/dist/components/ToolBarPlugin.js +0 -111
- package/dist/components/ToolBarPlugin.js.map +0 -1
- 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/grading-instructions/EditableGradingInstruction.d.ts +0 -6
- package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +0 -1
- package/dist/components/grading-instructions/EditableGradingInstruction.js +0 -115
- package/dist/components/grading-instructions/EditableGradingInstruction.js.map +0 -1
- package/dist/components/grading-instructions/SlateTableEditor.d.ts +0 -22
- package/dist/components/grading-instructions/SlateTableEditor.d.ts.map +0 -1
- package/dist/components/grading-instructions/SlateTableEditor.js +0 -44
- package/dist/components/grading-instructions/SlateTableEditor.js.map +0 -1
- package/dist/components/grading-instructions/SlateUtils.d.ts +0 -5
- package/dist/components/grading-instructions/SlateUtils.d.ts.map +0 -1
- package/dist/components/grading-instructions/SlateUtils.js +0 -28
- package/dist/components/grading-instructions/SlateUtils.js.map +0 -1
- package/dist/components/grading-instructions/editor/FormatButton.d.ts +0 -9
- package/dist/components/grading-instructions/editor/FormatButton.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/FormatButton.js +0 -26
- package/dist/components/grading-instructions/editor/FormatButton.js.map +0 -1
- package/dist/components/grading-instructions/editor/Formula.d.ts +0 -15
- package/dist/components/grading-instructions/editor/Formula.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/Formula.js +0 -41
- package/dist/components/grading-instructions/editor/Formula.js.map +0 -1
- package/dist/components/grading-instructions/editor/FormulaPopup.d.ts +0 -7
- package/dist/components/grading-instructions/editor/FormulaPopup.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/FormulaPopup.js +0 -49
- package/dist/components/grading-instructions/editor/FormulaPopup.js.map +0 -1
- package/dist/components/grading-instructions/editor/ImageUploadButton.d.ts +0 -6
- package/dist/components/grading-instructions/editor/ImageUploadButton.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/ImageUploadButton.js +0 -77
- package/dist/components/grading-instructions/editor/ImageUploadButton.js.map +0 -1
- package/dist/components/grading-instructions/editor/List.d.ts +0 -9
- package/dist/components/grading-instructions/editor/List.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/List.js +0 -41
- package/dist/components/grading-instructions/editor/List.js.map +0 -1
- package/dist/components/grading-instructions/editor/MathPopup.d.ts +0 -10
- package/dist/components/grading-instructions/editor/MathPopup.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/MathPopup.js +0 -94
- package/dist/components/grading-instructions/editor/MathPopup.js.map +0 -1
- package/dist/components/grading-instructions/editor/Menu.d.ts +0 -1
- package/dist/components/grading-instructions/editor/Menu.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/Menu.js +0 -2
- package/dist/components/grading-instructions/editor/Menu.js.map +0 -1
- package/dist/components/grading-instructions/editor/NBSP.d.ts +0 -4
- package/dist/components/grading-instructions/editor/NBSP.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/NBSP.js +0 -17
- package/dist/components/grading-instructions/editor/NBSP.js.map +0 -1
- package/dist/components/grading-instructions/editor/Table.d.ts +0 -6
- package/dist/components/grading-instructions/editor/Table.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/Table.js +0 -186
- package/dist/components/grading-instructions/editor/Table.js.map +0 -1
- package/dist/components/grading-instructions/editor/findNode.d.ts +0 -3
- package/dist/components/grading-instructions/editor/findNode.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/findNode.js +0 -10
- package/dist/components/grading-instructions/editor/findNode.js.map +0 -1
- package/dist/components/grading-instructions/editor/keymap.d.ts +0 -2
- package/dist/components/grading-instructions/editor/keymap.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/keymap.js +0 -12
- package/dist/components/grading-instructions/editor/keymap.js.map +0 -1
- package/dist/components/grading-instructions/editor/localization.d.ts +0 -3
- package/dist/components/grading-instructions/editor/localization.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/localization.js +0 -36
- package/dist/components/grading-instructions/editor/localization.js.map +0 -1
- package/dist/components/grading-instructions/editor/math-svg.d.ts +0 -2
- package/dist/components/grading-instructions/editor/math-svg.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/math-svg.js +0 -22
- package/dist/components/grading-instructions/editor/math-svg.js.map +0 -1
- package/dist/components/grading-instructions/editor/math.d.ts +0 -4
- package/dist/components/grading-instructions/editor/math.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/math.js +0 -55
- package/dist/components/grading-instructions/editor/math.js.map +0 -1
- package/dist/components/grading-instructions/editor/noWrap.d.ts +0 -3
- package/dist/components/grading-instructions/editor/noWrap.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/noWrap.js +0 -13
- package/dist/components/grading-instructions/editor/noWrap.js.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/formulaSchema.d.ts +0 -4
- package/dist/components/grading-instructions/editor/schemas/formulaSchema.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/formulaSchema.js +0 -62
- package/dist/components/grading-instructions/editor/schemas/formulaSchema.js.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/image-schema.d.ts +0 -4
- package/dist/components/grading-instructions/editor/schemas/image-schema.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/image-schema.js +0 -47
- package/dist/components/grading-instructions/editor/schemas/image-schema.js.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/imageSchema.d.ts +0 -4
- package/dist/components/grading-instructions/editor/schemas/imageSchema.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/imageSchema.js +0 -47
- package/dist/components/grading-instructions/editor/schemas/imageSchema.js.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/listSchema.d.ts +0 -72
- package/dist/components/grading-instructions/editor/schemas/listSchema.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/listSchema.js +0 -7
- package/dist/components/grading-instructions/editor/schemas/listSchema.js.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/spanWithNowrapSchema.d.ts +0 -3
- package/dist/components/grading-instructions/editor/schemas/spanWithNowrapSchema.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/spanWithNowrapSchema.js +0 -19
- package/dist/components/grading-instructions/editor/schemas/spanWithNowrapSchema.js.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/tableSchema.d.ts +0 -3
- package/dist/components/grading-instructions/editor/schemas/tableSchema.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/tableSchema.js +0 -43
- package/dist/components/grading-instructions/editor/schemas/tableSchema.js.map +0 -1
- package/dist/components/grading-instructions/editor/spanWithClass.d.ts +0 -3
- package/dist/components/grading-instructions/editor/spanWithClass.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/spanWithClass.js +0 -19
- package/dist/components/grading-instructions/editor/spanWithClass.js.map +0 -1
- package/dist/components/grading-instructions/editor/spanWithNowrap.d.ts +0 -3
- package/dist/components/grading-instructions/editor/spanWithNowrap.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/spanWithNowrap.js +0 -19
- package/dist/components/grading-instructions/editor/spanWithNowrap.js.map +0 -1
- package/dist/components/grading-instructions/prosemirror.d.ts +0 -8
- package/dist/components/grading-instructions/prosemirror.d.ts.map +0 -1
- package/dist/components/grading-instructions/prosemirror.js +0 -108
- package/dist/components/grading-instructions/prosemirror.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/components/shared/PopupUtils.d.ts +0 -4
- package/dist/components/shared/PopupUtils.d.ts.map +0 -1
- package/dist/components/shared/PopupUtils.js +0 -26
- package/dist/components/shared/PopupUtils.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
@@ -3,12 +3,14 @@ export interface GradingInstructionPropsBase {
|
|
3
3
|
children?: React.ReactNode;
|
4
4
|
}
|
5
5
|
export interface EditableProps extends GradingInstructionPropsBase {
|
6
|
-
|
6
|
+
EditorComponent: React.ComponentType<{
|
7
|
+
element: Element;
|
8
|
+
}>;
|
7
9
|
onContentChange: (answerHTML: string, path: string) => void;
|
8
10
|
onSaveImage: (file: File, displayNumber?: string) => Promise<string>;
|
9
11
|
}
|
10
12
|
export interface NotEditableProps extends GradingInstructionPropsBase {
|
11
|
-
|
13
|
+
EditorComponent?: null | undefined;
|
12
14
|
onContentChange?: never;
|
13
15
|
onSaveImage?: never;
|
14
16
|
}
|
@@ -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,2BAA2B;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,MAAM,WAAW,aAAc,SAAQ,2BAA2B;IAChE,
|
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,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;IAC1D,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3D,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CACrE;AAED,MAAM,WAAW,gBAAiB,SAAQ,2BAA2B;IACnE,eAAe,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;IAClC,eAAe,CAAC,EAAE,KAAK,CAAA;IACvB,WAAW,CAAC,EAAE,KAAK,CAAA;CACpB;AAED,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG,gBAAgB,CAAA;AAEtE,eAAO,MAAM,yBAAyB,wCAAqD,CAAA"}
|
@@ -1 +1 @@
|
|
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;
|
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;AAGjE,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAQzE,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import React, { useContext } from 'react';
|
2
2
|
import { GradingInstructionContext } from '../context/GradingInstructionContext';
|
3
|
-
import EditableGradingInstruction from './EditableGradingInstruction';
|
4
3
|
const AnswerGradingInstruction = ({ element, renderChildNodes }) => {
|
5
|
-
const {
|
6
|
-
return (React.createElement("div", { className: "e-answer-grading-instruction e-multiline-results-text-answer e-mrg-b-2 e-pad-l-2" },
|
4
|
+
const { EditorComponent } = useContext(GradingInstructionContext);
|
5
|
+
return (React.createElement("div", { className: "e-answer-grading-instruction e-multiline-results-text-answer e-mrg-b-2 e-pad-l-2" }, EditorComponent ? React.createElement(EditorComponent, { element: element }) : renderChildNodes(element)));
|
7
6
|
};
|
8
7
|
export default AnswerGradingInstruction;
|
9
8
|
//# 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,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,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;AAEhF,MAAM,wBAAwB,GAAgD,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC9G,MAAM,EAAE,eAAe,EAAE,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAA;IAEjE,OAAO,CACL,6BAAK,SAAS,EAAC,kFAAkF,IAC9F,eAAe,CAAC,CAAC,CAAC,oBAAC,eAAe,IAAC,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAChF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { GradingInstructionProps } from '../context/GradingInstructionContext';
|
3
|
-
export declare const GradingInstructionProvider: ({
|
3
|
+
export declare const GradingInstructionProvider: ({ EditorComponent, onContentChange, onSaveImage, 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,gEAKpC,uBAAuB,sBAKzB,CAAA"}
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { GradingInstructionContext } from '../context/GradingInstructionContext';
|
3
|
-
export const GradingInstructionProvider = ({
|
4
|
-
const contextValue =
|
3
|
+
export const GradingInstructionProvider = ({ EditorComponent, onContentChange, onSaveImage, children }) => {
|
4
|
+
const contextValue = EditorComponent
|
5
|
+
? { EditorComponent, onContentChange: onContentChange, onSaveImage }
|
6
|
+
: { EditorComponent };
|
5
7
|
return React.createElement(GradingInstructionContext.Provider, { value: contextValue }, children);
|
6
8
|
};
|
7
9
|
//# 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,
|
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,eAAe,EACf,eAAe,EACf,WAAW,EACX,QAAQ,EACgB,EAAE,EAAE;IAC5B,MAAM,YAAY,GAAG,eAAe;QAClC,CAAC,CAAC,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,WAAW,EAAE;QACpE,CAAC,CAAC,EAAE,eAAe,EAAE,CAAA;IACvB,OAAO,oBAAC,yBAAyB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,IAAG,QAAQ,CAAsC,CAAA;AACjH,CAAC,CAAA"}
|
@@ -71,7 +71,7 @@ const renderChildNodes = createRenderChildNodes({
|
|
71
71
|
'section-title': SectionTitle,
|
72
72
|
video: Recording
|
73
73
|
});
|
74
|
-
const GradingInstructions = ({ doc, annotations, onClickAnnotation, onSaveAnnotation,
|
74
|
+
const GradingInstructions = ({ doc, annotations, onClickAnnotation, onSaveAnnotation, EditorComponent, onContentChange, onSaveImage }) => {
|
75
75
|
const root = doc.documentElement;
|
76
76
|
const { date, dateTimeFormatter, dayCode, examCode, language, subjectLanguage } = useContext(CommonExamContext);
|
77
77
|
const examTitle = findChildElement(root, 'exam-title');
|
@@ -85,7 +85,7 @@ const GradingInstructions = ({ doc, annotations, onClickAnnotation, onSaveAnnota
|
|
85
85
|
const i18n = useCached(() => initI18n(language, examCode, dayCode));
|
86
86
|
useEffect(changeLanguage(i18n, language));
|
87
87
|
useEffect(scrollToHash, []);
|
88
|
-
const props =
|
88
|
+
const props = EditorComponent ? { EditorComponent, onContentChange, onSaveImage } : { EditorComponent };
|
89
89
|
return (React.createElement(AnnotationProvider, { annotations: annotations, onClickAnnotation: onClickAnnotation, onSaveAnnotation: onSaveAnnotation },
|
90
90
|
React.createElement(GradingInstructionProvider, { ...props },
|
91
91
|
React.createElement(I18nextProvider, { i18n: i18n },
|
@@ -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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,EAAE,QAAQ;IAClB,gBAAgB,EAAE,aAAa;IAC/B,sBAAsB,EAAE,mBAAmB;IAC3C,8BAA8B,EAAE,wBAAwB;IACxD,iBAAiB,EAAE,cAAc;IACjC,WAAW,EAAE,eAAe;IAC5B,oBAAoB,EAAE,gBAAgB;IACtC,aAAa,EAAE,gBAAgB;IAC/B,OAAO,EAAE,OAAO;IAChB,eAAe,EAAE,YAAY;IAC7B,KAAK,EAAE,SAAS;CACjB,CAAC,CAAA;AAEF,MAAM,mBAAmB,GAAyF,CAAC,EACjH,GAAG,EACH,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,
|
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,8B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