@digabi/exam-engine-core 21.0.4-annoteta-react.0 → 22.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. package/dist/__tests__/annotations.test.d.ts.map +1 -1
  2. package/dist/__tests__/annotations.test.js +175 -60
  3. package/dist/__tests__/annotations.test.js.map +1 -1
  4. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  5. package/dist/components/RenderIf.d.ts.map +1 -1
  6. package/dist/components/attachments/Attachments.d.ts.map +1 -1
  7. package/dist/components/attachments/Attachments.js +7 -9
  8. package/dist/components/attachments/Attachments.js.map +1 -1
  9. package/dist/components/context/AnnotationContext.d.ts +4 -5
  10. package/dist/components/context/AnnotationContext.d.ts.map +1 -1
  11. package/dist/components/context/AnnotationContext.js.map +1 -1
  12. package/dist/components/context/AnnotationProvider.d.ts +7 -2
  13. package/dist/components/context/AnnotationProvider.d.ts.map +1 -1
  14. package/dist/components/context/AnnotationProvider.js +30 -4
  15. package/dist/components/context/AnnotationProvider.js.map +1 -1
  16. package/dist/components/context/GradingInstructionContext.d.ts +9 -0
  17. package/dist/components/context/GradingInstructionContext.d.ts.map +1 -0
  18. package/dist/components/context/GradingInstructionContext.js +3 -0
  19. package/dist/components/context/GradingInstructionContext.js.map +1 -0
  20. package/dist/components/context/IsInSidebarContext.d.ts +0 -1
  21. package/dist/components/context/IsInSidebarContext.d.ts.map +1 -1
  22. package/dist/components/context/ResultsContext.d.ts.map +1 -1
  23. package/dist/components/context/ResultsContext.js.map +1 -1
  24. package/dist/components/context/TOCContext.d.ts +0 -1
  25. package/dist/components/context/TOCContext.d.ts.map +1 -1
  26. package/dist/components/context/withContext.d.ts.map +1 -1
  27. package/dist/components/exam/ChoiceAnswer.d.ts.map +1 -1
  28. package/dist/components/exam/ChoiceAnswer.js +16 -14
  29. package/dist/components/exam/ChoiceAnswer.js.map +1 -1
  30. package/dist/components/exam/Exam.d.ts +4 -4
  31. package/dist/components/exam/Exam.d.ts.map +1 -1
  32. package/dist/components/exam/Exam.js +0 -2
  33. package/dist/components/exam/Exam.js.map +1 -1
  34. package/dist/components/exam/RichTextAnswer.d.ts +1 -1
  35. package/dist/components/exam/RichTextAnswer.d.ts.map +1 -1
  36. package/dist/components/exam/TextAnswer.d.ts.map +1 -1
  37. package/dist/components/exam/TextAnswer.js +6 -4
  38. package/dist/components/exam/TextAnswer.js.map +1 -1
  39. package/dist/components/exam/internal/ProgressBar.d.ts.map +1 -1
  40. package/dist/components/exam/internal/ProgressBar.js +1 -0
  41. package/dist/components/exam/internal/ProgressBar.js.map +1 -1
  42. package/dist/components/grading/editAnnotations.d.ts.map +1 -1
  43. package/dist/components/grading/editAnnotations.js +2 -1
  44. package/dist/components/grading/editAnnotations.js.map +1 -1
  45. package/dist/components/grading/examAnnotationUtils.d.ts +0 -1
  46. package/dist/components/grading/examAnnotationUtils.d.ts.map +1 -1
  47. package/dist/components/grading/examAnnotationUtils.js +88 -37
  48. package/dist/components/grading/examAnnotationUtils.js.map +1 -1
  49. package/dist/components/grading-instructions/EditableGradingInstruction.d.ts +5 -0
  50. package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +1 -0
  51. package/dist/components/grading-instructions/EditableGradingInstruction.js +25 -0
  52. package/dist/components/grading-instructions/EditableGradingInstruction.js.map +1 -0
  53. package/dist/components/grading-instructions/GradingInstructionProvider.d.ts +4 -0
  54. package/dist/components/grading-instructions/GradingInstructionProvider.d.ts.map +1 -0
  55. package/dist/components/grading-instructions/GradingInstructionProvider.js +8 -0
  56. package/dist/components/grading-instructions/GradingInstructionProvider.js.map +1 -0
  57. package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
  58. package/dist/components/grading-instructions/GradingInstructions.js +23 -25
  59. package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
  60. package/dist/components/shared/AnnotatableText.d.ts +2 -4
  61. package/dist/components/shared/AnnotatableText.d.ts.map +1 -1
  62. package/dist/components/shared/AnnotatableText.js +22 -60
  63. package/dist/components/shared/AnnotatableText.js.map +1 -1
  64. package/dist/components/shared/AnnotationMark.d.ts +9 -0
  65. package/dist/components/shared/AnnotationMark.d.ts.map +1 -0
  66. package/dist/components/shared/AnnotationMark.js +14 -0
  67. package/dist/components/shared/AnnotationMark.js.map +1 -0
  68. package/dist/components/shared/AnnotationPopup.js +4 -4
  69. package/dist/components/shared/AnnotationPopup.js.map +1 -1
  70. package/dist/components/shared/AnswerIndicator.d.ts +1 -1
  71. package/dist/components/shared/AnswerIndicator.d.ts.map +1 -1
  72. package/dist/components/shared/AnswerIndicator.js +10 -9
  73. package/dist/components/shared/AnswerIndicator.js.map +1 -1
  74. package/dist/components/shared/AnswerLengthInfo.d.ts +1 -1
  75. package/dist/components/shared/AnswerLengthInfo.d.ts.map +1 -1
  76. package/dist/components/shared/AttachmentLink.d.ts +1 -1
  77. package/dist/components/shared/AttachmentLink.d.ts.map +1 -1
  78. package/dist/components/shared/AttachmentLinks.d.ts +1 -1
  79. package/dist/components/shared/AttachmentLinks.d.ts.map +1 -1
  80. package/dist/components/shared/References.d.ts.map +1 -1
  81. package/dist/components/shared/References.js +1 -0
  82. package/dist/components/shared/References.js.map +1 -1
  83. package/dist/components/shared/TOCQuestion.js +1 -1
  84. package/dist/components/shared/TOCQuestion.js.map +1 -1
  85. package/dist/components/shared/markText.d.ts +5 -0
  86. package/dist/components/shared/markText.d.ts.map +1 -0
  87. package/dist/components/shared/markText.js +72 -0
  88. package/dist/components/shared/markText.js.map +1 -0
  89. package/dist/createRenderChildNodes.d.ts.map +1 -1
  90. package/dist/createRenderChildNodes.js +2 -12
  91. package/dist/createRenderChildNodes.js.map +1 -1
  92. package/dist/dom-utils.js +2 -2
  93. package/dist/dom-utils.js.map +1 -1
  94. package/dist/i18n/index.d.ts +1 -2
  95. package/dist/i18n/index.d.ts.map +1 -1
  96. package/dist/i18n/index.js.map +1 -1
  97. package/dist/main-bundle.js +1 -1
  98. package/dist/main.css +1 -1
  99. package/dist/store/answers/reducer.d.ts.map +1 -1
  100. package/dist/store/audio/reducer.d.ts.map +1 -1
  101. package/dist/store/audio/sagas.d.ts.map +1 -1
  102. package/dist/store/audio/sagas.js +3 -1
  103. package/dist/store/audio/sagas.js.map +1 -1
  104. package/dist/store/cas/reducer.d.ts.map +1 -1
  105. package/dist/store/index.d.ts +1 -2
  106. package/dist/store/index.d.ts.map +1 -1
  107. package/dist/store/listenerMiddleware.d.ts +89 -0
  108. package/dist/store/listenerMiddleware.d.ts.map +1 -0
  109. package/dist/store/listenerMiddleware.js +6 -0
  110. package/dist/store/listenerMiddleware.js.map +1 -0
  111. package/dist/store/selectors.d.ts +1 -1
  112. package/dist/types/Score.d.ts +18 -3
  113. package/dist/types/Score.d.ts.map +1 -1
  114. package/package.json +4 -4
