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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) 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/attachments/QuestionTitle.d.ts.map +1 -1
  10. package/dist/components/attachments/QuestionTitle.js +6 -4
  11. package/dist/components/attachments/QuestionTitle.js.map +1 -1
  12. package/dist/components/context/AnnotationContext.d.ts +4 -5
  13. package/dist/components/context/AnnotationContext.d.ts.map +1 -1
  14. package/dist/components/context/AnnotationContext.js.map +1 -1
  15. package/dist/components/context/AnnotationProvider.d.ts +7 -2
  16. package/dist/components/context/AnnotationProvider.d.ts.map +1 -1
  17. package/dist/components/context/AnnotationProvider.js +30 -4
  18. package/dist/components/context/AnnotationProvider.js.map +1 -1
  19. package/dist/components/context/GradingInstructionContext.d.ts +9 -0
  20. package/dist/components/context/GradingInstructionContext.d.ts.map +1 -0
  21. package/dist/components/context/GradingInstructionContext.js +3 -0
  22. package/dist/components/context/GradingInstructionContext.js.map +1 -0
  23. package/dist/components/context/IsInSidebarContext.d.ts +0 -1
  24. package/dist/components/context/IsInSidebarContext.d.ts.map +1 -1
  25. package/dist/components/context/ResultsContext.d.ts.map +1 -1
  26. package/dist/components/context/ResultsContext.js.map +1 -1
  27. package/dist/components/context/TOCContext.d.ts +0 -1
  28. package/dist/components/context/TOCContext.d.ts.map +1 -1
  29. package/dist/components/context/withContext.d.ts.map +1 -1
  30. package/dist/components/exam/ChoiceAnswer.d.ts.map +1 -1
  31. package/dist/components/exam/ChoiceAnswer.js +16 -14
  32. package/dist/components/exam/ChoiceAnswer.js.map +1 -1
  33. package/dist/components/exam/Exam.d.ts +4 -4
  34. package/dist/components/exam/Exam.d.ts.map +1 -1
  35. package/dist/components/exam/Exam.js +0 -2
  36. package/dist/components/exam/Exam.js.map +1 -1
  37. package/dist/components/exam/RichTextAnswer.d.ts +1 -1
  38. package/dist/components/exam/RichTextAnswer.d.ts.map +1 -1
  39. package/dist/components/exam/TextAnswer.d.ts.map +1 -1
  40. package/dist/components/exam/TextAnswer.js +6 -4
  41. package/dist/components/exam/TextAnswer.js.map +1 -1
  42. package/dist/components/exam/internal/ProgressBar.d.ts.map +1 -1
  43. package/dist/components/exam/internal/ProgressBar.js +1 -0
  44. package/dist/components/exam/internal/ProgressBar.js.map +1 -1
  45. package/dist/components/grading/editAnnotations.d.ts.map +1 -1
  46. package/dist/components/grading/editAnnotations.js +2 -2
  47. package/dist/components/grading/editAnnotations.js.map +1 -1
  48. package/dist/components/grading/examAnnotationUtils.d.ts +0 -1
  49. package/dist/components/grading/examAnnotationUtils.d.ts.map +1 -1
  50. package/dist/components/grading/examAnnotationUtils.js +88 -37
  51. package/dist/components/grading/examAnnotationUtils.js.map +1 -1
  52. package/dist/components/grading-instructions/EditableGradingInstruction.d.ts +5 -0
  53. package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +1 -0
  54. package/dist/components/grading-instructions/EditableGradingInstruction.js +25 -0
  55. package/dist/components/grading-instructions/EditableGradingInstruction.js.map +1 -0
  56. package/dist/components/grading-instructions/GradingInstructionProvider.d.ts +4 -0
  57. package/dist/components/grading-instructions/GradingInstructionProvider.d.ts.map +1 -0
  58. package/dist/components/grading-instructions/GradingInstructionProvider.js +8 -0
  59. package/dist/components/grading-instructions/GradingInstructionProvider.js.map +1 -0
  60. package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
  61. package/dist/components/grading-instructions/GradingInstructions.js +23 -25
  62. package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
  63. package/dist/components/shared/AnnotatableText.d.ts +5 -0
  64. package/dist/components/shared/AnnotatableText.d.ts.map +1 -0
  65. package/dist/components/shared/AnnotatableText.js +25 -0
  66. package/dist/components/shared/AnnotatableText.js.map +1 -0
  67. package/dist/components/shared/AnnotationMark.d.ts +9 -0
  68. package/dist/components/shared/AnnotationMark.d.ts.map +1 -0
  69. package/dist/components/shared/AnnotationMark.js +14 -0
  70. package/dist/components/shared/AnnotationMark.js.map +1 -0
  71. package/dist/components/shared/AnnotationPopup.js +4 -4
  72. package/dist/components/shared/AnnotationPopup.js.map +1 -1
  73. package/dist/components/shared/AnswerIndicator.d.ts +1 -1
  74. package/dist/components/shared/AnswerIndicator.d.ts.map +1 -1
  75. package/dist/components/shared/AnswerIndicator.js +10 -9
  76. package/dist/components/shared/AnswerIndicator.js.map +1 -1
  77. package/dist/components/shared/AnswerLengthInfo.d.ts +1 -1
  78. package/dist/components/shared/AnswerLengthInfo.d.ts.map +1 -1
  79. package/dist/components/shared/AttachmentLink.d.ts +1 -1
  80. package/dist/components/shared/AttachmentLink.d.ts.map +1 -1
  81. package/dist/components/shared/AttachmentLinks.d.ts +1 -1
  82. package/dist/components/shared/AttachmentLinks.d.ts.map +1 -1
  83. package/dist/components/shared/References.d.ts.map +1 -1
  84. package/dist/components/shared/References.js +1 -0
  85. package/dist/components/shared/References.js.map +1 -1
  86. package/dist/components/shared/TOCQuestion.js +1 -1
  87. package/dist/components/shared/TOCQuestion.js.map +1 -1
  88. package/dist/components/shared/markText.d.ts +5 -0
  89. package/dist/components/shared/markText.d.ts.map +1 -0
  90. package/dist/components/shared/markText.js +72 -0
  91. package/dist/components/shared/markText.js.map +1 -0
  92. package/dist/createRenderChildNodes.d.ts.map +1 -1
  93. package/dist/createRenderChildNodes.js +4 -89
  94. package/dist/createRenderChildNodes.js.map +1 -1
  95. package/dist/dom-utils.d.ts +1 -0
  96. package/dist/dom-utils.d.ts.map +1 -1
  97. package/dist/dom-utils.js +16 -0
  98. package/dist/dom-utils.js.map +1 -1
  99. package/dist/i18n/index.d.ts +1 -2
  100. package/dist/i18n/index.d.ts.map +1 -1
  101. package/dist/i18n/index.js.map +1 -1
  102. package/dist/main-bundle.js +1 -1
  103. package/dist/main.css +1 -1
  104. package/dist/store/answers/reducer.d.ts.map +1 -1
  105. package/dist/store/audio/reducer.d.ts.map +1 -1
  106. package/dist/store/audio/sagas.d.ts.map +1 -1
  107. package/dist/store/audio/sagas.js +3 -1
  108. package/dist/store/audio/sagas.js.map +1 -1
  109. package/dist/store/cas/reducer.d.ts.map +1 -1
  110. package/dist/store/index.d.ts +1 -2
  111. package/dist/store/index.d.ts.map +1 -1
  112. package/dist/store/listenerMiddleware.d.ts +89 -0
  113. package/dist/store/listenerMiddleware.d.ts.map +1 -0
  114. package/dist/store/listenerMiddleware.js +6 -0
  115. package/dist/store/listenerMiddleware.js.map +1 -0
  116. package/dist/store/selectors.d.ts +1 -1
  117. package/dist/types/Score.d.ts +18 -3
  118. package/dist/types/Score.d.ts.map +1 -1
  119. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"RenderIf.d.ts","sourceRoot":"","sources":["../../src/components/RenderIf.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,QAAQ,cACP,CAAC,KAAK,EAAE,kBAAkB,KAAK,OAAO,iBACtC,MAAM,aAAa,CAAC,kBAAkB,CAAC,KAAG,MAAM,iBAAiB,CAAC,kBAAkB,CAI/F,CAAA"}
