@digabi/exam-engine-core 20.2.4-meta-attribute.0 → 20.3.0
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/exam/Question.js +1 -1
- package/dist/components/exam/Question.js.map +1 -1
- package/dist/components/exam/SectionTitle.js +1 -1
- package/dist/components/exam/SectionTitle.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/package.json +2 -2
@@ -54,7 +54,7 @@ function Question({ element, renderChildNodes }) {
|
|
54
54
|
const ref = React.createRef();
|
55
55
|
const { addRef } = useContext(TOCContext);
|
56
56
|
useEffect(() => {
|
57
|
-
if ((ref === null || ref === void 0 ? void 0 : ref.current) && level === 0) {
|
57
|
+
if ((ref === null || ref === void 0 ? void 0 : ref.current) && level === 0 && addRef) {
|
58
58
|
addRef(ref.current);
|
59
59
|
}
|
60
60
|
}, []);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Question.js","sourceRoot":"","sources":["../../../src/components/exam/Question.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,UAAU,EA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AiB,EAAE;gBACvC,gCAAgC,EAAE,KAAK,KAAK,CAAC;gBAC7C,qBAAqB,EAAE,KAAK,GAAG,CAAC;gBAChC,YAAY,EAAE,QAAQ;aACvB,CAAC,4BACsB,aAAa,iBACxB,YAAY,aAAa,EAAE,EACxC,GAAG,EAAE,GAAG;YAER,6BAAK,SAAS,EAAC,QAAQ,EAAC,EAAE,EAAE,eAAe,aAAa,EAAE,GAAI;YAE7D,QAAQ,CAAC,CAAC,CAAC,CACV,6BAAK,SAAS,EAAC,aAAa,yBAAsB,aAAa;gBAC7D,gCAAQ,SAAS,EAAC,cAAc,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC;oBACrE,oBAAC,eAAe,IAAC,IAAI,EAAE,aAAa,GAAI;oBACvC,CAAC,CAAC,oBAAoB,CAAC,CACjB;gBACR,gBAAgB,CAAC,OAAO,CAAC,CACtB,CACP,CAAC,CAAC,CAAC,CACF,gBAAgB,CAAC,OAAO,CAAC,CAC1B,CACG,CACyB,CAClC,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAA"}
|
@@ -13,7 +13,7 @@ function SectionTitle({ element, renderChildNodes }) {
|
|
13
13
|
const ref = React.createRef();
|
14
14
|
const { addRef } = useContext(TOCContext);
|
15
15
|
useEffect(() => {
|
16
|
-
if (ref === null || ref === void 0 ? void 0 : ref.current) {
|
16
|
+
if ((ref === null || ref === void 0 ? void 0 : ref.current) && addRef) {
|
17
17
|
addRef(ref.current);
|
18
18
|
}
|
19
19
|
}, []);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SectionTitle.js","sourceRoot":"","sources":["../../../src/components/exam/SectionTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEpD,OAAO,EAAE,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