@digabi/exam-engine-core 22.1.5-alpha.0 → 22.1.6-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/EditableGradingInstructionLocalization.test.d.ts +2 -0
- package/dist/__tests__/EditableGradingInstructionLocalization.test.d.ts.map +1 -0
- package/dist/__tests__/EditableGradingInstructionLocalization.test.js +75 -0
- package/dist/__tests__/EditableGradingInstructionLocalization.test.js.map +1 -0
- package/dist/__tests__/editor/ImageUploadButton.test.js +1 -1
- package/dist/__tests__/editor/ImageUploadButton.test.js.map +1 -1
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/components/Localization.d.ts +5 -0
- package/dist/components/Localization.d.ts.map +1 -0
- package/dist/components/Localization.js +9 -0
- package/dist/components/Localization.js.map +1 -0
- package/dist/components/context/AttachmentContext.d.ts.map +1 -1
- package/dist/components/context/ExamContext.d.ts.map +1 -1
- package/dist/components/context/QuestionContext.d.ts.map +1 -1
- package/dist/components/context/ResultsContext.d.ts.map +1 -1
- package/dist/components/context/SectionContext.d.ts.map +1 -1
- package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +1 -1
- package/dist/components/grading-instructions/EditableGradingInstruction.js +3 -2
- package/dist/components/grading-instructions/EditableGradingInstruction.js.map +1 -1
- package/dist/components/grading-instructions/GradingInstruction.d.ts +7 -0
- package/dist/components/grading-instructions/GradingInstruction.d.ts.map +1 -0
- package/dist/components/grading-instructions/GradingInstruction.js +9 -0
- package/dist/components/grading-instructions/GradingInstruction.js.map +1 -0
- package/dist/components/grading-instructions/GradingInstructions.d.ts +1 -1
- package/dist/components/grading-instructions/editor/AttributeToggleButton.d.ts +9 -0
- package/dist/components/grading-instructions/editor/AttributeToggleButton.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/AttributeToggleButton.js +53 -0
- package/dist/components/grading-instructions/editor/AttributeToggleButton.js.map +1 -0
- package/dist/components/grading-instructions/editor/CurrentElement.d.ts +2 -0
- package/dist/components/grading-instructions/editor/CurrentElement.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/CurrentElement.js +8 -0
- package/dist/components/grading-instructions/editor/CurrentElement.js.map +1 -0
- package/dist/components/grading-instructions/editor/CurrentLocalization.d.ts +7 -0
- package/dist/components/grading-instructions/editor/CurrentLocalization.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/CurrentLocalization.js +13 -0
- package/dist/components/grading-instructions/editor/CurrentLocalization.js.map +1 -0
- package/dist/components/grading-instructions/editor/ImageUploadButton.js +2 -2
- package/dist/components/grading-instructions/editor/ImageUploadButton.js.map +1 -1
- package/dist/components/grading-instructions/editor/Localization.d.ts +3 -0
- package/dist/components/grading-instructions/editor/Localization.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/Localization.js +36 -0
- package/dist/components/grading-instructions/editor/Localization.js.map +1 -0
- package/dist/components/grading-instructions/editor/LocalizationButtons.d.ts +6 -0
- package/dist/components/grading-instructions/editor/LocalizationButtons.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/LocalizationButtons.js +14 -0
- package/dist/components/grading-instructions/editor/LocalizationButtons.js.map +1 -0
- package/dist/components/grading-instructions/editor/localizatio.d.ts +3 -0
- package/dist/components/grading-instructions/editor/localizatio.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/localizatio.js +36 -0
- package/dist/components/grading-instructions/editor/localizatio.js.map +1 -0
- package/dist/components/grading-instructions/editor/localizationSpan.d.ts +3 -0
- package/dist/components/grading-instructions/editor/localizationSpan.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/localizationSpan.js +36 -0
- package/dist/components/grading-instructions/editor/localizationSpan.js.map +1 -0
- package/dist/components/grading-instructions/editor/spanWithPath.d.ts +3 -0
- package/dist/components/grading-instructions/editor/spanWithPath.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/spanWithPath.js +24 -0
- package/dist/components/grading-instructions/editor/spanWithPath.js.map +1 -0
- package/dist/components/grading-instructions/editor/util.d.ts +6 -0
- package/dist/components/grading-instructions/editor/util.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/util.js +10 -0
- package/dist/components/grading-instructions/editor/util.js.map +1 -0
- package/dist/main-bundle.js +1 -1
- package/dist/main-bundle.js.LICENSE.txt +1 -1
- package/dist/main.css +1 -1
- package/package.json +2 -2
- 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__/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__/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/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/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/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/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/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/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/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
- /package/dist/__tests__/editor/{NBSP.test.d.ts → nbsp.test.d.ts} +0 -0
- /package/dist/__tests__/editor/{NBSP.test.d.ts.map → nbsp.test.d.ts.map} +0 -0
- /package/dist/__tests__/editor/{NBSP.test.js → nbsp.test.js} +0 -0
- /package/dist/__tests__/editor/{NBSP.test.js.map → nbsp.test.js.map} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EditableGradingInstructionLocalization.test.d.ts","sourceRoot":"","sources":["../../__tests__/EditableGradingInstructionLocalization.test.tsx"],"names":[],"mappings":""}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const react_1 = require("@testing-library/react");
|
4
|
+
const renderEditableGradingInstruction_1 = require("./utils/renderEditableGradingInstruction");
|
5
|
+
const util_1 = require("./utils/util");
|
6
|
+
const prosemirror_1 = require("./utils/prosemirror");
|
7
|
+
const act = react_1.act;
|
8
|
+
describe('EditableGradingInstructionLocalization', () => {
|
9
|
+
let cleanup;
|
10
|
+
let onContentChangeMock;
|
11
|
+
beforeEach(() => {
|
12
|
+
onContentChangeMock = jest.fn();
|
13
|
+
cleanup = (0, prosemirror_1.mockCreateRange)();
|
14
|
+
});
|
15
|
+
afterEach(() => {
|
16
|
+
if (cleanup) {
|
17
|
+
cleanup();
|
18
|
+
}
|
19
|
+
cleanup = null;
|
20
|
+
});
|
21
|
+
it('preserves localization tags with e-localization attribute on save', async () => {
|
22
|
+
// e-localization attribute is added on mastering exam
|
23
|
+
const inputData = '<p><e:localization lang="sv-FI" exam-type="hearing-impaired" e-localization="1">placeholder</e:localization></p>';
|
24
|
+
const expectedOutput = '<p><e:localization lang="sv-FI" exam-type="hearing-impaired">lokalisaatio</e:localization></p>';
|
25
|
+
const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
|
26
|
+
await act(async () => {
|
27
|
+
(0, util_1.insertText)(await result.findByText('placeholder'), 'lokalisaatio');
|
28
|
+
});
|
29
|
+
expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
|
30
|
+
});
|
31
|
+
it('localization tags without e-localization attribute are ignored', async () => {
|
32
|
+
const inputData = '<p><e:localization lang="sv-FI" exam-type="hearing-impaired">placeholder</e:localization></p>';
|
33
|
+
const expectedOutput = '<p>lokalisaatio</p>';
|
34
|
+
const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
|
35
|
+
await act(async () => {
|
36
|
+
(0, util_1.insertText)(await result.findByText('placeholder'), 'lokalisaatio');
|
37
|
+
});
|
38
|
+
expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
|
39
|
+
});
|
40
|
+
it("removes localization's e-localization and hidden attributes on save", async () => {
|
41
|
+
const inputData = '<p>Tämä <e:localization exam-type="visually-impaired" e-localization="1" hidden="hidden">on</e:localization> piilossa</p>';
|
42
|
+
const expectedOutput = '<p>Tämä <e:localization exam-type="visually-impaired">ei ole</e:localization> piilossa</p>';
|
43
|
+
const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
|
44
|
+
await act(async () => {
|
45
|
+
(0, util_1.insertText)(await result.findByText('on'), 'ei ole');
|
46
|
+
});
|
47
|
+
expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
|
48
|
+
});
|
49
|
+
it('saves all grading instructions as a whole regardless which localization is edited', async () => {
|
50
|
+
const inputData = `
|
51
|
+
<p>Not localized</p>
|
52
|
+
<p>
|
53
|
+
<e:localization e-localization="1">Localized without attributes</e:localization>
|
54
|
+
<e:localization e-localization="1" lang="fi-FI">Localized with language</e:localization>
|
55
|
+
<e:localization e-localization="1" exam-type="visually-impaired">Localized with exam-type</e:localization>
|
56
|
+
<e:localization e-localization="1" lang="sv-FI" exam-type="visually-impaired">Localized with language and exam-type</e:localization>
|
57
|
+
</p>
|
58
|
+
`.replace(/\n/g, '');
|
59
|
+
const expectedOutput = `
|
60
|
+
<p>Not localized</p>
|
61
|
+
<p>
|
62
|
+
<e:localization>Localized without attributes</e:localization>
|
63
|
+
<e:localization lang="fi-FI">Localized with language</e:localization>
|
64
|
+
<e:localization exam-type="visually-impaired">Localized with examType</e:localization>
|
65
|
+
<e:localization lang="sv-FI" exam-type="visually-impaired">Localized with language and exam-type</e:localization>
|
66
|
+
</p>
|
67
|
+
`.replace(/\n/g, '');
|
68
|
+
const result = (0, renderEditableGradingInstruction_1.renderGradingInstruction)(inputData, onContentChangeMock);
|
69
|
+
await act(async () => {
|
70
|
+
(0, util_1.insertText)(await result.findByText('Localized with exam-type'), 'Localized with examType');
|
71
|
+
});
|
72
|
+
expect(onContentChangeMock).toHaveBeenCalledWith(expectedOutput, '');
|
73
|
+
});
|
74
|
+
});
|
75
|
+
//# sourceMappingURL=EditableGradingInstructionLocalization.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EditableGradingInstructionLocalization.test.js","sourceRoot":"","sources":["../../__tests__/EditableGradingInstructionLocalization.test.tsx"],"names":[],"mappings":";;AAAA,kDAAuD;AACvD,+FAAmF;AACnF,uCAAyC;AACzC,qDAAqD;AAErD,MAAM,GAAG,GAAG,WAAuD,CAAA;AAEnE,QAAQ,CAAC,wCAAwC,EAAE,GAAG,EAAE;IACtD,IAAI,OAA4B,CAAA;IAChC,IAAI,mBAA8B,CAAA;IAElC,UAAU,CAAC,GAAG,EAAE;QACd,mBAAmB,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;QAC/B,OAAO,GAAG,IAAA,6BAAe,GAAE,CAAA;IAC7B,CAAC,CAAC,CAAA;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,EAAE,CAAA;QACX,CAAC;QACD,OAAO,GAAG,IAAI,C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,IAAA,iBAAU,EAAC,MAAM,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAA;QACrD,CAAC,CAAC,CAAA;QACF,MAAM,CAAC,mBAAmB,CAAC,CAAC,oBAAoB,CAAC,cAAc,EAAE,EAAE,CAAC,CAAA;IACtE,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,mFAAmF,EAAE,KAAK,IAAI,EAAE;QACjG,MAAM,SAAS,GAAG;;;;;;;;CAQrB,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;QAChB,MAAM,cAAc,GAAG;;;;;;;;CAQ1B,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;QAChB,MAAM,MAAM,GAAG,IAAA,2DAAwB,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAA;QACvE,MAAM,GAAG,CAAC,KAAK,IAAI,EAAE;YACnB,IAAA,iBAAU,EAAC,MAAM,MAAM,CAAC,UAAU,CAAC,0BAA0B,CAAC,EAAE,yBAAyB,CAAC,CAAA;QAC5F,CAAC,CAAC,CAAA;QACF,MAAM,CAAC,mBAAmB,CAAC,CAAC,oBAAoB,CAAC,cAAc,EAAE,EAAE,CAAC,CAAA;IACtE,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -54,7 +54,7 @@ describe('ImageUploadButton', () => {
|
|
54
54
|
it('image can be uploaded', async () => {
|
55
55
|
const container = (0, renderEditableGradingInstruction_1.renderGradingInstruction)('', onContentChangeMock);
|
56
56
|
const file = new File(['hello'], 'hello.png', { type: 'image/png' });
|
57
|
-
const input = container.queryByTestId('image-upload-
|
57
|
+
const input = container.queryByTestId('image-upload-input');
|
58
58
|
await user_event_1.default.upload(input, file);
|
59
59
|
await (0, react_1.waitFor)(() => {
|
60
60
|
expect(onContentChangeMock).toHaveBeenCalledTimes(2);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ImageUploadButton.test.js","sourceRoot":"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