@@ -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;AAU3D,MAAM,eAAe,GAAG,CAAC,KAAY,EAAE,EAAE;IACvC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,KAAK,CAAA;IAExD,MAAM,KAAK,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAA;IAC3B,MAAM,gBAAgB,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,MAAK,UAAU,CAAA;IACpD,MAAM,eAAe,GAAG,gBAAgB,KAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,CAAC,uBAAuB,CAAC,CAAA,CAAA;IACpF,MAAM,aAAa,GACjB,gBAAgB,IAAI,CAAC,CAAA,KAAK,aAAL,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KAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,cAAc,CAAA,IAAI,kCAAO,MAAM,CAAC,cAAc,CAAQ,CAAC,IAAI,EAAE;YAC1F,eAAe,IAAI,8BAAM,SAAS,EAAC,SAAS,aAAS;YACrD,aAAa,IAAI,CAChB,8BAAM,SAAS,EAAC,KAAK;gBACnB,oBAAC,eAAe,IAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,IAAI,GAAG,CACvC,CACR,CACA,CACJ,CACG,CACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,eAAe,CAAC,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  declare const _default: React.NamedExoticComponent<{
3
3
  maxLength: number;
4
- id?: string | undefined;
4
+ id?: string;
5
5
  }>;
6
6
  export default _default;
