@digabi/exam-engine-core 19.12.2-alpha.0 → 19.12.2-alpha.1
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/CommonExamContext.js +2 -2
- package/dist/components/context/CommonExamContext.js.map +1 -1
- package/dist/components/exam/Exam.d.ts +1 -1
- package/dist/components/exam/Exam.d.ts.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/package.json +2 -2
@@ -3,7 +3,7 @@ import { getAttribute, getNumericAttribute, queryAll } from '../../dom-utils';
|
|
3
3
|
import { withContext } from './withContext';
|
4
4
|
export const CommonExamContext = React.createContext({});
|
5
5
|
export function withCommonExamContext(Component) {
|
6
|
-
return withContext(CommonExamContext, ({ attachmentsURL, resolveAttachment, doc,
|
6
|
+
return withContext(CommonExamContext, ({ attachmentsURL, resolveAttachment, doc, ignoreEventHandling }) => {
|
7
7
|
const root = doc.documentElement;
|
8
8
|
const maybeDate = getAttribute(root, 'date');
|
9
9
|
const language = getAttribute(root, 'exam-lang');
|
@@ -21,7 +21,7 @@ export function withCommonExamContext(Component) {
|
|
21
21
|
sections: queryAll(root, 'section'),
|
22
22
|
resolveAttachment,
|
23
23
|
root,
|
24
|
-
|
24
|
+
ignoreEventHandling
|
25
25
|
};
|
26
26
|
})(Component);
|
27
27
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CommonExamContext.js","sourceRoot":"","sources":["../../../src/components/context/CommonExamContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAoB3C,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,EAAuB,CAAC,CAAA;AAE7E,MAAM,UAAU,qBAAqB,CACnC,SAAiC;IAEjC,OAAO,WAAW,CACh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;YACpD,QAAQ,EAAE,mBAAmB,CAAC,IAAI,EAAE,WAAW,CAAC;YAChD,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;YACnC,iBAAiB;YACjB,IAAI;YACJ,mBAAmB;SACpB,CAAA;IACH,CAAC,CACF,CAAC,SAAS,CAAC,CAAA;AACd,CAAC"}
|
@@ -12,7 +12,7 @@ export interface CommonExamProps {
|
|
12
12
|
doc: XMLDocument;
|
13
13
|
/** @deprecated Not used anymore */
|
14
14
|
language?: string;
|
15
|
-
|
15
|
+
ignoreEventHandling?: boolean;
|
16
16
|
}
|
17
17
|
/** Props related to taking the exam, 'executing' it */
|
18
18
|
export interface ExamProps extends CommonExamProps {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Exam.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAG/D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AA8CvG,2DAA2D;AAC3D,MAAM,WAAW,eAAe;IAC9B,sBAAsB;IACtB,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,uCAAuC;IACvC,cAAc,EAAE,MAAM,CAAA;IACtB,iEAAiE;IACjE,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/C,mBAAmB;IACnB,GAAG,EAAE,WAAW,CAAA;IAChB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,
|
1
|
+
{"version":3,"file":"Exam.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAG/D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AA8CvG,2DAA2D;AAC3D,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