@digabi/exam-engine-core 21.0.0-annoteta-react.0 → 21.0.1-annoteta-react.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/context/AnnotationProvider.d.ts +3 -3
- package/dist/components/context/AnnotationProvider.d.ts.map +1 -1
- package/dist/components/context/AnnotationProvider.js.map +1 -1
- package/dist/components/exam/Exam.d.ts +2 -2
- package/dist/components/exam/Exam.d.ts.map +1 -1
- package/dist/components/exam/Exam.js.map +1 -1
- package/dist/components/shared/AnnotationPopup.d.ts.map +1 -1
- package/dist/components/shared/AnnotationPopup.js +5 -3
- package/dist/components/shared/AnnotationPopup.js.map +1 -1
- package/dist/createRenderChildNodes.d.ts.map +1 -1
- package/dist/createRenderChildNodes.js +18 -11
- package/dist/createRenderChildNodes.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/dist/types/Score.d.ts +4 -2
- package/dist/types/Score.d.ts.map +1 -1
- package/package.json +2 -2
@@ -1,12 +1,12 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
2
|
+
import { NewExamAnnotation } from '../../types/Score';
|
3
3
|
import { AnnotationProps } from '../exam/Exam';
|
4
4
|
interface Props {
|
5
5
|
children: React.ReactNode;
|
6
6
|
}
|
7
7
|
export interface AnnotationContextType extends AnnotationProps {
|
8
|
-
newAnnotation:
|
9
|
-
setNewAnnotation: (a:
|
8
|
+
newAnnotation: NewExamAnnotation | null;
|
9
|
+
setNewAnnotation: (a: NewExamAnnotation | null) => void;
|
10
10
|
newAnnotationRef: HTMLElement | undefined;
|
11
11
|
setNewAnnotationRef: (ref: HTMLElement | undefined) => void;
|
12
12
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AnnotationProvider.d.ts","sourceRoot":"","sources":["../../../src/components/context/AnnotationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"AnnotationProvider.d.ts","sourceRoot":"","sources":["../../../src/components/context/AnnotationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,aAAa,EAAE,iBAAiB,GAAG,IAAI,CAAA;IACvC,gBAAgB,EAAE,CAAC,CAAC,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAA;IACvD,gBAAgB,EAAE,WAAW,GAAG,SAAS,CAAA;IACzC,mBAAmB,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,SAAS,KAAK,IAAI,CAAA;CAC5D;AAED,eAAO,MAAM,iBAAiB,sCAAmD,CAAA;AAEjF,eAAO,MAAM,kBAAkB,mEAK5B,KAAK,GAAG,eAAe,iGAuBzB,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AnnotationProvider.js","sourceRoot":"","sources":["../../../src/components/context/AnnotationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAezB,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,EAA2B,CAAC,CAAA;AAEjF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EACjC,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EACQ,EAAE,EAAE;IAC5B,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,
|
1
|
+
{"version":3,"file":"AnnotationProvider.js","sourceRoot":"","sources":["../../../src/components/context/AnnotationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAezB,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,EAA2B,CAAC,CAAA;AAEjF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EACjC,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EACQ,EAAE,EAAE;IAC5B,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAA2B,IAAI,CAAC,CAAA;IACxF,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAe,CAAA;IAE7E,IAAI,CAAC,iBAAiB,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAC5C,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED,OAAO,CACL,oBAAC,iBAAiB,CAAC,QAAQ,IACzB,KAAK,EAAE;YACL,WAAW;YACX,iBAAiB;YACjB,gBAAgB;YAChB,gBAAgB;YAChB,aAAa;YACb,gBAAgB;YAChB,mBAAmB;SACpB,IAEA,QAAQ,CACkB,CAC9B,CAAA;AACH,CAAC,CAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { ExamAnnotation, ExamAnswer, ExamServerAPI, InitialCasStatus, RestrictedAudioPlaybackStats } from '../../index';
|
2
|
+
import { ExamAnnotation, ExamAnswer, ExamServerAPI, InitialCasStatus, NewExamAnnotation, RestrictedAudioPlaybackStats } from '../../index';
|
3
3
|
import { RichTextAnswer, TextAnswer as TextAnswerType } from '../../types/ExamAnswer';
|
4
4
|
/** Props common to taking the exams and viewing results */
|
5
5
|
export interface CommonExamProps {
|
@@ -18,7 +18,7 @@ export interface CommonExamProps {
|
|
18
18
|
export interface AnnotationProps {
|
19
19
|
annotations?: Record<string, ExamAnnotation[]>;
|
20
20
|
onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotation: ExamAnnotation) => void;
|
21
|
-
onSaveAnnotation?: (annotation:
|
21
|
+
onSaveAnnotation?: (annotation: NewExamAnnotation) => void;
|
22
22
|
}
|
23
23
|
interface UndoViewProps {
|
24
24
|
close: () => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Exam.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAA;AAOzE,OAAO,
|
1
|
+
{"version":3,"file":"Exam.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAA;AAOzE,OAAO,EACL,cAAc,EACd,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,4BAA4B,EAC7B,MAAM,aAAa,CAAA;AAIpB,OAAO,EAAE,cAAc,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,wBAAwB,CAAA;AA8CrF,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,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAAA;IAC9C,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,UAAU,EAAE,cAAc,KAAK,IAAI,CAAA;IACtG,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,IAAI,CAAA;CAC3D;AACD,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,aAAa,EAAE,CAAC,UAAU,EAAE,cAAc,GAAG,cAAc,KAAK,IAAI,CAAA;IACpE,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,uDAAuD;AACvD,MAAM,WAAW,SAAU,SAAQ,eAAe;IAChD,2CAA2C;IAC3C,SAAS,EAAE,gBAAgB,CAAA;IAC3B,oEAAoE;IACpE,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B;;;OAGG;IACH,4BAA4B,EAAE,4BAA4B,EAAE,CAAA;IAC5D,qCAAqC;IACrC,aAAa,EAAE,aAAa,CAAA;IAC5B,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,aAAa,CAAA;CAC7B;;AAyOD,wBAAuE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Exam.js","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;
|
1
|
+
{"version":3,"file":"Exam.js","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OA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gBAAgB,EAAE,WAAW,EAAE,IAAI,GAAM,CAC7F,CACc;oCAEhB,gBAAgB,CAAC,IAAI,CAAC;oCAEtB,CAAC,SAAS,IAAI,eAAe,CAAC,IAAI,CACjC,6BAAK,SAAS,EAAC,gBAAgB;wCAC7B,oBAAC,wBAAwB,OAAG;wCAC5B,oBAAC,2BAA2B,OAAG,CAC3B,CACP,CACG,CACF,CACF;wBACL,CAAC,SAAS,IAAI,eAAe,CAAC,IAAI,CACjC,oBAAC,MAAM;4BACL,6BAAK,SAAS,EAAC,mCAAmC;gCAChD,oBAAC,aAAa,OAAG,CACb,CACC,CACV;wBACD,6BAAK,SAAS,EAAC,wBAAwB;4BACrC,oBAAC,cAAc,OAAG;4BAClB,oBAAC,aAAa,OAAG,CACb;wBACL,YAAY,IAAI,eAAe,IAAI,oBAAC,QAAQ,OAAK,aAAa,GAAI,CAC9D,CACS,CACE,CACH,CACZ,CACZ,CAAA;AACH,CAAC,CAAA;AAED,MAAM,2BAA2B,GAAG,GAAG,EAAE;IACvC,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAClC,OAAO,CACL,6BAAK,SAAS,EAAC,6BAA6B,EAAC,EAAE,EAAC,yBAAyB,IACtE,CAAC,CAAC,2BAA2B,CAAC,CAC3B,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AnnotationPopup.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnnotationPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAA;AAK9D,wBAAgB,eAAe,
|
1
|
+
{"version":3,"file":"AnnotationPopup.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnnotationPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAA;AAK9D,wBAAgB,eAAe,6BA4E9B"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React, { useContext, useEffect, useState } from 'react';
|
2
|
-
import { AnnotationContext } from '../context/AnnotationProvider';
|
3
2
|
import { makeRichText } from 'rich-text-editor';
|
3
|
+
import { AnnotationContext } from '../context/AnnotationProvider';
|
4
4
|
export function AnnotationPopup() {
|
5
5
|
const popupRef = React.createRef();
|
6
6
|
const textAreaRef = React.createRef();
|
@@ -27,9 +27,11 @@ export function AnnotationPopup() {
|
|
27
27
|
}
|
28
28
|
return null;
|
29
29
|
}
|
30
|
-
const closeEditor = () =>
|
30
|
+
const closeEditor = () => {
|
31
|
+
setNewAnnotation(null);
|
32
|
+
};
|
31
33
|
function updateComment(annotation, comment) {
|
32
|
-
onSaveAnnotation({ ...annotation, message: comment
|
34
|
+
onSaveAnnotation({ ...annotation, message: comment });
|
33
35
|
closeEditor();
|
34
36
|
}
|
35
37
|
return (React.createElement("div", { className: "annotation-popup", style: { position: 'absolute', opacity: 0 }, ref: popupRef, "data-testid": "annotation-popup" },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AnnotationPopup.js","sourceRoot":"","sources":["../../../src/components/shared/AnnotationPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC9D,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"AnnotationPopup.js","sourceRoot":"","sources":["../../../src/components/shared/AnnotationPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AAEjE,MAAM,UAAU,eAAe;IAC7B,MAAM,QAAQ,GAAG,KAAK,CAAC,SA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MAAM,CAAC,UAAU,CAAA;QACrC,KAAK,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAA;QAC9B,KAAK,CAAC,OAAO,GAAG,GAAG,CAAA;QACnB,MAAM,oBAAoB,GAAG,QAAQ,CAAC,IAAI,GAAG,SAAS,CAAC,KAAK,GAAG,WAAW,CAAA;QAE1E,IAAI,oBAAoB,EAAE,CAAC;YACzB,KAAK,CAAC,IAAI,GAAG,GAAG,QAAQ,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,IAAI,CAAA;QACtD,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,IAAI,GAAG,GAAG,QAAQ,CAAC,IAAI,IAAI,CAAA;QACnC,CAAC;IACH,CAAC;AACH,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createRenderChildNodes.d.ts","sourceRoot":"","sources":["../src/createRenderChildNodes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAA;AAO5D,eAAO,MAAM,gBAAgB,0CAA0C,CAAA;AACvE,eAAO,MAAM,iBAAiB,iCAAiC,CAAA;AAE/D,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kCAAkC;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,2EAA2E;IAC3E,gBAAgB,EAAE,gBAAgB,CAAA;CACnC;AAED,0BAAkB,aAAa;IAC7B,UAAU,IAAA;IACV,QAAQ,IAAA;CACT;AAED,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,KAAK,CAAC,SAAS,EAAE,CAAA;AAmB/F,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,GACpE,gBAAgB,
|
1
|
+
{"version":3,"file":"createRenderChildNodes.d.ts","sourceRoot":"","sources":["../src/createRenderChildNodes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAA;AAO5D,eAAO,MAAM,gBAAgB,0CAA0C,CAAA;AACvE,eAAO,MAAM,iBAAiB,iCAAiC,CAAA;AAE/D,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kCAAkC;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,2EAA2E;IAC3E,gBAAgB,EAAE,gBAAgB,CAAA;CACnC;AAED,0BAAkB,aAAa;IAC7B,UAAU,IAAA;IACV,QAAQ,IAAA;CACT;AAED,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,KAAK,CAAC,SAAS,EAAE,CAAA;AAmB/F,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,GACpE,gBAAgB,CAgDlB"}
|
@@ -25,8 +25,7 @@ export function createRenderChildNodes(componentMap) {
|
|
25
25
|
switch (node.nodeType) {
|
26
26
|
case Node.TEXT_NODE:
|
27
27
|
case Node.CDATA_SECTION_NODE: {
|
28
|
-
|
29
|
-
return options === 0 /* RenderOptions.RenderHTML */ ? renderTextNode(node, path) : null;
|
28
|
+
return options === 0 /* RenderOptions.RenderHTML */ ? renderTextNode(node) : null;
|
30
29
|
}
|
31
30
|
case Node.ELEMENT_NODE:
|
32
31
|
return renderElement(node, index, options);
|
@@ -65,7 +64,7 @@ export function createRenderChildNodes(componentMap) {
|
|
65
64
|
}
|
66
65
|
return renderChildNodes;
|
67
66
|
}
|
68
|
-
function renderTextNode(node
|
67
|
+
function renderTextNode(node) {
|
69
68
|
var _a;
|
70
69
|
const annotationContextData = useContext(AnnotationContext);
|
71
70
|
const { isInSidebar } = useContext(IsInSidebarContext);
|
@@ -74,13 +73,21 @@ function renderTextNode(node, key) {
|
|
74
73
|
isInSidebar !== undefined) {
|
75
74
|
return node.textContent;
|
76
75
|
}
|
76
|
+
return React.createElement(AnnotatableText, { node: node, annotationContextData: annotationContextData });
|
77
|
+
}
|
78
|
+
const isExamAnnotation = (annotation) => 'displayNumber' in annotation;
|
79
|
+
const AnnotatableText = ({ node, annotationContextData }) => {
|
77
80
|
const { annotations, onClickAnnotation, setNewAnnotation, setNewAnnotationRef, newAnnotation } = annotationContextData;
|
78
|
-
const
|
79
|
-
const
|
81
|
+
const path = getElementPath(node);
|
82
|
+
const newAnnotationForThisNode = (newAnnotation === null || newAnnotation === void 0 ? void 0 : newAnnotation.annotationAnchor) === path ? newAnnotation : null;
|
83
|
+
const thisNodeAnnotations = [
|
84
|
+
...((annotations === null || annotations === void 0 ? void 0 : annotations[path]) || []),
|
85
|
+
...(newAnnotationForThisNode ? [newAnnotationForThisNode] : [])
|
86
|
+
];
|
80
87
|
const mouseUpCallback = (annotation) => {
|
81
88
|
var _a;
|
82
89
|
const displayNumber = ((_a = queryAncestors(node.parentElement, 'question')) === null || _a === void 0 ? void 0 : _a.getAttribute('display-number')) || '';
|
83
|
-
setNewAnnotation({ ...annotation, annotationAnchor:
|
90
|
+
setNewAnnotation({ ...annotation, annotationAnchor: path, displayNumber });
|
84
91
|
};
|
85
92
|
function onMouseDown(e) {
|
86
93
|
const target = e.target;
|
@@ -90,7 +97,7 @@ function renderTextNode(node, key) {
|
|
90
97
|
}
|
91
98
|
onMouseDownForAnnotation(e, mouseUpCallback);
|
92
99
|
}
|
93
|
-
return (React.createElement("span", { onMouseDown: onMouseDown, className: "e-annotatable", key:
|
100
|
+
return (React.createElement("span", { onMouseDown: onMouseDown, className: "e-annotatable", key: path }, (thisNodeAnnotations === null || thisNodeAnnotations === void 0 ? void 0 : thisNodeAnnotations.length) > 0 ? markText(node.textContent, thisNodeAnnotations) : node.textContent));
|
94
101
|
function markText(text, annotations) {
|
95
102
|
if (annotations.length === 0) {
|
96
103
|
return [text];
|
@@ -108,22 +115,22 @@ function renderTextNode(node, key) {
|
|
108
115
|
}
|
109
116
|
// Add marked text
|
110
117
|
const markedText = text.substring(annotation.startIndex, annotation.startIndex + annotation.length);
|
111
|
-
nodes.push(annotation.hidden ? (React.createElement("mark", { key: annotation.startIndex, className: "e-annotation", "data-annotation-id": annotation.annotationId, "data-hidden": "true" })) : (React.createElement(Mark, { key: annotation.startIndex, annotation: annotation, markedText: markedText, onClickAnnotation: onClickAnnotation, setNewAnnotationRef: setNewAnnotationRef })));
|
118
|
+
nodes.push(annotation.hidden ? (React.createElement("mark", { key: annotation.startIndex, className: "e-annotation", "data-annotation-id": isExamAnnotation(annotation) ? annotation.annotationId : '', "data-hidden": "true" })) : (React.createElement(Mark, { key: annotation.startIndex, annotation: annotation, markedText: markedText, onClickAnnotation: onClickAnnotation, setNewAnnotationRef: setNewAnnotationRef })));
|
112
119
|
lastIndex = annotation.startIndex + annotation.length;
|
113
120
|
}
|
114
121
|
// Add remaining unmarked text
|
115
122
|
nodes.push(text.substring(lastIndex));
|
116
123
|
return nodes;
|
117
124
|
}
|
118
|
-
}
|
125
|
+
};
|
119
126
|
const Mark = ({ annotation, markedText, onClickAnnotation, setNewAnnotationRef }) => {
|
120
127
|
const markRef = useRef(null);
|
121
128
|
useEffect(() => {
|
122
|
-
if (markRef.current && !annotation
|
129
|
+
if (markRef.current && !isExamAnnotation(annotation)) {
|
123
130
|
setNewAnnotationRef(markRef.current);
|
124
131
|
}
|
125
132
|
}, []);
|
126
|
-
return (React.createElement("mark", { key: annotation.startIndex, ref: markRef, className: "e-annotation", "data-annotation-id": annotation.annotationId
|
133
|
+
return (React.createElement("mark", { key: annotation.startIndex, ref: markRef, className: "e-annotation", "data-annotation-id": isExamAnnotation(annotation) ? annotation.annotationId : '', "data-hidden": "false", onClick: e => (isExamAnnotation(annotation) ? onClickAnnotation(e, annotation) : undefined) },
|
127
134
|
markedText,
|
128
135
|
(annotation === null || annotation === void 0 ? void 0 : annotation.markNumber) && React.createElement("sup", { className: "e-annotation", "data-content": annotation === null || annotation === void 0 ? void 0 : annotation.markNumber })));
|
129
136
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createRenderChildNodes.js","sourceRoot":"","sources":["../src/createRenderChildNodes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC5D,OAAO,EAAE,iBAAiB,
|
1
|
+
{"version":3,"file":"createRenderChildNodes.js","sourceRoot":"","sources":["../src/createRenderChildNodes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAyB,MAAM,yCAAyC,CAAA;AAClG,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAA;AACnF,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AAE5E,MAAM,CAAC,MAAM,gBAAgB,GAAG,uCAAuC,CAAA;AACvE,MAAM,CAAC,MAAM,iBAAiB,GAAG,8BAA8B,CAAA;AAiB/D,SAAS,cAAc,CAAC,OAAgB;;IACtC,MAAM,IAAI,GAAG,CAAC,OAAO,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAA,MAAA,OAAO,CAAC,UAAU,0CAAE,UAAU,KAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;IAClG,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,CAAA,MAAA,OAAO,CAAC,aAAa,0CAAE,QAAQ,KAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;IACvF,IAAI,IAAI,GAAG,GAAG,OAAO,CAAC,QAAQ,IAAI,YAAY,GAAG,CAAC,CAAC,CAAC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