7
7
  //# sourceMappingURL=AnswerLengthInfo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnswerLengthInfo.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnswerLengthInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;;;;;AAezB,wBAA2C"}
1
+ {"version":3,"file":"AnswerLengthInfo.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnswerLengthInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;;eAIoC,MAAM;SAAO,MAAM;;AAWhF,wBAA2C"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ExamComponentProps } from '../../createRenderChildNodes';
3
- declare const mkAttachmentLink: (type: 'link' | 'plain') => React.FunctionComponent<ExamComponentProps>;
3
+ declare const mkAttachmentLink: (type: "link" | "plain") => React.FunctionComponent<ExamComponentProps>;
4
4
  export default mkAttachmentLink;
5
5
  //# sourceMappingURL=AttachmentLink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentLink.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AttachmentLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAOjE,QAAA,MAAM,gBAAgB,SAAU,MAAM,GAAG,OAAO,KAAG,MAAM,iBAAiB,CAAC,kBAAkB,CAyB5F,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"AttachmentLink.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AttachmentLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAOjE,QAAA,MAAM,gBAAgB,SAAU,MAAM,GAAG,OAAO,KAAG,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAyB5F,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { ExamComponentProps } from '../../createRenderChildNodes';
3
- declare const mkAttachmentLinks: (type: 'link' | 'plain') => React.FunctionComponent<ExamComponentProps>;
3
+ declare const mkAttachmentLinks: (type: "link" | "plain") => React.FunctionComponent<ExamComponentProps>;
4
4
  export default mkAttachmentLinks;
5
5
  //# sourceMappingURL=AttachmentLinks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentLinks.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AttachmentLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAOjE,QAAA,MAAM,iBAAiB,SAAU,MAAM,GAAG,OAAO,KAAG,MAAM,iBAAiB,CAAC,kBAAkB,CAmC7F,CAAA;AAgCD,eAAe,iBAAiB,CAAA"}