1
+ {"version":3,"file":"RenderIf.d.ts","sourceRoot":"","sources":["../../src/components/RenderIf.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,QAAQ,cACP,CAAC,KAAK,EAAE,kBAAkB,KAAK,OAAO,iBACtC,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,KAAG,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAI/F,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Attachments.d.ts","sourceRoot":"","sources":["../../../src/components/attachments/Attachments.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AA+EpD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,iBAGxC,CAAA;;AAED,wBAA8E"}
1
+ {"version":3,"file":"Attachments.d.ts","sourceRoot":"","sources":["../../../src/components/attachments/Attachments.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAA;AA6EpD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,iBAGxC,CAAA;;AAED,wBAA8E"}
@@ -1,23 +1,22 @@
1
1
  import React, { useContext, useEffect } from 'react';
2
2
  import { I18nextProvider } from 'react-i18next';
3
3
  import { createRenderChildNodes } from '../../createRenderChildNodes';
4
- import { findChildElement, NBSP } from '../../dom-utils';
4
+ import { NBSP, findChildElement } from '../../dom-utils';
5
5
  import { changeLanguage, initI18n, useExamTranslation } from '../../i18n';
6
6
  import { examTitleId } from '../../ids';
7
7
  import { scrollToHash } from '../../scrollToHash';
8
8
  import { useCached } from '../../useCached';
9
- import AttachmentsExternalMaterial from './ExternalMaterial';
10
- import AttachmentsQuestion from './Question';
11
- import AttachmentsQuestionTitle from './QuestionTitle';
12
- import { CommonExamContext, withCommonExamContext } from '../context/CommonExamContext';
13
9
  import DocumentTitle from '../DocumentTitle';
14
- import { withExamContext } from '../context/ExamContext';
15
10
  import RenderChildNodes from '../RenderChildNodes';
16
11
  import RenderExamElements from '../RenderExamElements';
17
12
  import SectionElement from '../SectionElement';
18
- import { withSectionContext } from '../context/SectionContext';
19
13
  import { AnnotationProvider } from '../context/AnnotationProvider';
20
- import { AnnotationPopup } from '../shared/AnnotationPopup';
14
+ import { CommonExamContext, withCommonExamContext } from '../context/CommonExamContext';
15
+ import { withExamContext } from '../context/ExamContext';
16
+ import { withSectionContext } from '../context/SectionContext';
17
+ import AttachmentsExternalMaterial from './ExternalMaterial';
18
+ import AttachmentsQuestion from './Question';
19
+ import AttachmentsQuestionTitle from './QuestionTitle';
21
20
  const renderChildNodes = createRenderChildNodes({
22
21
  'audio-group': RenderExamElements,
23
22
  'external-material': AttachmentsExternalMaterial,
@@ -36,7 +35,6 @@ const Attachments = ({ annotations, onClickAnnotation, onSaveAnnotation }) => {
36
35
  return (React.createElement(AnnotationProvider, { annotations: annotations, onClickAnnotation: onClickAnnotation, onSaveAnnotation: onSaveAnnotation },
37
36
  React.createElement(I18nextProvider, { i18n: i18n },
38
37
  React.createElement("main", { className: "e-exam attachments", lang: subjectLanguage, "aria-labelledby": examTitleId },
39
- React.createElement(AnnotationPopup, null),
40
38
  React.createElement(React.StrictMode, null),
41
39
  examStylesheet && React.createElement("link", { rel: "stylesheet", href: resolveAttachment(examStylesheet) }),
42
40
  React.createElement(SectionElement, { "aria-labelledby": examTitleId },
@@ -1 +1 @@
1
- {"version":3,"file":"Attachments.js","sourceRoot":"","sources":["../../../src/components/attachments/Attachments.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,2BAA2B,MAAM,oBAAoB,CAAA;AAC5D,O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gBACrF,oBAAC,cAAc,uBAAkB,WAAW;oBACzC,SAAS,IAAI,CACZ,oBAAC,aAAa,IAAC,EAAE,EAAE,WAAW;wBAC5B,oBAAC,oBAAoB,OAAG;wBACvB,IAAI;wBACJ,gBAAgB,CAAC,SAAS,CAAC,CACd,CACjB;oBACD,6BAAK,SAAS,EAAC,sBAAsB,IAAE,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAO;oBAC3E,gBAAgB,IAAI,CACnB,oBAAC,2BAA2B,IAAO,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,WAAW,EAAE,IAAI,GAAM,CACxG,CACc;gBAChB,gBAAgB,CAAC,IAAI,CAAC,CAClB,CACS,CACC,CACtB,CAAA;AACH,CAAC,CAAA;AAED,4FAA4F;AAC5F,MAAM,CAAC,MAAM,oBAAoB,GAA4B,GAAG,EAAE;IAChE,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAClC,OAAO,0CAAG,CAAC,CAAC,wBAAwB,CAAC,CAAI,CAAA;AAC3C,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QuestionTitle.d.ts","sourceRoot":"","sources":["../../../src/components/attachments/QuestionTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAIjE,iBAAS,aAAa,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,4BAQvE;;AAED,wBAAwC"}
1
+ {"version":3,"file":"QuestionTitle.d.ts","sourceRoot":"","sources":["../../../src/components/attachments/QuestionTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAIjE,iBAAS,aAAa,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,4BAWvE;;AAED,wBAAwC"}
@@ -4,10 +4,12 @@ import { questionTitleId } from '../../ids';
4
4
  import { formatQuestionDisplayNumber } from '../../formatting';
5
5
  function QuestionTitle({ element, renderChildNodes }) {
6
6
  const { displayNumber, hasExternalMaterial } = useContext(QuestionContext);
7
- return hasExternalMaterial ? (React.createElement("h2", { id: questionTitleId(displayNumber) },
8
- formatQuestionDisplayNumber(displayNumber),
9
- " ",
10
- renderChildNodes(element))) : null;
7
+ return hasExternalMaterial ? (React.createElement(React.Fragment, null,
8
+ React.createElement("div", { className: "anchor", id: `question-nr-${displayNumber}` }),
9
+ React.createElement("h2", { id: questionTitleId(displayNumber) },
10
+ formatQuestionDisplayNumber(displayNumber),
11
+ " ",
12
+ renderChildNodes(element)))) : null;
11
13
  }
12
14
  export default React.memo(QuestionTitle);
13
15
  //# sourceMappingURL=QuestionTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QuestionTitle.js","sourceRoot":"","sources":["../../../src/components/attachments/QuestionTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAE9D,SAAS,aAAa,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACtE,MAAM,EAAE,aAAa,EAAE,mBAAmB,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAE1E,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAC3B,4BAAI,EAAE,EAAE,eAAe,CAAC,aAAa,CAAC;QACnC,2BAA2B,CAAC,aAAa,CAAC;;QAAG,gBAAgB,CAAC,OAAO,CAAC,CACpE,CACN,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA"}
1
+ {"version":3,"file":"QuestionTitle.js","sourceRoot":"","sources":["../../../src/components/attachments/QuestionTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAE9D,SAAS,aAAa,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACtE,MAAM,EAAE,aAAa,EAAE,mBAAmB,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAE1E,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAC3B;QACE,6BAAK,SAAS,EAAC,QAAQ,EAAC,EAAE,EAAE,eAAe,aAAa,EAAE,GAAI;QAC9D,4BAAI,EAAE,EAAE,eAAe,CAAC,aAAa,CAAC;YACnC,2BAA2B,CAAC,aAAa,CAAC;;YAAG,gBAAgB,CAAC,OAAO,CAAC,CACpE,CACJ,CACJ,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA"}
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
2
  import { TextAnnotation } from '../../types/Score';
3
- export interface AnnotationContextType {
4
- annotations: Record<string, TextAnnotation[]>;
5
- onClickAnnotation: (e: React.MouseEvent<HTMLElement, MouseEvent>, a: TextAnnotation) => void;
6
- onSaveAnnotation: (a: TextAnnotation, key: string) => void;
3
+ export interface AnnotationContext {
4
+ annotations: Record<string, TextAnnotation>;
5
+ onClickAnnotation: (a: TextAnnotation) => void;
7
6
  }
8
- export declare const AnnotationContext: React.Context<AnnotationContextType>;
7
+ export declare const AnnotationContext: React.Context<AnnotationContext>;
9
8
  //# sourceMappingURL=AnnotationContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnnotationContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/AnnotationContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAAA;IAC7C,iBAAiB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;IAC5F,gBAAgB,EAAE,CAAC,CAAC,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CAC3D;AAED,eAAO,MAAM,iBAAiB,sCAAmD,CAAA"}
1
+ {"version":3,"file":"AnnotationContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/AnnotationContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC3C,iBAAiB,EAAE,CAAC,CAAC,EAAE,cAAc,KAAK,IAAI,CAAA;CAC/C;AAED,eAAO,MAAM,iBAAiB,kCAA+C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"AnnotationContext.js","sourceRoot":"","sources":["../../../src/components/context/AnnotationContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,EAA2B,CAAC,CAAA"}
1
+ {"version":3,"file":"AnnotationContext.js","sourceRoot":"","sources":["../../../src/components/context/AnnotationContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,EAAuB,CAAC,CAAA"}
@@ -1,10 +1,15 @@
1
1
  import React from 'react';
2
- import { NewExamAnnotation } from '../../types/Score';
2
+ import { NewExamAnnotation, RenderableAnnotation } from '../../types/Score';
3
3
  import { AnnotationProps } from '../exam/Exam';
4
4
  interface Props {
5
5
  children: React.ReactNode;
6
6
  }
7
- export interface AnnotationContextType extends AnnotationProps {
7
+ export interface RenderableAnnotationProps {
8
+ annotations: Record<string, RenderableAnnotation[]>;
9
+ onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotation: RenderableAnnotation) => void;
10
+ onSaveAnnotation?: (annotation: NewExamAnnotation, comment: string) => void;
11
+ }
12
+ export interface AnnotationContextType extends RenderableAnnotationProps {
8
13
  newAnnotation: NewExamAnnotation | null;
9
14
  setNewAnnotation: (a: NewExamAnnotation | null) => void;
10
15
  newAnnotationRef: HTMLElement | undefined;
@@ -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,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,SA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iGA0DzB,CAAA"}
@@ -1,19 +1,45 @@
1
- import React from 'react';
1
+ import * as _ from 'lodash-es';
2
+ import React, { useMemo } from 'react';
3
+ import { onMouseDownForAnnotation } from '../grading/examAnnotationUtils';
4
+ import { AnnotationPopup } from '../shared/AnnotationPopup';
2
5
  export const AnnotationContext = React.createContext({});
3
6
  export const AnnotationProvider = ({ children, annotations, onClickAnnotation, onSaveAnnotation }) => {
4
7
  const [newAnnotation, setNewAnnotation] = React.useState(null);
5
8
  const [newAnnotationRef, setNewAnnotationRef] = React.useState();
9
+ const mouseUpCallback = (annotation) => {
10
+ setNewAnnotation(annotation);
11
+ };
12
+ function onMouseDown(e) {
13
+ const target = e.target;
14
+ const clickIsInPopup = !!target.closest('.annotation-popup');
15
+ if (!clickIsInPopup) {
16
+ setNewAnnotation(null);
17
+ }
18
+ onMouseDownForAnnotation(e, mouseUpCallback);
19
+ }
6
20
  if (!onClickAnnotation && !onSaveAnnotation) {
7
21
  return children;
8
22
  }
23
+ const annotationPartsToRenderableAnnotations = useMemo(() => _.groupBy((annotations === null || annotations === void 0 ? void 0 : annotations.flatMap(a => a.annotationParts.map((p, index, arr) => {
24
+ const isLastChild = index === arr.length - 1;
25
+ return {
26
+ ...p,
27
+ annotationId: a.annotationId,
28
+ markNumber: isLastChild ? a.markNumber : undefined,
29
+ hidden: a.hidden
30
+ };
31
+ }))) || [], 'annotationAnchor'), [JSON.stringify(annotations)]);
9
32
  return (React.createElement(AnnotationContext.Provider, { value: {
10
- annotations,
33
+ annotations: annotationPartsToRenderableAnnotations,
11
34
  onClickAnnotation,
12
35
  onSaveAnnotation,
13
- setNewAnnotation,
14
36
  newAnnotation,
37
+ setNewAnnotation,
15
38
  newAnnotationRef,
16
39
  setNewAnnotationRef
17
- } }, children));
40
+ } },
41
+ React.createElement("span", { onMouseDown: onMouseDown },
42
+ React.createElement(AnnotationPopup, null),
43
+ children)));
18
44
  };
19
45
  //# sourceMappingURL=AnnotationProvider.js.map
@@ -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,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
+ {"version":3,"file":"AnnotationProvider.js","sourceRoot":"","sources":["../../../src/components/context/AnnotationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAmB3D,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,aAAa,CAAC,EAA2B,CAAC,CAAA;AAEjF,MAAM,CAAC,MAAM,kBAAkB,GAAG,C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AAS;YAClD,MAAM,EAAE,CAAC,CAAC,MAAM;SACjB,CAAA;IACH,CAAC,CAAC,CACH,KAAI,EAAE,EACP,kBAAkB,CACnB,EACH,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAC9B,CAAA;IAED,OAAO,CACL,oBAAC,iBAAiB,CAAC,QAAQ,IACzB,KAAK,EAAE;YACL,WAAW,EAAE,sCAAsC;YACnD,iBAAiB;YACjB,gBAAgB;YAChB,aAAa;YACb,gBAAgB;YAChB,gBAAgB;YAChB,mBAAmB;SACpB;QAED,8BAAM,WAAW,EAAE,WAAW;YAC5B,oBAAC,eAAe,OAAG;YAClB,QAAQ,CACJ,CACoB,CAC9B,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface GradingInstructionProps {
3
+ children?: React.ReactNode;
4
+ editable?: boolean;
5
+ onChange?: (answerHTML: string, displayNumber?: string) => void;
6
+ saveScreenshot?: (type: string, data: Buffer, displayNumber?: string) => Promise<string>;
7
+ }
8
+ export declare const GradingInstructionContext: React.Context<GradingInstructionProps>;
9
+ //# sourceMappingURL=GradingInstructionContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GradingInstructionContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/GradingInstructionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/D,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CACzF;AAED,eAAO,MAAM,yBAAyB,wCAAqD,CAAA"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export const GradingInstructionContext = React.createContext({});
3
+ //# sourceMappingURL=GradingInstructionContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GradingInstructionContext.js","sourceRoot":"","sources":["../../../src/components/context/GradingInstructionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,CAAC,aAAa,CAAC,EAA6B,CAAC,CAAA"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type IsInSidebarContextType = {
3
2
  isInSidebar: boolean;
4
3
  };
@@ -1 +1 @@
1
- {"version":3,"file":"IsInSidebarContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/IsInSidebarContext.ts"],"names":[],"mappings":";AAEA,KAAK,sBAAsB,GAAG;IAC5B,WAAW,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,kBAAkB,iDAA8C,CAAA"}
1
+ {"version":3,"file":"IsInSidebarContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/IsInSidebarContext.ts"],"names":[],"mappings":"AAEA,KAAK,sBAAsB,GAAG;IAC5B,WAAW,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,kBAAkB,iDAA8C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ResultsContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/ResultsContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAEL,iBAAiB,EAEjB,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,KAAK,EACN,MAAM,aAAa,CAAA;AAIpB,MAAM,WAAW,cAAc;IAC7B,mBAAmB,EAAE,MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,CAAA;IACnD,gBAAgB,EAAE,gBAAgB,CAAA;IA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AK,KAAI,CAAC;YAC/G,CAAC,CAAC,CAAC,CAAA;IACP,CAAC,CAAA;IAED,MAAM,QAAQ,GAAG,CAAC,CAAC,GAAG,CACpB,mBAAmB,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;QAChD,MAAM,UAAU,GAAG,mBAAmB,CAAC,MAAM,EAAE,aAAa,CAAE,CAAA;QAC9D,MAAM,YAAY,GAAG,WAAW,CAAC,UAAU,CAAC,CAAA;QAC5C,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,OAAO,CAAC,CAAA;QACV,CAAC;QACD,IAAI,YAAY,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YACnC,OAAO,mBAAmB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAA;QACtD,CAAC;aAAM,CAAC;YACN,OAAO,iBAAiB,CAAC,UAAU,CAAC,CAAA;QACtC,CAAC;IACH,CAAC,CAAC,CACH,CAAA;IACD,oDAAoD;IACpD,IAAI,cAAc,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,GAAG,CAAC,EAAE,CAAC;QAC7E,OAAO,CAAC,CAAA;IACV,CAAC;IACD,OAAO,QAAQ,CAAA;AACjB,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type TOCContextType = {
3
2
  visibleTOCElements: string[];
4
3
  addRef: (object: HTMLDivElement) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"TOCContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/TOCContext.ts"],"names":[],"mappings":";AAEA,KAAK,cAAc,GAAG;IACpB,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAA;CACzC,CAAA;AAED,eAAO,MAAM,UAAU,yCAAsC,CAAA"}
1
+ {"version":3,"file":"TOCContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/TOCContext.ts"],"names":[],"mappings":"AAEA,KAAK,cAAc,GAAG;IACpB,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,MAAM,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAA;CACzC,CAAA;AAED,eAAO,MAAM,UAAU,yCAAsC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"withContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/withContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,WAAW,kBACN,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,iBACxC,MAAM,aAAa,CAAC,GAAG,CAAC,KAAG,MAAM,aAAa,CAAC,GAAG,CAW7D,CAAA"}
1
+ {"version":3,"file":"withContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/withContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,WAAW,GACrB,CAAC,EAAE,CAAC,WAAW,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,iBACxC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,KAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAW7D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChoiceAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/exam/ChoiceAnswer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkC,MAAM,OAAO,CAAA;AAGtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;;AA2HjE,wBAAuC"}
1
+ {"version":3,"file":"ChoiceAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/exam/ChoiceAnswer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkC,MAAM,OAAO,CAAA;AAGtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;;AA6HjE,wBAAuC"}
@@ -32,20 +32,22 @@ const ChoiceAnswer = ({ element, renderChildNodes }) => {
32
32
  }, [questionId, displayNumber]);
33
33
  return (React.createElement("div", { className: classNames('e-choice-answer e-mrg-b-4', className, {
34
34
  'e-columns': direction === 'horizontal'
35
- }), "data-question-id": questionId, role: "radiogroup", "aria-labelledby": questionLabelIds }, mapChildElements(element, childElement => {
36
- const optionId = childElement.getAttribute('option-id');
37
- const isNoAnswer = childElement.getAttribute('type') === 'no-answer';
38
- const value = isNoAnswer ? '' : optionId;
39
- const selected = answer != null && answer.value === value;
40
- return (React.createElement(ChoiceAnswerOption, { element: childElement,
41
- onSelect,
42
- renderChildNodes,
43
- questionId,
44
- key: optionId,
45
- direction,
46
- selected,
47
- value }));
48
- })));
35
+ }), "data-question-id": questionId, role: "radiogroup", "aria-labelledby": questionLabelIds },
36
+ React.createElement("span", { className: "anchor", id: `question-nr-${displayNumber}` }),
37
+ mapChildElements(element, childElement => {
38
+ const optionId = childElement.getAttribute('option-id');
39
+ const isNoAnswer = childElement.getAttribute('type') === 'no-answer';
40
+ const value = isNoAnswer ? '' : optionId;
41
+ const selected = answer != null && answer.value === value;
42
+ return (React.createElement(ChoiceAnswerOption, { element: childElement,
43
+ onSelect,
44
+ renderChildNodes,
45
+ questionId,
46
+ key: optionId,
47
+ direction,
48
+ selected,
49
+ value }));
50
+ })));
49
51
  };
50
52
  export default React.memo(ChoiceAnswer);
51
53
  //# sourceMappingURL=ChoiceAnswer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChoiceAnswer.js","sourceRoot":"","sources":["../../../src/components/exam/ChoiceAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,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AgB;gBAChB,UAAU;gBACV,GAAG,EAAE,QAAQ;gBACb,SAAS;gBACT,QAAQ;gBACR,KAAK,GAEP,CACH,CAAA;QACH,CAAC,CAAC,CACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ExamAnnotation, ExamAnswer, ExamServerAPI, InitialCasStatus, NewExamAnnotation, RestrictedAudioPlaybackStats } from '../../index';
2
+ import { ExamAnnotation, ExamAnswer, ExamServerAPI, InitialCasStatus, NewExamAnnotation, RenderableAnnotation, 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 {
@@ -16,9 +16,9 @@ export interface CommonExamProps {
16
16
  abitti2?: boolean;
17
17
  }
18
18
  export interface AnnotationProps {
19
- annotations?: Record<string, ExamAnnotation[]>;
20
- onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotation: ExamAnnotation) => void;
21
- onSaveAnnotation?: (annotation: NewExamAnnotation) => void;
19
+ annotations?: ExamAnnotation[];
20
+ onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotation: RenderableAnnotation) => void;
21
+ onSaveAnnotation?: (annotation: NewExamAnnotation, comment: string) => 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,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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AQ,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;;AA4OD,wBAAuE"}
@@ -21,7 +21,6 @@ import mkAttachmentLinks from '../shared/AttachmentLinks';
21
21
  import Audio from '../shared/Audio';
22
22
  import AudioGroup from '../shared/AudioGroup';
23
23
  import AudioTest from '../shared/AudioTest';
24
- import { AnnotationPopup } from '../shared/AnnotationPopup';
25
24
  import ExamTranslation from '../shared/ExamTranslation';
26
25
  import File from '../shared/File';
27
26
  import { Footer } from '../shared/Footer';
@@ -159,7 +158,6 @@ const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServe
159
158
  } },
160
159
  React.createElement(I18nextProvider, { i18n: i18n },
161
160
  React.createElement("main", { className: "e-exam", lang: subjectLanguage, "aria-labelledby": examTitleId, ref: examRef },
162
- React.createElement(AnnotationPopup, null),
163
161
  React.createElement(React.StrictMode, null),
164
162
  examStylesheet && React.createElement("link", { rel: "stylesheet", href: resolveAttachment(examStylesheet) }),
165
163
  React.createElement("div", { className: "e-toc-and-exam" },
@@ -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,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AG,CACb,CACC,CACV;wBAED,6BAAK,SAAS,EAAC,wBAAwB;4BACrC,oBAAC,cAAc,OAAG;4BAClB,oBAAC,aAAa,OAAG,CACb;wBAEL,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"}
@@ -10,7 +10,7 @@ type ErrorResponse = {
10
10
  response: {
11
11
  status: number;
12
12
  };
13
- };
13
+ } & Error;
14
14
  interface Props {
15
15
  answer?: RichTextAnswerT;
16
16
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/exam/RichTextAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAOhE,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,oBAAoB,GAAG,+BAA+B,GAAG,0BAA0B,CAAA;IACxF,OAAO,CAAC,EAAE,QAAQ,CAAA;CACnB;AAED,KAAK,aAAa,GAAG;IAAE,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAA;AAErD,UAA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1 +1 @@
1
- {"version":3,"file":"TextAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/exam/TextAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAMjE,iBAAS,UAAU,CAAC,KAAK,EAAE,kBAAkB,qBAmB5C;;AAED,wBAAqC"}
1
+ {"version":3,"file":"TextAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/exam/TextAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAMjE,iBAAS,UAAU,CAAC,KAAK,EAAE,kBAAkB,qBAwB5C;;AAED,wBAAqC"}
@@ -9,10 +9,12 @@ function TextAnswer(props) {
9
9
  const hint = findChildElement(element, 'hint');
10
10
  const textAnswer = React.createElement(TextAnswerInput, { ...props });
11
11
  const hasSiblings = hasSiblingQuestions(element);
12
- return hint ? (React.createElement("label", { className: "e-nowrap" },
13
- hasSiblings && (React.createElement("sup", { className: "e-text-answer-display-number e-color-darkgrey" }, shortDisplayNumber(displayNumber))),
14
- React.createElement(ScreenReaderOnly, null, renderChildNodes(hint)),
15
- textAnswer)) : (textAnswer);
12
+ return (React.createElement(React.Fragment, null,
13
+ React.createElement("span", { className: "anchor", id: `question-nr-${displayNumber}` }),
14
+ hint ? (React.createElement("label", { className: "e-nowrap" },
15
+ hasSiblings && (React.createElement("sup", { className: "e-text-answer-display-number e-color-darkgrey" }, shortDisplayNumber(displayNumber))),
16
+ React.createElement(ScreenReaderOnly, null, renderChildNodes(hint)),
17
+ textAnswer)) : (textAnswer)));
16
18
  }
17
19
  export default React.memo(TextAnswer);
18
20
  //# sourceMappingURL=TextAnswer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextAnswer.js","sourceRoot":"","sources":["../../../src/components/exam/TextAnswer.tsx"],"names":[],"mapp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AE,MAAM,qBAAqB,CAAA;AACtD,OAAO,eAAe,MAAM,4BAA4B,CAAA;AAExD,SAAS,UAAU,CAAC,KAAyB;IAC3C,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAA;IAC3C,MAAM,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,gBAAgB,CAAE,CAAA;IAC7D,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;IAC9C,MAAM,UAAU,GAAG,oBAAC,eAAe,OAAK,KAAK,GAAI,CAAA;IAEjD,MAAM,WAAW,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAA;IAEhD,OAAO,CACL;QACE,8BAAM,SAAS,EAAC,QAAQ,EAAC,EAAE,EAAE,eAAe,aAAa,EAAE,GAAI;QAC9D,IAAI,CAAC,CAAC,CAAC,CACN,+BAAO,SAAS,EAAC,UAAU;YACxB,WAAW,IAAI,CACd,6BAAK,SAAS,EAAC,+CAA+C,IAAE,kBAAkB,CAAC,aAAa,CAAC,CAAO,CACzG;YACD,oBAAC,gBAAgB,QAAE,gBAAgB,CAAC,IAAI,CAAC,CAAoB;YAC5D,UAAU,CACL,CACT,CAAC,CAAC,CAAC,CACF,UAAU,CACX,CACA,CACJ,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/components/exam/internal/ProgressBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAE1D,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CA6B7G,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/components/exam/internal/ProgressBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAE1D,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CA8B7G,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -9,6 +9,7 @@ const ProgressBar = ({ duration, durationRemaining, className }) => {
9
9
  // "--animating" class which breaks the css transformation (the progress
10
10
  // bar is completely filled from start). By reading clientTop we force a
11
11
  // synchronous layout/reflow in a browser
12
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
12
13
  progressBarRef.current.clientTop;
13
14
  setAnimating(true);
14
15
  }, []);
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.js","sourceRoot":"","sources":["../../../../src/components/exam/internal/ProgressBar.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE1D,MAAM,WAAW,GAAiG,CAAC,EACjH,QAAQ,EACR,iBAAiB,EACjB,SAAS,EACV,EAAE,EAAE;IACH,MAAM,cAAc,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IACnD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACjD,SAAS,CAAC,GAAG,EAAE;QACb,uEAAuE;QACvE,uEAAuE;QACvE,wEAAwE;QACxE,wEAAwE;QACxE,yCAAyC;QACzC,cAAc,CAAC,OAAQ,CAAC,SAAS,CAAA;QACjC,YAAY,CAAC,IAAI,CAAC,CAAA;IACpB,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,CACL,6BAAK,SAAS,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textAnnotationFromRange(answerTextNode, range) {
20
20
  const container = containerIsTag ? rangeContainer.childNodes[offset] : rangeContainer;
21
21
  const offsetInside = containerIsTag ? 0 : offset;
22
22
  const nodesBeforeContainer = _.takeWhile(answerNodes, node => node !== container);
23
- return offsetInside + _.sum(nodesBeforeContainer.map(toNodeLength));
23
+ const nodesBeforeLengthSum = _.sum(nodesBeforeContainer.map(toNodeLength));
24
+ return offsetInside + nodesBeforeLengthSum;
24
25
  }
25
26
  }
26
27
  export function getOverlappingMessages(currentAnnotations, start, length) {
@@ -50,7 +51,6 @@ export function showAndPositionElement(annotationRect, container, popup, topMarg
50
51
  style.display = 'block';
51
52
  const containerRect = container.getBoundingClientRect();
52
53
  const popupRect = popup.getBoundingClientRect();
53
- console.log('annotationRect', annotationRect, 'containerRect', containerRect, 'popupRect', popupRect);
54
54
  const left = annotationRect.left - containerRect.left;
55
55
  const top = annotationRect.bottom - containerRect.top + topMargin;
56
56
  style.top = `${String(top)}px`;