@digabi/exam-engine-core 25.2.0 → 25.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalMaterial.d.ts","sourceRoot":"","sources":["../../../src/components/exam/ExternalMaterial.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExternalMaterial.d.ts","sourceRoot":"","sources":["../../../src/components/exam/ExternalMaterial.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAA0B,kBAAkB,EAAiB,MAAM,8BAA8B,CAAA;AAuCxG,UAAU,qBAAsB,SAAQ,kBAAkB;IACxD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,iBAAS,gBAAgB,CAAC,EAAE,OAAO,EAAE,SAAgB,EAAE,WAAmB,EAAE,EAAE,qBAAqB,4BAoBlG;;AAED,wBAA2C"}
|
|
@@ -36,6 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
const lodash_es_1 = require("lodash-es");
|
|
39
40
|
const react_1 = __importStar(require("react"));
|
|
40
41
|
const createRenderChildNodes_1 = require("../../createRenderChildNodes");
|
|
41
42
|
const dom_utils_1 = require("../../dom-utils");
|
|
@@ -45,11 +46,13 @@ const url_1 = require("../../url");
|
|
|
45
46
|
const AttachmentContext_1 = require("../context/AttachmentContext");
|
|
46
47
|
const CommonExamContext_1 = require("../context/CommonExamContext");
|
|
47
48
|
const Formula_1 = __importDefault(require("../shared/Formula"));
|
|
48
|
-
const
|
|
49
|
+
const _renderChildNodes = (0, createRenderChildNodes_1.createRenderChildNodes)({
|
|
49
50
|
attachment: (0, AttachmentContext_1.withAttachmentContext)(Attachment),
|
|
50
51
|
'attachment-title': AttachmentTitle,
|
|
51
|
-
formula:
|
|
52
|
-
})
|
|
52
|
+
formula: (0, lodash_es_1.constant)(null)
|
|
53
|
+
});
|
|
54
|
+
const renderChildNodes = _renderChildNodes();
|
|
55
|
+
const renderTitleChildNodes = _renderChildNodes({ formula: Formula_1.default });
|
|
53
56
|
function Attachment({ element }) {
|
|
54
57
|
const { displayNumber } = (0, react_1.useContext)(AttachmentContext_1.AttachmentContext);
|
|
55
58
|
return (react_1.default.createElement("li", { "data-list-number": displayNumber, "aria-label": displayNumber }, renderChildNodes(element, 1 /* RenderOptions.SkipHTML */)));
|
|
@@ -57,7 +60,7 @@ function Attachment({ element }) {
|
|
|
57
60
|
function AttachmentTitle({ element }) {
|
|
58
61
|
const { attachmentsURL } = (0, react_1.useContext)(CommonExamContext_1.CommonExamContext);
|
|
59
62
|
const { displayNumber } = (0, react_1.useContext)(AttachmentContext_1.AttachmentContext);
|
|
60
|
-
return (react_1.default.createElement("a", { href: (0, url_1.url)(attachmentsURL, { hash: displayNumber }), className: "exam-attachment-title", target: "attachments" },
|
|
63
|
+
return (react_1.default.createElement("a", { href: (0, url_1.url)(attachmentsURL, { hash: displayNumber }), className: "exam-attachment-title", target: "attachments" }, renderTitleChildNodes(element)));
|
|
61
64
|
}
|
|
62
65
|
function ExternalMaterial({ element, showTitle = true, forceRender = false }) {
|
|
63
66
|
if ((0, dom_utils_1.queryAncestors)(element, 'question') == null && !forceRender) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalMaterial.js","sourceRoot":"","sources":["../../../src/components/exam/ExternalMaterial.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyC;AACzC,yEAAwG;AACxG,+CAAgD;AAChD,qCAA+C;AAC/C,mCAAuD;AACvD,mCAA+B;AAC/B,oEAAuF;AACvF,oEAAgE;AAChE,gEAAuC;AAEvC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C,CAC7B,CACL,CAAA;AACH,CAAC;AAOD,SAAS,gBAAgB,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,EAAE,WAAW,GAAG,KAAK,EAAyB;IACjG,IAAI,IAAA,0BAAc,EAAC,OAAO,EAAE,UAAU,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;QAChE,OAAO,IAAI,CAAA;IACb,CAAC;IAED,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,yBAAkB,GAAE,CAAA;IAClC,MAAM,EAAE,GAAG,IAAA,iCAA2B,EAAC,OAAO,CAAC,CAAA;IAE/C,OAAO,CACL,uCAAK,SAAS,EAAC,kCAAkC;QAC9C,SAAS,IAAI,CACZ,sCAAI,SAAS,EAAC,yBAAyB,EAAC,EAAE,EAAE,EAAE,IAC3C,CAAC,CAAC,yBAAyB,CAAC,CAC1B,CACN;QACD,sCAAI,SAAS,EAAC,+BAA+B,qBAAkB,EAAE,IAC9D,gBAAgB,CAAC,OAAO,CAAC,CACvB,CACD,CACP,CAAA;AACH,CAAC;AAED,kBAAe,eAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digabi/exam-engine-core",
|
|
3
|
-
"version": "25.2.
|
|
3
|
+
"version": "25.2.2",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@fortawesome/react-fontawesome": "^3.5.0",
|
|
40
40
|
"classnames": "^2.2.6",
|
|
41
41
|
"dexie": "^4.4.7",
|
|
42
|
-
"downshift": "^9.4.
|
|
42
|
+
"downshift": "^9.4.1",
|
|
43
43
|
"fontfaceobserver": "^2.1.0",
|
|
44
44
|
"i18next": "^26.4.6",
|
|
45
45
|
"lodash-es": "^4.18.1",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"react-test-renderer": "^18.2.0",
|
|
66
66
|
"redux-saga-test-plan": "^4.0.6"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "59847436cb169679f0dff83c208944dae2ed09d9"
|
|
69
69
|
}
|