1
+ {"version":3,"file":"AttachmentLinks.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AttachmentLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAOjE,QAAA,MAAM,iBAAiB,SAAU,MAAM,GAAG,OAAO,KAAG,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAmC7F,CAAA;AAgCD,eAAe,iBAAiB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"References.d.ts","sourceRoot":"","sources":["../../../src/components/shared/References.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAA0B,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAUzF,iBAAS,UAAU,CAAC,MAAM,EAAE,kBAAkB,4BAuB7C;;AAED,wBAAqC"}
1
+ {"version":3,"file":"References.d.ts","sourceRoot":"","sources":["../../../src/components/shared/References.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAA0B,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAUzF,iBAAS,UAAU,CAAC,MAAM,EAAE,kBAAkB,4BAwB7C;;AAED,wBAAqC"}
@@ -14,6 +14,7 @@ function References(_props) {
14
14
  const internalReferences = queryAll(root, 'reference').filter(reference => queryAncestors(reference, 'external-material') == null);
15
15
  return internalReferences.length > 0 ? (React.createElement(SectionElement, { "aria-labelledby": referencesTitleId },
16
16
  React.createElement("h2", { id: referencesTitleId }, t('references.heading')),
17
+ React.createElement("div", { className: "anchor", id: "references" }),
17
18
  React.createElement("ol", { className: "e-list-data", "data-annotation-anchor": referencesTitleId }, internalReferences.map((reference, i) => {
18
19
  const question = queryAncestors(reference, 'question');
19
20
  const displayNumber = question.getAttribute('display-number');
@@ -1 +1 @@
1
- {"version":3,"file":"References.js","sourceRoot":"","sources":["../../../src/components/shared/References.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,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AI,IAAI,CACpE,CAAA;IAED,OAAO,kBAAkB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CACrC,oBAAC,cAAc,uBAAkB,iBAAiB;QAChD,4BAAI,EAAE,EAAE,iBAAiB,IAAG,CAAC,CAAC,oBAAoB,CAAC,CAAM;QACzD,6BAAK,SAAS,EAAC,QAAQ,EAAC,EAAE,EAAC,YAAY,GAAG;QAC1C,4BAAI,SAAS,EAAC,aAAa,4BAAyB,iBAAiB,IAClE,kBAAkB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE;YACvC,MAAM,QAAQ,GAAG,cAAc,CAAC,SAAS,EAAE,UAAU,CAAE,CAAA;YACvD,MAAM,aAAa,GAAG,QAAQ,CAAC,YAAY,CAAC,gBAAgB,CAAE,CAAA;YAC9D,OAAO,CACL,gDAAsB,2BAA2B,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,GAAG,aAAa,GAAG,CAAC,EAAE;gBAC3F,oBAAC,SAAS,IAAC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,GAAI,CAClE,CACN,CAAA;QACH,CAAC,CAAC,CACC,CACU,CAClB,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA"}
@@ -43,7 +43,7 @@ export const TOCQuestion = ({ element, renderChildNodes }) => {
43
43
  id,
44
44
  type,
45
45
  error: hasError || (childQuestionHasError && hasAnswer),
46
- displayNumber: Number(subQuestionDisplayNumber)
46
+ displayNumber: subQuestionDisplayNumber
47
47
  });
48
48
  }
49
49
  });
@@ -1 +1 @@
1
- {"version":3,"file":"TOCQuestion.js","sourceRoot":"","sources":["../../../src/components/shared/TOCQuestion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE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AC;iBACpF,CAAC,EACF,MAAM,EAAC,aAAa,IAEnB,CAAC,CAAC,UAAU,CAAC,CACZ,CACC,CACR;QAED,8BAAM,SAAS,EAAC,2DAA2D,IACxE,CAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAC5B;QAEN,WAAW,IAAI,CACd,8BAAM,SAAS,EAAC,+CAA+C,IAC5D,gBAAgB,IAAI,oBAAC,eAAe,IAAC,IAAI,EAAC,IAAI,EAAC,IAAI,EAAE,WAAW,EAAE,UAAU,SAAG,CAC3E,CACR;QAED,6BAAK,SAAS,EAAC,SAAS;YACrB,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CACrB,oBAAC,SAAS,IACR,GAAG,EAAE,CAAC,CAAC,EAAE,EACT,IAAI,EAAE,CAAC,CAAC,IAAI,EACZ,EAAE,EAAE,CAAC,CAAC,EAAE,EACR,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EACzB,KAAK,EAAE,CAAC,CAAC,KAAK,EACd,aAAa,EAAE,CAAC,CAAC,aAAa,GAC9B,CACH,CAAC;YAAE,GAAG,CACH,CACH,CACN,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { NewRenderableAnnotation, RenderableAnnotation } from '../../types/Score';
3
+ export declare function isExistingAnnotation(annotation: NewRenderableAnnotation | RenderableAnnotation): annotation is RenderableAnnotation;
4
+ export declare function markText(text: string, annotations: (RenderableAnnotation | NewRenderableAnnotation)[], onClickAnnotation: (e: React.MouseEvent<HTMLElement, MouseEvent>, a: RenderableAnnotation) => void, setNewAnnotationRef: (ref: HTMLElement | undefined) => void): React.ReactNode[];
5
+ //# sourceMappingURL=markText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markText.d.ts","sourceRoot":"","sources":["../../../src/components/shared/markText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAOjF,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,uBAAuB,GAAG,oBAAoB,GACzD,UAAU,IAAI,oBAAoB,CAEpC;AAMD,wBAAgB,QAAQ,CACtB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,CAAC,oBAAoB,GAAG,uBAAuB,CAAC,EAAE,EAC/D,iBAAiB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,CAAC,EAAE,oBAAoB,KAAK,IAAI,EAClG,mBAAmB,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,SAAS,KAAK,IAAI,qBA4G5D"}
@@ -0,0 +1,72 @@
1
+ import * as _ from 'lodash-es';
2
+ import React from 'react';
3
+ import { AnnotationMark } from './AnnotationMark';
4
+ function getKey(annotation) {
5
+ return isExistingAnnotation(annotation) ? annotation.annotationId + annotation.startIndex : annotation.startIndex;
6
+ }
7
+ export function isExistingAnnotation(annotation) {
8
+ return 'annotationId' in annotation;
9
+ }
10
+ function getMarkedText(text, startIndex, length) {
11
+ return text.substring(startIndex, startIndex + length);
12
+ }
13
+ export function markText(text, annotations, onClickAnnotation, setNewAnnotationRef) {
14
+ var _a;
15
+ if (annotations.length === 0) {
16
+ return [text];
17
+ }
18
+ annotations.sort((a, b) => a.startIndex - b.startIndex);
19
+ const [hiddenAnnotations, visibleAnnotations] = _.partition(annotations, a => a.hidden);
20
+ const nodes = [];
21
+ hiddenAnnotations.forEach(annotation => {
22
+ const key = getKey(annotation);
23
+ nodes.push(React.createElement("mark", { key: key, className: "e-annotation", "data-annotation-id": isExistingAnnotation(annotation) ? annotation.annotationId : '', "data-hidden": "true" }));
24
+ });
25
+ let lastIndex = 0;
26
+ const onlyLeadingSpacesRemoved = text.replace(/^\s+/, ' ');
27
+ const indentationSize = text.length - onlyLeadingSpacesRemoved.length;
28
+ const notOverlappingAnnotations = visibleAnnotations.reduce((acc, annotation) => {
29
+ const overlapsWithAnyVisibleAnnotation = acc.some(a => annotation.startIndex < a.startIndex + a.length &&
30
+ a.startIndex < annotation.startIndex + annotation.length &&
31
+ !a.hidden);
32
+ acc.push({
33
+ ...annotation,
34
+ hidden: annotation.hidden || overlapsWithAnyVisibleAnnotation
35
+ });
36
+ return acc;
37
+ }, []);
38
+ for (const annotation of notOverlappingAnnotations) {
39
+ /* "August 2024 annotation" refers to annotations made on or after 7.8.2024, and on or before x.8.2024.
40
+ * They use trimmed exam content (textWithoutLineBreaksAndExtraSpaces) for calculating startIndex.
41
+ * Support for "August 2024 annotations" can be removed at least when S25 exams are held.
42
+ *
43
+ * TODO:
44
+ * When support for Aug 2024 annotations can be removed, just do:
45
+ * const correctStartIndex = annotation.startIndex
46
+ * and remove any unused code left behind
47
+ */
48
+ const textWithoutLineBreaksAndExtraSpaces = text.replace(/\n/g, ' ').replace(/\s+/g, ' ');
49
+ const annotatedTextAugust2024 = getMarkedText(textWithoutLineBreaksAndExtraSpaces, annotation.startIndex, annotation.length);
50
+ const isAugust2024Annotation = annotatedTextAugust2024 === annotation.selectedText;
51
+ /**
52
+ * index difference is defined by how much indentation the text paragraph has in xml,
53
+ * and by how many line breaks there are before the annotated text.
54
+ * */
55
+ const amountOfLineBreaksBeforeAnnotation = ((_a = text.split(annotation.selectedText)[0].match(/\n/g)) === null || _a === void 0 ? void 0 : _a.length) || 0;
56
+ const startIndexDifference = amountOfLineBreaksBeforeAnnotation * indentationSize;
57
+ const correctStartIndex = annotation.startIndex + (isAugust2024Annotation ? startIndexDifference : 0);
58
+ const annotatedTextWithCorrectedStartIndex = getMarkedText(text, correctStartIndex, annotation.length);
59
+ // Add unmarked text before this mark
60
+ if (correctStartIndex > lastIndex) {
61
+ nodes.push(text.substring(lastIndex, correctStartIndex));
62
+ }
63
+ // Add marked text
64
+ const key = getKey(annotation);
65
+ nodes.push(annotation.hidden ? (React.createElement("mark", { key: key, className: "e-annotation", "data-annotation-id": isExistingAnnotation(annotation) ? annotation.annotationId : '', "data-hidden": "true" })) : (React.createElement(AnnotationMark, { key: key, annotation: annotation, markedText: annotatedTextWithCorrectedStartIndex, onClickAnnotation: onClickAnnotation, setNewAnnotationRef: setNewAnnotationRef })));
66
+ lastIndex = correctStartIndex + annotation.length;
67
+ }
68
+ // Add remaining unmarked text
69
+ nodes.push(text.substring(lastIndex));
70
+ return nodes;
71
+ }
72
+ //# sourceMappingURL=markText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markText.js","sourceRoot":"","sources":["../../../src/components/shared/markText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,SAAS,MAAM,CAAC,UAA0D;IACxE,OAAO,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAA;AACnH,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,UAA0D;IAE1D,OAAO,cAAc,IAAI,UAAU,CAAA;AACrC,CAAC;AAED,SAAS,aAAa,CAAC,IAAY,EAAE,UAAkB,EAAE,MAAc;IACrE,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAAC,CAAA;AACxD,CAAC;AAED,MAAM,UAAU,QAAQ,CACtB,IAAY,EACZ,WAA+D,EAC/D,iBAAkG,EAClG,mBAA2D;;IAE3D,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC7B,OAAO,CAAC,IAAI,CAAC,CAAA;IACf,CAAC;IAED,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,C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AAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,iBACvE,MAAM,GAClB,CACH,CAAC,CAAC,CAAC,CACF,oBAAC,cAAc,IACb,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,oCAAoC,EAChD,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,mBAAmB,GACxC,CACH,CACF,CAAA;QAED,SAAS,GAAG,iBAAiB,GAAG,UAAU,CAAC,MAAM,CAAA;IACnD,CAAC;IAED,8BAA8B;IAC9B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAA;IACrC,OAAO,KAAK,CAAA;AACd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createRenderChildNodes.d.ts","sourceRoot":"","sources":["../src/createRenderChildNodes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAMzC,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;AAE/F,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,GACpE,gBAAgB,CAgDlB"}
1
+ {"version":3,"file":"createRenderChildNodes.d.ts","sourceRoot":"","sources":["../src/createRenderChildNodes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,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;AAE/F,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,GACpE,gBAAgB,CAgDlB"}
@@ -1,6 +1,4 @@
1
- import React, { useContext } from 'react';
2
- import { AnnotationContext } from './components/context/AnnotationProvider';
3
- import { IsInSidebarContext } from './components/context/IsInSidebarContext';
1
+ import React from 'react';
4
2
  import { getElementPath, mapChildNodes } from './dom-utils';
5
3
  import { AnnotatableText } from './components/shared/AnnotatableText';
6
4
  export const ExamNamespaceURI = 'http://ylioppilastutkinto.fi/exam.xsd';
@@ -50,15 +48,7 @@ export function createRenderChildNodes(componentMap) {
50
48
  return renderChildNodes;
51
49
  }
52
50
  function renderTextNode(node) {
53
- var _a;
54
- const annotationContextData = useContext(AnnotationContext);
55
- const { isInSidebar } = useContext(IsInSidebarContext);
56
- if ((annotationContextData === null || annotationContextData === void 0 ? void 0 : annotationContextData.annotations) === undefined ||
57
- ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim().length) === 0 ||
58
- isInSidebar !== undefined) {
59
- return node.textContent;
60
- }
61
- return (React.createElement(AnnotatableText, { node: node, annotationContextData: annotationContextData, key: getElementPath(node) }));
51
+ return React.createElement(AnnotatableText, { node: node, key: getElementPath(node) });
62
52
  }
63
53
  function htmlAttributes2props(element, index) {
64
54
  const props = { key: key(element, index) };
@@ -1 +1 @@
1
- {"version":3,"file":"createRenderChildNodes.js","sourceRoot":"","sources":["../src/createRenderChildNodes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAA;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AAC5E,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAErE,MAAM,CAAC,MAAM,gBAAgB,GAAG,uCAAuC,CAAA;AACvE,MAAM,CAAC,MAAM,iBAAiB,GAAG,8BAA8B,CAAA;AAiB/D,MAAM,UAAU,sBAAsB,CACpC,YAAqE;IAErE,SAAS,eAAe,CAAC,IAAe,EAAE,KAAa,EAAE,OAAsB;QAC7E,QAAQ,IAAI,CAAC,QAAQ,EAAE,CAAC;YACtB,KAAK,IAAI,CAAC,SAAS,CAAC;YACpB,KAAK,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC;gBAC7B,OAAO,OAAO,qCAA6B,CAAC,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;YAC3E,CAAC;YACD,KAAK,IAAI,CAAC,YAAY;gBACpB,OAAO,aAAa,CAAC,IAAe,EAAE,KAAK,EAAE,OAAO,CAAC,CAAA;YACvD;gBACE,OAAO,IAAI,CAAA;QACf,CAAC;IACH,CAAC;IAED,SAAS,aAAa,CAAC,OAAgB,EAAE,KAAa,EAAE,OAAsB;QAC5E,QAAQ,OAAO,CAAC,YAAY,EAAE,CAAC;YAC7B,KAAK,iBAAiB;gBACpB,OAAO,k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KAAa;IAC5E,MAAM,KAAK,GAAuB,EAAE,GAAG,EAAE,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAA;IAC9D,KAAK,MAAM,SAAS,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QAC3C,MAAM,IAAI,GAAG,SAAS,CAAC,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAE,SAAS,CAAC,SAAsC,CAAA;QAC9G,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,KAAK,CAAA;IAC/B,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAED,SAAS,GAAG,CAAC,OAAgB,EAAE,KAAa;IAC1C,OAAO,GAAG,OAAO,CAAC,SAAS,IAAI,KAAK,EAAE,CAAA;AACxC,CAAC"}
package/dist/dom-utils.js CHANGED
@@ -147,9 +147,9 @@ export function useIsElementInViewport(elementType, displayNumber) {
147
147
  }
148
148
  export function getElementPath(element) {
149
149
  var _a, _b, _c;
150
- const temp = !element.tagName && Array.from(((_a = element.parentNode) === null || _a === void 0 ? void 0 : _a.childNodes) || []).indexOf(element);
150
+ const index = !element.tagName && Array.from(((_a = element.parentNode) === null || _a === void 0 ? void 0 : _a.childNodes) || []).indexOf(element);
151
151
  const elementIndex = Array.from(((_b = element.parentElement) === null || _b === void 0 ? void 0 : _b.children) || []).indexOf(element);
152
- let path = `${element.nodeName}:${elementIndex > 0 ? elementIndex : temp}`;
152
+ let path = `${element.nodeName}:${elementIndex > 0 ? elementIndex : index}`;
153
153
  let currentElement = element;
154
154
  while (currentElement.parentElement) {
155
155
  currentElement = currentElement.parentElement;
@@ -1 +1 @@
1
- {"version":3,"file":"dom-utils.js","sourceRoot":"","sources":["../src/dom-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,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AG,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;IACnG,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,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,EAAE,CAAA;IAC3E,IAAI,cAAc,GAAG,OAAO,CAAA;IAC5B,OAAO,cAAc,CAAC,aAAa,EAAE,CAAC;QACpC,cAAc,GAAG,cAAc,CAAC,aAAa,CAAA;QAC7C,MAAM,aAAa,GAAG,cAAc,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAA;QACnE,MAAM,KAAK,GACT,MAAM,CAAC,aAAa,CAAC;YACrB,KAAK,CAAC,IAAI,CAAC,CAAA,MAAA,cAAc,CAAC,aAAa,0CAAE,QAAQ,KAAI,CAAC,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAA;QAChG,MAAM,SAAS,GAAG,cAAc,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;QACnD,IAAI,GAAG,GAAG,SAAS,IAAI,cAAc,CAAC,QAAQ,IAAI,KAAK,MAAM,IAAI,EAAE,CAAA;IACrE,CAAC;IAED,OAAO,IAAI,CAAA;AACb,CAAC"}
@@ -4,8 +4,7 @@ declare module 'react-i18next' {
4
4
  type ExamEngineI18nResources = {
5
5
  translation: typeof fi_FI;
6
6
  };
7
- interface Resources extends ExamEngineI18nResources {
8
- }
7
+ type Resources = ExamEngineI18nResources;
9
8
  }
10
9
  export declare function initI18n(language: string, examCode?: string, dayCode?: string): typeof i18n;
11
10
  export declare function useExamTranslation(): {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAuB,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAUxE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAgD/B,OAAO,QAAQ,eAAe,CAAC;IAC7B,KAAK,uBAAuB,GAAG;QAAE,WAAW,EAAE,OAAO,KAAK,CAAA;KAAE,CAAA;IAG5D,UAAU,SAAU,SAAQ,uBAAuB;KAAG;CACvD;AAED,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,IAAI,CAwC3F;AAED,wBAAgB,kBAAkB;;;cAGxB,MAAM,GAAG,MAAM,EAAE,YAAY,QAAQ,GAAG,MAAM,GAAG,WAAW;aAC7D,SAAS;;EAKjB;AAgCD,eAAO,MAAM,cAAc,UAAW,WAAW,YAAY,MAAM,WAAS,IAI3E,CAAA;AAED,eAAe,IAAI,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAuB,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAUxE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAgD/B,OAAO,QAAQ,eAAe,CAAC;IAC7B,KAAK,uBAAuB,GAAG;QAAE,WAAW,EAAE,OAAO,KAAK,CAAA;KAAE,CAAA;IAC5D,KAAK,SAAS,GAAG,uBAAuB,CAAA;CACzC;AAED,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,IAAI,CAwC3F;AAED,wBAAgB,kBAAk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