@digabi/exam-engine-core 22.0.7-alpha.0 → 22.1.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/GradingInstructionContext.d.ts +6 -11
- 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 +4 -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 +1 -4
- package/dist/components/grading-instructions/GradingInstructionProvider.js.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.d.ts +6 -2
- package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.js +2 -3
- 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 -12
- 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 -112
- package/dist/__tests__/EditableGradingInstructionLocalization.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 -94
- 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/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/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/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__/editor/spanWithLang.test.d.ts +0 -2
- package/dist/__tests__/editor/spanWithLang.test.d.ts.map +0 -1
- package/dist/__tests__/editor/spanWithLang.test.js +0 -38
- package/dist/__tests__/editor/spanWithLang.test.js.map +0 -1
- package/dist/__tests__/editor/subSup.test.d.ts +0 -2
- package/dist/__tests__/editor/subSup.test.d.ts.map +0 -1
- package/dist/__tests__/editor/subSup.test.js +0 -50
- package/dist/__tests__/editor/subSup.test.js.map +0 -1
- package/dist/__tests__/editor/undoRedo.test.d.ts +0 -2
- package/dist/__tests__/editor/undoRedo.test.d.ts.map +0 -1
- package/dist/__tests__/editor/undoRedo.test.js +0 -61
- package/dist/__tests__/editor/undoRedo.test.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/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/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 -136
- package/dist/components/grading-instructions/EditableGradingInstruction.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/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/UndoRedoButtons.d.ts +0 -6
- package/dist/components/grading-instructions/editor/UndoRedoButtons.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/UndoRedoButtons.js +0 -19
- package/dist/components/grading-instructions/editor/UndoRedoButtons.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/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/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/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 -61
- 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/localizationSchema.d.ts +0 -3
- package/dist/components/grading-instructions/editor/schemas/localizationSchema.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/localizationSchema.js +0 -39
- package/dist/components/grading-instructions/editor/schemas/localizationSchema.js.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/spanWithLangSchema.d.ts +0 -3
- package/dist/components/grading-instructions/editor/schemas/spanWithLangSchema.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/spanWithLangSchema.js +0 -19
- package/dist/components/grading-instructions/editor/schemas/spanWithLangSchema.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/subSupSchema.d.ts +0 -3
- package/dist/components/grading-instructions/editor/schemas/subSupSchema.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/schemas/subSupSchema.js +0 -23
- package/dist/components/grading-instructions/editor/schemas/subSupSchema.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 -53
- package/dist/components/grading-instructions/editor/schemas/tableSchema.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
@@ -2,16 +2,11 @@ import React from 'react';
|
|
2
2
|
export interface GradingInstructionPropsBase {
|
3
3
|
children?: React.ReactNode;
|
4
4
|
}
|
5
|
-
export
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
}
|
10
|
-
|
11
|
-
editable?: false;
|
12
|
-
onContentChange?: never;
|
13
|
-
onSaveImage?: never;
|
14
|
-
}
|
15
|
-
export type GradingInstructionProps = EditableProps | NotEditableProps;
|
5
|
+
export type GradingInstructionProps = GradingInstructionPropsBase & {
|
6
|
+
EditorComponent?: React.ComponentType<{
|
7
|
+
element: Element;
|
8
|
+
displayNumber: string;
|
9
|
+
}>;
|
10
|
+
};
|
16
11
|
export declare const GradingInstructionContext: React.Context<GradingInstructionProps>;
|
17
12
|
//# 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,2BAA2B;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,MAAM,
|
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,MAAM,uBAAuB,GAAG,2BAA2B,GAAG;IAClE,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACnF,CAAA;AAED,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;AAUzB,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,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAIjE,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,
|
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,CAazE,CAAA;AAED,eAAe,wBAAwB,CAAA"}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React, { useContext } from 'react';
|
2
2
|
import { GradingInstructionContext } from '../context/GradingInstructionContext';
|
3
|
-
import
|
3
|
+
import { QuestionContext } from '../context/QuestionContext';
|
4
4
|
const AnswerGradingInstruction = ({ element, renderChildNodes }) => {
|
5
|
-
const {
|
6
|
-
|
5
|
+
const { EditorComponent } = useContext(GradingInstructionContext);
|
6
|
+
const { displayNumber } = useContext(QuestionContext);
|
7
|
+
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, displayNumber: displayNumber })) : (renderChildNodes(element))));
|
7
8
|
};
|
8
9
|
export default AnswerGradingInstruction;
|
9
10
|
//# 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;AAChF,OAAO,
|
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,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,MAAM,wBAAwB,GAAgD,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC9G,MAAM,EAAE,eAAe,EAAE,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAA;IACjE,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAErD,OAAO,CACL,6BAAK,SAAS,EAAC,kFAAkF,IAC9F,eAAe,CAAC,CAAC,CAAC,CACjB,oBAAC,eAAe,IAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,GAAI,CACpE,CAAC,CAAC,CAAC,CACF,gBAAgB,CAAC,OAAO,CAAC,CAC1B,CACG,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, 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,kCAAmC,uBAAuB,sBAIhG,CAAA"}
|
@@ -1,7 +1,4 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { GradingInstructionContext } from '../context/GradingInstructionContext';
|
3
|
-
export const GradingInstructionProvider = ({
|
4
|
-
const contextValue = editable ? { editable, onContentChange, onSaveImage } : { editable };
|
5
|
-
return React.createElement(GradingInstructionContext.Provider, { value: contextValue }, children);
|
6
|
-
};
|
3
|
+
export const GradingInstructionProvider = ({ EditorComponent, children }) => (React.createElement(GradingInstructionContext.Provider, { value: { EditorComponent: EditorComponent } }, children));
|
7
4
|
//# 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,
|
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,EAAE,eAAe,EAAE,QAAQ,EAA2B,EAAE,EAAE,CAAC,CACpG,oBAAC,yBAAyB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,eAAe,EAAE,eAAe,EAAE,IAC5E,QAAQ,CAC0B,CACtC,CAAA"}
|
@@ -1,7 +1,11 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { AnnotationProps, CommonExamProps } from '../exam/Exam';
|
3
|
-
import { GradingInstructionProps } from '../context/GradingInstructionContext';
|
4
3
|
export declare const GradingInstructionsPageTitle: React.FunctionComponent;
|
5
|
-
declare const _default: React.MemoExoticComponent<React.ComponentType<CommonExamProps &
|
4
|
+
declare const _default: React.MemoExoticComponent<React.ComponentType<CommonExamProps & AnnotationProps & import("../context/GradingInstructionContext").GradingInstructionPropsBase & {
|
5
|
+
EditorComponent?: React.ComponentType<{
|
6
|
+
element: Element;
|
7
|
+
displayNumber: string;
|
8
|
+
}>;
|
9
|
+
}>>;
|
6
10
|
export default _default;
|
7
11
|
//# 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;AAmI/D,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,iBAGhD,CAAA;;sBAjJuB,MAAO,aAAa;;;;;AAmJ5C,wBAAqE"}
|
@@ -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 }) => {
|
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,9 +85,8 @@ 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 = editable ? { editable, onContentChange, onSaveImage } : { editable };
|
89
88
|
return (React.createElement(AnnotationProvider, { annotations: annotations, onClickAnnotation: onClickAnnotation, onSaveAnnotation: onSaveAnnotation },
|
90
|
-
React.createElement(GradingInstructionProvider, {
|
89
|
+
React.createElement(GradingInstructionProvider, { EditorComponent: EditorComponent },
|
91
90
|
React.createElement(I18nextProvider, { i18n: i18n },
|
92
91
|
React.createElement("main", { className: "e-exam e-grading-instructions", lang: subjectLanguage },
|
93
92
|
React.createElement(React.StrictMode, null),
|
@@ -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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CAAC,OAAO,EAAE,CAAC,mBAAmB,CAAC,CAAC,IAAI,IAAI,CACxE,CAAA;AAED,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;IAC9C,iBAAiB,EAAE,sBAAsB;IACzC,UAAU,EAAE,kBAAkB;IAC9B,iBAAiB,EAAE,iCAAiC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/E,kBAAkB,EAAE,iCAAiC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACjF,KAAK,EAAE,SAAS;IAChB,aAAa,EAAE,kBAAkB;IACjC,eAAe,EAAE,gBAAgB;IACjC,sBAAsB,EAAE,sBAAsB;IAC9C,iBAAiB,EAAE,gBAAgB;IACnC,wBAAwB,EAAE,sBAAsB;IAChD,mBAAmB,EAAE,kBAAkB;IACvC,IAAI,EAAE,uCAAuC,CAAC,IAAI,CAAC;IACnD,OAAO,EAAE,uCAAuC,CAAC,OAAO,CAAC;IACzD,KAAK,EAAE,kBAAkB;IACzB,KAAK,EAAE,uCAAuC,CAAC,KAAK,CAAC;IACrD,QAAQ,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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