@digabi/exam-engine-core 22.1.3-alpha.3 → 22.1.4-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/EditableGradingInstruction.test.js +3 -7
- package/dist/__tests__/EditableGradingInstruction.test.js.map +1 -1
- package/dist/__tests__/editor/FormatButton.test.d.ts +2 -0
- package/dist/__tests__/editor/FormatButton.test.d.ts.map +1 -0
- package/dist/__tests__/editor/FormatButton.test.js +97 -0
- package/dist/__tests__/editor/FormatButton.test.js.map +1 -0
- package/dist/__tests__/editor/Formula.test.js +15 -8
- package/dist/__tests__/editor/Formula.test.js.map +1 -1
- package/dist/__tests__/editor/ImageUploadButton.test.d.ts +2 -0
- package/dist/__tests__/editor/ImageUploadButton.test.d.ts.map +1 -0
- package/dist/__tests__/editor/ImageUploadButton.test.js +69 -0
- package/dist/__tests__/editor/ImageUploadButton.test.js.map +1 -0
- package/dist/__tests__/editor/br.test.js +2 -6
- package/dist/__tests__/editor/br.test.js.map +1 -1
- package/dist/__tests__/editor/hr.test.js +2 -6
- package/dist/__tests__/editor/hr.test.js.map +1 -1
- package/dist/__tests__/editor/nbsp.test.js +3 -7
- package/dist/__tests__/editor/nbsp.test.js.map +1 -1
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/__tests__/utils/prosemirror.d.ts +0 -1
- package/dist/__tests__/utils/prosemirror.d.ts.map +1 -1
- package/dist/__tests__/utils/prosemirror.js +0 -8
- package/dist/__tests__/utils/prosemirror.js.map +1 -1
- package/dist/__tests__/utils/renderEditableGradingInstruction.d.ts +2 -0
- package/dist/__tests__/utils/renderEditableGradingInstruction.d.ts.map +1 -1
- package/dist/__tests__/utils/renderEditableGradingInstruction.js +8 -2
- package/dist/__tests__/utils/renderEditableGradingInstruction.js.map +1 -1
- package/dist/__tests__/utils/util.d.ts +2 -0
- package/dist/__tests__/utils/util.d.ts.map +1 -0
- package/dist/__tests__/utils/util.js +10 -0
- package/dist/__tests__/utils/util.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/GradingInstructionContext.d.ts +2 -2
- package/dist/components/context/GradingInstructionContext.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 +37 -55
- 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 +2 -2
- package/dist/components/grading-instructions/GradingInstructionProvider.js.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.d.ts +1 -1
- package/dist/components/grading-instructions/GradingInstructions.js +2 -2
- package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
- package/dist/components/grading-instructions/editor/Formula.d.ts +1 -0
- package/dist/components/grading-instructions/editor/Formula.d.ts.map +1 -1
- package/dist/components/grading-instructions/editor/Formula.js +17 -4
- package/dist/components/grading-instructions/editor/Formula.js.map +1 -1
- package/dist/components/grading-instructions/editor/ImageUploadButton.d.ts +6 -0
- package/dist/components/grading-instructions/editor/ImageUploadButton.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/ImageUploadButton.js +73 -0
- package/dist/components/grading-instructions/editor/ImageUploadButton.js.map +1 -0
- package/dist/components/grading-instructions/editor/schemas/image-schema.d.ts +4 -0
- package/dist/components/grading-instructions/editor/schemas/image-schema.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/schemas/image-schema.js +47 -0
- package/dist/components/grading-instructions/editor/schemas/image-schema.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/components/Localization.d.ts +0 -5
- package/dist/components/Localization.d.ts.map +0 -1
- package/dist/components/Localization.js +0 -9
- package/dist/components/Localization.js.map +0 -1
- package/dist/components/grading-instructions/GradingInstruction.d.ts +0 -7
- package/dist/components/grading-instructions/GradingInstruction.d.ts.map +0 -1
- package/dist/components/grading-instructions/GradingInstruction.js +0 -9
- package/dist/components/grading-instructions/GradingInstruction.js.map +0 -1
- package/dist/components/grading-instructions/editor/CurrentElement.d.ts +0 -2
- package/dist/components/grading-instructions/editor/CurrentElement.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/CurrentElement.js +0 -8
- package/dist/components/grading-instructions/editor/CurrentElement.js.map +0 -1
- package/dist/components/grading-instructions/editor/CurrentLocalization.d.ts +0 -5
- package/dist/components/grading-instructions/editor/CurrentLocalization.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/CurrentLocalization.js +0 -17
- package/dist/components/grading-instructions/editor/CurrentLocalization.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/localizatio.d.ts +0 -3
- package/dist/components/grading-instructions/editor/localizatio.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/localizatio.js +0 -36
- package/dist/components/grading-instructions/editor/localizatio.js.map +0 -1
- package/dist/components/grading-instructions/editor/localizationSpan.d.ts +0 -3
- package/dist/components/grading-instructions/editor/localizationSpan.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/localizationSpan.js +0 -36
- package/dist/components/grading-instructions/editor/localizationSpan.js.map +0 -1
- package/dist/components/grading-instructions/editor/spanWithPath.d.ts +0 -3
- package/dist/components/grading-instructions/editor/spanWithPath.d.ts.map +0 -1
- package/dist/components/grading-instructions/editor/spanWithPath.js +0 -24
- package/dist/components/grading-instructions/editor/spanWithPath.js.map +0 -1
@@ -1,36 +0,0 @@
|
|
1
|
-
export function localization(hideable) {
|
2
|
-
return {
|
3
|
-
localization: {
|
4
|
-
attrs: {
|
5
|
-
lang: { default: null },
|
6
|
-
examType: { default: null },
|
7
|
-
hidden: { default: null }
|
8
|
-
},
|
9
|
-
parseDOM: [
|
10
|
-
{
|
11
|
-
tag: '[e-localization]',
|
12
|
-
getAttrs(dom) {
|
13
|
-
var _a, _b, _c;
|
14
|
-
return {
|
15
|
-
lang: (_a = dom.getAttribute('lang')) !== null && _a !== void 0 ? _a : null,
|
16
|
-
examType: (_b = dom.getAttribute('exam-type')) !== null && _b !== void 0 ? _b : null,
|
17
|
-
hidden: hideable ? ((_c = dom.getAttribute('hidden')) !== null && _c !== void 0 ? _c : null) : null
|
18
|
-
};
|
19
|
-
}
|
20
|
-
}
|
21
|
-
],
|
22
|
-
toDOM(node) {
|
23
|
-
return [
|
24
|
-
'e:localization',
|
25
|
-
{
|
26
|
-
lang: node.attrs.lang,
|
27
|
-
'exam-type': node.attrs.examType,
|
28
|
-
hidden: hideable ? node.attrs.hidden : null
|
29
|
-
},
|
30
|
-
0
|
31
|
-
];
|
32
|
-
}
|
33
|
-
}
|
34
|
-
};
|
35
|
-
}
|
36
|
-
//# sourceMappingURL=localizatio.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"localizatio.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/localizatio.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,YAAY,CAAC,QAAiB;IAC5C,OAAO;QACL,YAAY,EAAE;YACZ,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;gBACvB,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;gBAC3B,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;aAC1B;YACD,QAAQ,EAAE;gBACR;oBACE,GAAG,EAAE,kBAAkB;oBACvB,QAAQ,CAAC,GAAgB;;wBACvB,OAAO;4BACL,IAAI,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,mCAAI,IAAI;4BACtC,QAAQ,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,mCAAI,IAAI;4BAC/C,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAA,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC,mCAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;yBAC/D,CAAA;oBACH,CAAC;iBACF;aACF;YACD,KAAK,CAAC,IAAU;gBACd,OAAO;oBACL,gBAAgB;oBAChB;wBACE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI;wBACrB,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ;wBAChC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI;qBAC5C;oBACD,CAAC;iBACF,CAAA;YACH,CAAC;SACF;KACF,CAAA;AACH,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"localizationSpan.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/localizationSpan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAElD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,CAiCxD"}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
export function localization(hideable) {
|
2
|
-
return {
|
3
|
-
localization: {
|
4
|
-
attrs: {
|
5
|
-
lang: { default: null },
|
6
|
-
examType: { default: null },
|
7
|
-
hidden: { default: null }
|
8
|
-
},
|
9
|
-
parseDOM: [
|
10
|
-
{
|
11
|
-
tag: '[e-localization]',
|
12
|
-
getAttrs(dom) {
|
13
|
-
var _a, _b, _c;
|
14
|
-
return {
|
15
|
-
lang: (_a = dom.getAttribute('lang')) !== null && _a !== void 0 ? _a : null,
|
16
|
-
examType: (_b = dom.getAttribute('exam-type')) !== null && _b !== void 0 ? _b : null,
|
17
|
-
hidden: hideable ? ((_c = dom.getAttribute('hidden')) !== null && _c !== void 0 ? _c : null) : null
|
18
|
-
};
|
19
|
-
}
|
20
|
-
}
|
21
|
-
],
|
22
|
-
toDOM(node) {
|
23
|
-
return [
|
24
|
-
'e:localization',
|
25
|
-
{
|
26
|
-
lang: node.attrs.lang,
|
27
|
-
'exam-type': node.attrs.examType,
|
28
|
-
hidden: hideable ? node.attrs.hidden : null
|
29
|
-
},
|
30
|
-
0
|
31
|
-
];
|
32
|
-
}
|
33
|
-
}
|
34
|
-
};
|
35
|
-
}
|
36
|
-
//# sourceMappingURL=localizationSpan.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"localizationSpan.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/localizationSpan.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,YAAY,CAAC,QAAiB;IAC5C,OAAO;QACL,YAAY,EAAE;YACZ,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;gBACvB,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;gBAC3B,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;aAC1B;YACD,QAAQ,EAAE;gBACR;oBACE,GAAG,EAAE,kBAAkB;oBACvB,QAAQ,CAAC,GAAgB;;wBACvB,OAAO;4BACL,IAAI,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,mCAAI,IAAI;4BACtC,QAAQ,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,mCAAI,IAAI;4BAC/C,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAA,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC,mCAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;yBAC/D,CAAA;oBACH,CAAC;iBACF;aACF;YACD,KAAK,CAAC,IAAU;gBACd,OAAO;oBACL,gBAAgB;oBAChB;wBACE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI;wBACrB,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ;wBAChC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI;qBAC5C;oBACD,CAAC;iBACF,CAAA;YACH,CAAC;SACF;KACF,CAAA;AACH,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"spanWithPath.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/spanWithPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAElD,eAAO,MAAM,cAAc,EAAE,QAqB5B,CAAA"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
export const spanWithNowrap = {
|
2
|
-
spanWithClass: {
|
3
|
-
attrs: {
|
4
|
-
class: { default: null }
|
5
|
-
},
|
6
|
-
parseDOM: [
|
7
|
-
{
|
8
|
-
tag: 'span[path]',
|
9
|
-
getAttrs(dom) {
|
10
|
-
var _a, _b, _c;
|
11
|
-
return {
|
12
|
-
path: (_a = dom.getAttribute('path')) !== null && _a !== void 0 ? _a : null,
|
13
|
-
lang: (_b = dom.getAttribute('lang')) !== null && _b !== void 0 ? _b : null,
|
14
|
-
examType: (_c = dom.getAttribute('exam-type')) !== null && _c !== void 0 ? _c : null
|
15
|
-
};
|
16
|
-
}
|
17
|
-
}
|
18
|
-
],
|
19
|
-
toDOM(node) {
|
20
|
-
return ['span', { path: node.attrs.path, lang: node.attrs.lang, 'exam-type': node.attrs.examType }, 0];
|
21
|
-
}
|
22
|
-
}
|
23
|
-
};
|
24
|
-
//# sourceMappingURL=spanWithPath.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"spanWithPath.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/spanWithPath.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAa;IACtC,aAAa,EAAE;QACb,KAAK,EAAE;YACL,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;SACzB;QACD,QAAQ,EAAE;YACR;gBACE,GAAG,EAAE,YAAY;gBACjB,QAAQ,CAAC,GAAgB;;oBACvB,OAAO;wBACL,IAAI,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,mCAAI,IAAI;wBACtC,IAAI,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,mCAAI,IAAI;wBACtC,QAAQ,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,mCAAI,IAAI;qBAChD,CAAA;gBACH,CAAC;aACF;SACF;QACD,KAAK,CAAC,IAAU;YACd,OAAO,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAc,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAA;QAClH,CAAC;KACF;CACF,CAAA"}
|