@digabi/exam-engine-core 19.9.6 → 19.9.9
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/shared/AnswerIndicator.d.ts.map +1 -1
- package/dist/components/shared/AnswerIndicator.js +5 -4
- package/dist/components/shared/AnswerIndicator.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/dist/main.css +1 -1
- package/package.json +2 -2
- package/dist/utils/exifDataAndImageHandler.d.ts +0 -2
- package/dist/utils/exifDataAndImageHandler.d.ts.map +0 -1
- package/dist/utils/exifDataAndImageHandler.js +0 -61
- package/dist/utils/exifDataAndImageHandler.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AnswerIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnswerIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAA;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAInD,KAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;
|
1
|
+
{"version":3,"file":"AnswerIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnswerIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAA;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAInD,KAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAuCD,eAAO,MAAM,SAAS,oCArCU,KAAK,iBAqCS,CAAA"}
|
@@ -4,16 +4,17 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
4
4
|
import { faImage } from '@fortawesome/free-solid-svg-icons';
|
5
5
|
const AnswerIndicator = (props) => {
|
6
6
|
const { id, type, answer, error } = props;
|
7
|
-
const
|
8
|
-
const answerIsImage = answer === null || answer === void 0 ? void 0 : answer.value.includes('data:image');
|
7
|
+
const value = answer === null || answer === void 0 ? void 0 : answer.value;
|
9
8
|
const answerIsLongText = (answer === null || answer === void 0 ? void 0 : answer.type) === 'richText';
|
9
|
+
const answerIsFormula = answerIsLongText && (value === null || value === void 0 ? void 0 : value.includes('src="/math.svg?latex='));
|
10
|
+
const answerIsImage = answerIsLongText && ((value === null || value === void 0 ? void 0 : value.includes('<img src="/screenshot/')) || (value === null || value === void 0 ? void 0 : value.includes('<img src="data:image/png;')));
|
10
11
|
return (React.createElement(React.Fragment, null,
|
11
12
|
React.createElement("div", { key: id, className: classNames('answer-indicator', {
|
12
|
-
ok:
|
13
|
+
ok: value,
|
13
14
|
error,
|
14
15
|
big: type === 'rich-text'
|
15
16
|
}), "data-indicator-id": id }, (answer === null || answer === void 0 ? void 0 : answer.type) === 'richText' && (React.createElement(React.Fragment, null,
|
16
|
-
answerIsLongText &&
|
17
|
+
(answerIsLongText && (answer === null || answer === void 0 ? void 0 : answer.characterCount) && React.createElement("span", null, answer.characterCount)) || '',
|
17
18
|
answerIsFormula && React.createElement("span", { className: "formula" }, "\u2211"),
|
18
19
|
answerIsImage && (React.createElement("span", { className: "img" },
|
19
20
|
React.createElement(FontAwesomeIcon, { icon: faImage, size: "lg" })))))),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AnswerIndicator.js","sourceRoot":"","sources":["../../../src/components/shared/AnswerIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AACnC,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAA;AAS3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