@digabi/exam-engine-core 23.7.0 → 23.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  2. package/dist/components/RenderIf.d.ts +3 -2
  3. package/dist/components/RenderIf.d.ts.map +1 -1
  4. package/dist/components/RenderIf.js +8 -6
  5. package/dist/components/RenderIf.js.map +1 -1
  6. package/dist/components/attachments/ExternalMaterial.d.ts.map +1 -1
  7. package/dist/components/attachments/ExternalMaterial.js +4 -2
  8. package/dist/components/attachments/ExternalMaterial.js.map +1 -1
  9. package/dist/components/context/withContext.d.ts.map +1 -1
  10. package/dist/components/exam/ChoiceAnswer.js +1 -1
  11. package/dist/components/exam/ChoiceAnswer.js.map +1 -1
  12. package/dist/components/exam/DNDAllOptions.d.ts.map +1 -1
  13. package/dist/components/exam/DNDAnswerContainer.d.ts.map +1 -1
  14. package/dist/components/exam/DNDAnswerOptionDraggable.d.ts.map +1 -1
  15. package/dist/components/exam/Exam.d.ts.map +1 -1
  16. package/dist/components/exam/RichTextAnswer.d.ts.map +1 -1
  17. package/dist/components/exam/StudentNameHeader.d.ts.map +1 -1
  18. package/dist/components/exam/UndoView.d.ts.map +1 -1
  19. package/dist/components/grading-instructions/GradingInstructionProvider.d.ts.map +1 -1
  20. package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
  21. package/dist/components/grading-instructions/GradingInstructions.js +7 -7
  22. package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
  23. package/dist/components/results/CorrectDNDAnswers.d.ts.map +1 -1
  24. package/dist/components/results/DNDAnswerOption.d.ts.map +1 -1
  25. package/dist/components/results/EndExamSession.d.ts.map +1 -1
  26. package/dist/components/results/Results.d.ts.map +1 -1
  27. package/dist/components/results/Results.js +8 -2
  28. package/dist/components/results/Results.js.map +1 -1
  29. package/dist/components/shared/AttachmentLink.d.ts.map +1 -1
  30. package/dist/components/shared/AttachmentLinks.d.ts.map +1 -1
  31. package/dist/components/shared/Audio.d.ts.map +1 -1
  32. package/dist/components/shared/Audio.js +1 -1
  33. package/dist/components/shared/Audio.js.map +1 -1
  34. package/dist/components/shared/DNDAnswerContainer.d.ts.map +1 -1
  35. package/dist/components/shared/DNDDroppable.d.ts.map +1 -1
  36. package/dist/components/shared/DNDTitleAndDroppable.d.ts.map +1 -1
  37. package/dist/components/shared/TableOfContents.d.ts.map +1 -1
  38. package/dist/createRenderChildNodes.d.ts +8 -1
  39. package/dist/createRenderChildNodes.d.ts.map +1 -1
  40. package/dist/createRenderChildNodes.js +9 -5
  41. package/dist/createRenderChildNodes.js.map +1 -1
  42. package/dist/dom-utils.d.ts.map +1 -1
  43. package/dist/i18n/index.d.ts.map +1 -1
  44. package/dist/main-bundle.js +164 -164
  45. package/dist/main.css +1 -1
  46. package/dist/store/answers/actions.d.ts.map +1 -1
  47. package/dist/store/audio/actions.d.ts.map +1 -1
  48. package/dist/store/cas/actions.d.ts.map +1 -1
  49. package/dist/store/selectors.d.ts.map +1 -1
  50. package/package.json +4 -4
  51. package/dist/__tests__/annotations.test.d.ts +0 -2
  52. package/dist/__tests__/annotations.test.d.ts.map +0 -1
  53. package/dist/__tests__/annotations.test.js +0 -306
  54. package/dist/__tests__/annotations.test.js.map +0 -1
  55. package/dist/__tests__/playwright/Annotations.test.d.ts +0 -2
  56. package/dist/__tests__/playwright/Annotations.test.d.ts.map +0 -1
  57. package/dist/__tests__/playwright/Annotations.test.js +0 -201
  58. package/dist/__tests__/playwright/Annotations.test.js.map +0 -1
  59. package/dist/__tests__/playwright/attachments/Attachments.test.d.ts +0 -2
  60. package/dist/__tests__/playwright/attachments/Attachments.test.d.ts.map +0 -1
  61. package/dist/__tests__/playwright/attachments/Attachments.test.js +0 -30
  62. package/dist/__tests__/playwright/attachments/Attachments.test.js.map +0 -1
  63. package/dist/__tests__/playwright/exam/Exam.test.d.ts +0 -2
  64. package/dist/__tests__/playwright/exam/Exam.test.d.ts.map +0 -1
  65. package/dist/__tests__/playwright/exam/Exam.test.js +0 -30
  66. package/dist/__tests__/playwright/exam/Exam.test.js.map +0 -1
  67. package/dist/__tests__/playwright/grading-instructions/GradingInstructions.test.d.ts +0 -2
  68. package/dist/__tests__/playwright/grading-instructions/GradingInstructions.test.d.ts.map +0 -1
  69. package/dist/__tests__/playwright/grading-instructions/GradingInstructions.test.js +0 -30
  70. package/dist/__tests__/playwright/grading-instructions/GradingInstructions.test.js.map +0 -1
  71. package/dist/__tests__/playwright/stories/Annotations.story.d.ts +0 -15
  72. package/dist/__tests__/playwright/stories/Annotations.story.d.ts.map +0 -1
  73. package/dist/__tests__/playwright/stories/Annotations.story.js +0 -27
  74. package/dist/__tests__/playwright/stories/Annotations.story.js.map +0 -1
  75. package/dist/__tests__/playwright/stories/attachments/Attachments.story.d.ts +0 -13
  76. package/dist/__tests__/playwright/stories/attachments/Attachments.story.d.ts.map +0 -1
  77. package/dist/__tests__/playwright/stories/attachments/Attachments.story.js +0 -17
  78. package/dist/__tests__/playwright/stories/attachments/Attachments.story.js.map +0 -1
  79. package/dist/__tests__/playwright/stories/exam/Exam.story.d.ts +0 -12
  80. package/dist/__tests__/playwright/stories/exam/Exam.story.d.ts.map +0 -1
  81. package/dist/__tests__/playwright/stories/exam/Exam.story.js +0 -56
  82. package/dist/__tests__/playwright/stories/exam/Exam.story.js.map +0 -1
  83. package/dist/__tests__/playwright/stories/grading-intructions/GradingInstructions.story.d.ts +0 -13
  84. package/dist/__tests__/playwright/stories/grading-intructions/GradingInstructions.story.d.ts.map +0 -1
  85. package/dist/__tests__/playwright/stories/grading-intructions/GradingInstructions.story.js +0 -16
  86. package/dist/__tests__/playwright/stories/grading-intructions/GradingInstructions.story.js.map +0 -1
  87. package/dist/assets/closeButton.svg +0 -1
  88. package/dist/assets/collapse.svg +0 -12
  89. package/dist/assets/expand.svg +0 -12
  90. package/dist/assets/helpButton.svg +0 -9
  91. package/dist/assets/redoButton.svg +0 -5
  92. package/dist/assets/undoButton.svg +0 -5
  93. package/dist/components/results/DNDAnswerContainer.d.ts +0 -4
  94. package/dist/components/results/DNDAnswerContainer.d.ts.map +0 -1
  95. package/dist/components/results/DNDAnswerContainer.js +0 -22
  96. package/dist/components/results/DNDAnswerContainer.js.map +0 -1
  97. package/dist/components/shared/AnnotatableText.d.ts +0 -5
  98. package/dist/components/shared/AnnotatableText.d.ts.map +0 -1
  99. package/dist/components/shared/AnnotatableText.js +0 -25
  100. package/dist/components/shared/AnnotatableText.js.map +0 -1
  101. package/dist/components/shared/AnnotationImageMark.d.ts +0 -16
  102. package/dist/components/shared/AnnotationImageMark.d.ts.map +0 -1
  103. package/dist/components/shared/AnnotationImageMark.js +0 -99
  104. package/dist/components/shared/AnnotationImageMark.js.map +0 -1
  105. package/dist/components/shared/AnnotationMark.d.ts +0 -9
  106. package/dist/components/shared/AnnotationMark.d.ts.map +0 -1
  107. package/dist/components/shared/AnnotationMark.js +0 -14
  108. package/dist/components/shared/AnnotationMark.js.map +0 -1
  109. package/dist/components/shared/AnnotationPopup.d.ts +0 -3
  110. package/dist/components/shared/AnnotationPopup.d.ts.map +0 -1
  111. package/dist/components/shared/AnnotationPopup.js +0 -24
  112. package/dist/components/shared/AnnotationPopup.js.map +0 -1
  113. package/dist/components/shared/AnnotationTextMark.d.ts +0 -11
  114. package/dist/components/shared/AnnotationTextMark.d.ts.map +0 -1
  115. package/dist/components/shared/AnnotationTextMark.js +0 -21
  116. package/dist/components/shared/AnnotationTextMark.js.map +0 -1
  117. package/dist/components/shared/markText.d.ts +0 -6
  118. package/dist/components/shared/markText.d.ts.map +0 -1
  119. package/dist/components/shared/markText.js +0 -77
  120. package/dist/components/shared/markText.js.map +0 -1
  121. package/dist/eslint.config.d.ts +0 -22
  122. package/dist/eslint.config.d.ts.map +0 -1
  123. package/dist/eslint.config.js +0 -31
  124. package/dist/eslint.config.js.map +0 -1
  125. package/dist/i18n/exam_titles_fi-FI.d.ts +0 -46
  126. package/dist/i18n/exam_titles_fi-FI.d.ts.map +0 -1
  127. package/dist/i18n/exam_titles_fi-FI.js +0 -46
  128. package/dist/i18n/exam_titles_fi-FI.js.map +0 -1
  129. package/dist/i18n/exam_titles_fi-FI.json +0 -45
  130. package/dist/i18n/exam_titles_sv-FI.d.ts +0 -46
  131. package/dist/i18n/exam_titles_sv-FI.d.ts.map +0 -1
  132. package/dist/i18n/exam_titles_sv-FI.js +0 -46
  133. package/dist/i18n/exam_titles_sv-FI.js.map +0 -1
  134. package/dist/i18n/exam_titles_sv-FI.json +0 -45
  135. package/dist/i18n/exams.d.ts +0 -11
  136. package/dist/i18n/exams.d.ts.map +0 -1
  137. package/dist/i18n/exams.js +0 -10
  138. package/dist/i18n/exams.js.map +0 -1
@@ -1,30 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- const experimental_ct_react_1 = require("@playwright/experimental-ct-react");
8
- const utils_1 = require("../utils/utils");
9
- const Exam_story_1 = require("../stories/exam/Exam.story");
10
- experimental_ct_react_1.test.describe('Annotations', () => {
11
- let masteredExam;
12
- experimental_ct_react_1.test.beforeAll(async () => {
13
- masteredExam = await (0, utils_1.setupMasteredExam)('FF');
14
- });
15
- (0, experimental_ct_react_1.test)('text can be annotated inside exam', async ({ mount, page }) => {
16
- let callbackArg = '';
17
- const component = await mount(react_1.default.createElement(Exam_story_1.ExamStory, { masteredExam: masteredExam, annotations: [], onClickAnnotation: () => { }, onSaveAnnotation: (_newAnnotation, comment) => {
18
- callbackArg = comment;
19
- } }));
20
- const annottatableElement = component.locator('.e-annotatable').first();
21
- const textbox = component.locator('.comment-content');
22
- await (0, experimental_ct_react_1.expect)(annottatableElement).toBeVisible();
23
- await (0, utils_1.annotateText)(annottatableElement, page);
24
- await (0, experimental_ct_react_1.expect)(component.getByTestId('e-popup')).toBeVisible();
25
- await textbox.fill('New comment');
26
- await component.getByText('Tallenna').click();
27
- (0, experimental_ct_react_1.expect)(callbackArg).toBe('New comment');
28
- });
29
- });
30
- //# sourceMappingURL=Exam.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Exam.test.js","sourceRoot":"","sources":["../../../../__tests__/playwright/exam/Exam.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,6EAAgE;AAChE,0CAAgE;AAChE,2DAAsD;AAEtD,4BAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAChC,IAAI,YAA2D,CAAA;IAE/D,4BAAI,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACxB,YAAY,GAAG,MAAM,IAAA,yBAAiB,EAAC,IAAI,CAAC,CAAA;IAC9C,CAAC,CAAC,CAAA;IAEF,IAAA,4BAAI,EAAC,mCAAmC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;QAClE,IAAI,WAAW,GAAG,EAAE,CAAA;QACpB,MAAM,SAAS,GAAG,MAAM,KAAK,CAC3B,8BAAC,sBAAS,IACR,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,EAAE,EACf,iBAAiB,EAAE,GAAG,EAAE,GAAE,CAAC,EAC3B,gBAAgB,EAAE,CAAC,cAAc,EAAE,OAAe,EAAE,EAAE;gBACpD,WAAW,GAAG,OAAO,CAAA;YACvB,CAAC,GACD,CACH,CAAA;QACD,MAAM,mBAAmB,GAAG,SAAS,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,KAAK,EAAE,CAAA;QACvE,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAA;QAErD,MAAM,IAAA,8BAAM,EAAC,mBAAmB,CAAC,CAAC,WAAW,EAAE,CAAA;QAC/C,MAAM,IAAA,oBAAY,EAAC,mBAAmB,EAAE,IAAI,CAAC,CAAA;QAC7C,MAAM,IAAA,8BAAM,EAAC,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA;QAE5D,MAAM,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;QACjC,MAAM,SAAS,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,CAAA;QAC7C,IAAA,8BAAM,EAAC,WAAW,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;IACzC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=GradingInstructions.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GradingInstructions.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/playwright/grading-instructions/GradingInstructions.test.tsx"],"names":[],"mappings":""}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- const experimental_ct_react_1 = require("@playwright/experimental-ct-react");
8
- const utils_1 = require("../utils/utils");
9
- const GradingInstructions_story_1 = require("../stories/grading-intructions/GradingInstructions.story");
10
- experimental_ct_react_1.test.describe('Grading Instructions', () => {
11
- let masteredExam;
12
- experimental_ct_react_1.test.beforeAll(async () => {
13
- masteredExam = await (0, utils_1.setupMasteredExam)('FF');
14
- });
15
- (0, experimental_ct_react_1.test)('text can be annotated inside grading instructions', async ({ mount, page }) => {
16
- let callbackArg = '';
17
- const component = await mount(react_1.default.createElement(GradingInstructions_story_1.GradingInstructionStory, { masteredExam: masteredExam, annotations: [], onClickAnnotation: () => { }, onSaveAnnotation: (_newAnnotation, comment) => {
18
- callbackArg = comment;
19
- } }));
20
- const annottatableElement = component.locator('.e-annotatable').first();
21
- const textbox = component.locator('.comment-content');
22
- await (0, experimental_ct_react_1.expect)(annottatableElement).toBeVisible();
23
- await (0, utils_1.annotateText)(annottatableElement, page);
24
- await (0, experimental_ct_react_1.expect)(component.getByTestId('e-popup')).toBeVisible();
25
- await textbox.fill('New comment');
26
- await component.getByText('Tallenna').click();
27
- (0, experimental_ct_react_1.expect)(callbackArg).toBe('New comment');
28
- });
29
- });
30
- //# sourceMappingURL=GradingInstructions.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GradingInstructions.test.js","sourceRoot":"","sources":["../../../../__tests__/playwright/grading-instructions/GradingInstructions.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,6EAAgE;AAChE,0CAAgE;AAChE,wGAAkG;AAElG,4BAAI,CAAC,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACzC,IAAI,YAA2D,CAAA;IAE/D,4BAAI,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACxB,YAAY,GAAG,MAAM,IAAA,yBAAiB,EAAC,IAAI,CAAC,CAAA;IAC9C,CAAC,CAAC,CAAA;IAEF,IAAA,4BAAI,EAAC,mDAAmD,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;QAClF,IAAI,WAAW,GAAG,EAAE,CAAA;QACpB,MAAM,SAAS,GAAG,MAAM,KAAK,CAC3B,8BAAC,mDAAuB,IACtB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,EAAE,EACf,iBAAiB,EAAE,GAAG,EAAE,GAAE,CAAC,EAC3B,gBAAgB,EAAE,CAAC,cAAc,EAAE,OAAe,EAAE,EAAE;gBACpD,WAAW,GAAG,OAAO,CAAA;YACvB,CAAC,GACD,CACH,CAAA;QACD,MAAM,mBAAmB,GAAG,SAAS,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,KAAK,EAAE,CAAA;QACvE,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAA;QAErD,MAAM,IAAA,8BAAM,EAAC,mBAAmB,CAAC,CAAC,WAAW,EAAE,CAAA;QAC/C,MAAM,IAAA,oBAAY,EAAC,mBAAmB,EAAE,IAAI,CAAC,CAAA;QAC7C,MAAM,IAAA,8BAAM,EAAC,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA;QAE5D,MAAM,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;QACjC,MAAM,SAAS,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,CAAA;QAC7C,IAAA,8BAAM,EAAC,WAAW,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;IACzC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { MasteringResult } from '@digabi/exam-engine-mastering';
3
- import { ExamAnnotation, NewExamAnnotation } from '../../../src';
4
- interface AnnotationsStoryProps {
5
- masteredExam: MasteringResult;
6
- annotations?: ExamAnnotation[];
7
- onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotationId: number) => void;
8
- onSaveAnnotation?: {
9
- fn: (annotation: NewExamAnnotation, comment: string) => void;
10
- result?: string;
11
- };
12
- }
13
- export declare const AnnotationsStory: React.FC<AnnotationsStoryProps>;
14
- export {};
15
- //# sourceMappingURL=Annotations.story.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Annotations.story.d.ts","sourceRoot":"","sources":["../../../../__tests__/playwright/stories/Annotations.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAO/D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,UAAU,qBAAqB;IAC7B,YAAY,EAAE,eAAe,CAAA;IAC7B,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IAChG,gBAAgB,CAAC,EAAE;QAAE,EAAE,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACrG;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6B5D,CAAA"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AnnotationsStory = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const Exam_1 = require("../../../src/components/exam/Exam");
9
- const ExamComponentWrapper_1 = require("../utils/ExamComponentWrapper");
10
- const parseExam_1 = __importDefault(require("../../../src/parser/parseExam"));
11
- const dom_utils_1 = require("../../../src/dom-utils");
12
- const Question_1 = __importDefault(require("../../../src/components/exam/Question"));
13
- const AnnotationProvider_1 = require("../../../src/components/context/AnnotationProvider");
14
- const AnnotationsStory = ({ masteredExam, annotations, onClickAnnotation, onSaveAnnotation }) => {
15
- const doc = (0, parseExam_1.default)(masteredExam.xml, true);
16
- const [_question1, question2] = (0, dom_utils_1.queryAll)(doc.documentElement, 'question', false);
17
- return (react_1.default.createElement(ExamComponentWrapper_1.ExamComponentWrapper, { doc: doc, resolveAttachment: (filename) => `/${masteredExam.examCode}/attachments/${filename}` },
18
- react_1.default.createElement(AnnotationProvider_1.AnnotationProvider, { annotations: annotations, onClickAnnotation: onClickAnnotation, onSaveAnnotation: onSaveAnnotation
19
- ? (...args) => {
20
- onSaveAnnotation.fn(...args);
21
- return Promise.resolve(onSaveAnnotation.result);
22
- }
23
- : undefined },
24
- react_1.default.createElement(Question_1.default, { element: question2, renderChildNodes: Exam_1.renderChildNodes }))));
25
- };
26
- exports.AnnotationsStory = AnnotationsStory;
27
- //# sourceMappingURL=Annotations.story.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Annotations.story.js","sourceRoot":"","sources":["../../../../__tests__/playwright/stories/Annotations.story.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,4DAAoE;AACpE,wEAAoE;AACpE,8EAAqD;AACrD,sDAAiD;AACjD,qFAA4D;AAC5D,2FAAuF;AAUhF,MAAM,gBAAgB,GAAoC,CAAC,EAChE,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EACjB,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,IAAA,mBAAS,EAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC7C,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,GAAG,IAAA,oBAAQ,EAAC,GAAG,CAAC,eAAe,EAAE,UAAU,EAAE,KAAK,CAAC,CAAA;IAChF,OAAO,CACL,8BAAC,2CAAoB,IACnB,GAAG,EAAE,GAAG,EACR,iBAAiB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,QAAQ,gBAAgB,QAAQ,EAAE;QAE5F,8BAAC,uCAAkB,IACjB,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EACd,gBAAgB;gBACd,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,EAAE;oBACV,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;oBAC5B,OAAO,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAA;gBACjD,CAAC;gBACH,CAAC,CAAC,SAAS;YAGf,8BAAC,kBAAQ,IAAC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,uBAAgB,GAAI,CACjD,CACA,CACxB,CAAA;AACH,CAAC,CAAA;AA7BY,QAAA,gBAAgB,oBA6B5B"}
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { MasteringResult } from '@digabi/exam-engine-mastering';
3
- import { ExamAnnotation, NewExamAnnotation } from '../../../../src';
4
- import '../../../../src/css/main.less';
5
- interface AttachmentsStoryProps {
6
- masteredExam: MasteringResult;
7
- annotations?: ExamAnnotation[];
8
- onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotationId: number) => void;
9
- onSaveAnnotation?: (annotation: NewExamAnnotation, comment: string) => void;
10
- }
11
- export declare const AttachmentsStory: React.FC<AttachmentsStoryProps>;
12
- export {};
13
- //# sourceMappingURL=Attachments.story.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Attachments.story.d.ts","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/attachments/Attachments.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAG/D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEnE,OAAO,+BAA+B,CAAA;AAEtC,UAAU,qBAAqB;IAC7B,YAAY,EAAE,eAAe,CAAA;IAC7B,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IAChG,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5E;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAkB5D,CAAA"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AttachmentsStory = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const parseExam_1 = __importDefault(require("../../../../src/parser/parseExam"));
9
- const Attachments_1 = __importDefault(require("../../../../src/components/attachments/Attachments"));
10
- const examServerApi_1 = require("../../../examServerApi");
11
- require("../../../../src/css/main.less");
12
- const AttachmentsStory = ({ masteredExam, annotations, onClickAnnotation, onSaveAnnotation }) => {
13
- const doc = (0, parseExam_1.default)(masteredExam.xml, true);
14
- return (react_1.default.createElement(Attachments_1.default, { doc: doc, resolveAttachment: (filename) => `/${masteredExam.examCode}/attachments/${filename}`, attachmentsURL: "/attachments", annotations: annotations, onClickAnnotation: onClickAnnotation, onSaveAnnotation: onSaveAnnotation, examServerApi: examServerApi_1.examServerApi }));
15
- };
16
- exports.AttachmentsStory = AttachmentsStory;
17
- //# sourceMappingURL=Attachments.story.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Attachments.story.js","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/attachments/Attachments.story.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,iFAAwD;AACxD,qGAA4E;AAE5E,0DAAsD;AACtD,yCAAsC;AAS/B,MAAM,gBAAgB,GAAoC,CAAC,EAChE,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EACjB,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,IAAA,mBAAS,EAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC7C,OAAO,CACL,8BAAC,qBAAW,IACV,GAAG,EAAE,GAAG,EACR,iBAAiB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,QAAQ,gBAAgB,QAAQ,EAAE,EAC5F,cAAc,EAAC,cAAc,EAC7B,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EAAE,gBAAgB,EAClC,aAAa,EAAE,6BAAa,GAC5B,CACH,CAAA;AACH,CAAC,CAAA;AAlBY,QAAA,gBAAgB,oBAkB5B"}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { MasteringResult } from '@digabi/exam-engine-mastering';
3
- import { ExamAnnotation, NewExamAnnotation } from '../../../../src';
4
- interface ExamStoryProps {
5
- masteredExam: MasteringResult;
6
- annotations?: ExamAnnotation[];
7
- onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotationId: number) => void;
8
- onSaveAnnotation?: (annotation: NewExamAnnotation, comment: string) => void;
9
- }
10
- export declare const ExamStory: React.FC<ExamStoryProps>;
11
- export {};
12
- //# sourceMappingURL=Exam.story.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Exam.story.d.ts","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/exam/Exam.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAI/D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAGnE,UAAU,cAAc;IACtB,YAAY,EAAE,eAAe,CAAA;IAC7B,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IAChG,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5E;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAkC9C,CAAA"}
@@ -1,56 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ExamStory = void 0;
40
- const react_1 = __importDefault(require("react"));
41
- const Exam_1 = __importStar(require("../../../../src/components/exam/Exam"));
42
- const ExamComponentWrapper_1 = require("../../utils/ExamComponentWrapper");
43
- const parseExam_1 = __importDefault(require("../../../../src/parser/parseExam"));
44
- const examServerApi_1 = require("../../../examServerApi");
45
- const ExamStory = ({ masteredExam, annotations, onClickAnnotation, onSaveAnnotation }) => {
46
- const doc = (0, parseExam_1.default)(masteredExam.xml, true);
47
- return (react_1.default.createElement(ExamComponentWrapper_1.ExamComponentWrapper, { doc: doc, resolveAttachment: (filename) => `/${masteredExam.examCode}/attachments/${filename}` },
48
- react_1.default.createElement(Exam_1.default, { doc: doc, renderChildNodes: Exam_1.renderChildNodes, annotations: annotations, onClickAnnotation: onClickAnnotation, onSaveAnnotation: onSaveAnnotation, resolveAttachment: (filename) => `/${masteredExam.examCode}/attachments/${filename}`, answers: [], attachmentsURL: "/attachments", casStatus: "forbidden", examServerApi: examServerApi_1.examServerApi, studentName: "[Kokelaan Nimi]", showUndoView: false, undoViewProps: {
49
- questionId: 0,
50
- title: '',
51
- close: () => undefined,
52
- restoreAnswer: () => undefined
53
- } })));
54
- };
55
- exports.ExamStory = ExamStory;
56
- //# sourceMappingURL=Exam.story.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Exam.story.js","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/exam/Exam.story.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAyB;AAEzB,6EAA6E;AAC7E,2EAAuE;AACvE,iFAAwD;AAExD,0DAAsD;AAS/C,MAAM,SAAS,GAA6B,CAAC,EAClD,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EACjB,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,IAAA,mBAAS,EAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC7C,OAAO,CACL,8BAAC,2CAAoB,IACnB,GAAG,EAAE,GAAG,EACR,iBAAiB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,QAAQ,gBAAgB,QAAQ,EAAE;QAE5F,8BAAC,cAAI,IACH,GAAG,EAAE,GAAG,EACR,gBAAgB,EAAE,uBAAgB,EAClC,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EAAE,gBAAgB,EAClC,iBAAiB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,QAAQ,gBAAgB,QAAQ,EAAE,EAC5F,OAAO,EAAE,EAAE,EACX,cAAc,EAAC,cAAc,EAC7B,SAAS,EAAC,WAAW,EACrB,aAAa,EAAE,6BAAa,EAC5B,WAAW,EAAC,iBAAiB,EAC7B,YAAY,EAAE,KAAK,EACnB,aAAa,EAAE;gBACb,UAAU,EAAE,CAAC;gBACb,KAAK,EAAE,EAAE;gBACT,KAAK,EAAE,GAAG,EAAE,CAAC,SAAS;gBACtB,aAAa,EAAE,GAAG,EAAE,CAAC,SAAS;aAC/B,GACD,CACmB,CACxB,CAAA;AACH,CAAC,CAAA;AAlCY,QAAA,SAAS,aAkCrB"}
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { MasteringResult } from '@digabi/exam-engine-mastering';
3
- import { ExamAnnotation, NewExamAnnotation } from '../../../../src';
4
- import '../../../../src/css/main.less';
5
- interface GradingInstructionsStoryProps {
6
- masteredExam: MasteringResult;
7
- annotations?: ExamAnnotation[];
8
- onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotationId: number) => void;
9
- onSaveAnnotation?: (annotation: NewExamAnnotation, comment: string) => void;
10
- }
11
- export declare const GradingInstructionStory: React.FC<GradingInstructionsStoryProps>;
12
- export {};
13
- //# sourceMappingURL=GradingInstructions.story.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GradingInstructions.story.d.ts","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/grading-intructions/GradingInstructions.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAG/D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,+BAA+B,CAAA;AAEtC,UAAU,6BAA6B;IACrC,YAAY,EAAE,eAAe,CAAA;IAC7B,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IAChG,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5E;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAoB3E,CAAA"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.GradingInstructionStory = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const parseExam_1 = __importDefault(require("../../../../src/parser/parseExam"));
9
- const GradingInstructions_1 = __importDefault(require("../../../../src/components/grading-instructions/GradingInstructions"));
10
- require("../../../../src/css/main.less");
11
- const GradingInstructionStory = ({ masteredExam, annotations, onClickAnnotation, onSaveAnnotation }) => {
12
- const doc = (0, parseExam_1.default)(masteredExam.xml, true);
13
- return (react_1.default.createElement(GradingInstructions_1.default, { doc: doc, resolveAttachment: (filename) => `/${masteredExam.examCode}/attachments/${filename}`, answers: [], attachmentsURL: "/attachments", annotations: annotations, onClickAnnotation: onClickAnnotation, onSaveAnnotation: onSaveAnnotation ? (...args) => { var _a; return Promise.resolve((_a = onSaveAnnotation(...args)) !== null && _a !== void 0 ? _a : undefined); } : undefined }));
14
- };
15
- exports.GradingInstructionStory = GradingInstructionStory;
16
- //# sourceMappingURL=GradingInstructions.story.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GradingInstructions.story.js","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/grading-intructions/GradingInstructions.story.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,iFAAwD;AACxD,8HAAqG;AAErG,yCAAsC;AAS/B,MAAM,uBAAuB,GAA4C,CAAC,EAC/E,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EACjB,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,IAAA,mBAAS,EAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC7C,OAAO,CACL,8BAAC,6BAAmB,IAClB,GAAG,EAAE,GAAG,EACR,iBAAiB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,QAAQ,gBAAgB,QAAQ,EAAE,EAC5F,OAAO,EAAE,EAAE,EACX,cAAc,EAAC,cAAc,EAC7B,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EACd,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,EAAE,WAAC,OAAA,OAAO,CAAC,OAAO,CAAC,MAAA,gBAAgB,CAAC,GAAG,IAAI,CAAC,mCAAI,SAAS,CAAC,CAAA,EAAA,CAAC,CAAC,CAAC,SAAS,GAErG,CACH,CAAA;AACH,CAAC,CAAA;AApBY,QAAA,uBAAuB,2BAoBnC"}
@@ -1 +0,0 @@
1
- <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="30" height="30" viewBox="0 0 30 30"><defs><clipPath id="clip-path"><path d="M141.57-89.324v-2.34H143.2v2.34A2.3,2.3,0,0,1,140.9-87.03H130.1a2.3,2.3,0,0,1-2.292-2.294v-17.029a2.294,2.294,0,0,1,2.292-2.292h10.8a2.3,2.3,0,0,1,2.295,2.292v2.342H141.57v-2.342a.669.669,0,0,0-.67-.667H130.1a.667.667,0,0,0-.667.667v17.029a.668.668,0,0,0,.667.669h10.8A.67.67,0,0,0,141.57-89.324Zm3.271-13.579a1.069,1.069,0,0,1,1.825-.755l5.065,5.065a1.065,1.065,0,0,1,0,1.511l-5.065,5.067a1.07,1.07,0,0,1-1.825-.757v-2.412h-6.633a2.3,2.3,0,0,1-2.3-2.3v-.7a2.3,2.3,0,0,1,2.3-2.3h6.633V-102.9" fill="none" clip-rule="evenodd"/></clipPath><clipPath id="clip-path-2"><ellipse cx="10" cy="-29.606" rx="15" ry="14.933" fill="none"/></clipPath></defs><title>closeButton</title><rect width="30" height="30" fill="#fff" opacity="0"/><line x1="25" y1="5" x2="5" y2="25" fill="none" stroke="#6d6d6d" stroke-miterlimit="10" stroke-width="3"/><line x1="5" y1="5" x2="25" y2="25" fill="none" stroke="#6d6d6d" stroke-miterlimit="10" stroke-width="3"/></svg>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg width="19px" height="12px" viewBox="0 0 19 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch -->
4
- <title>Page 1</title>
5
- <desc>Created with Sketch.</desc>
6
- <defs></defs>
7
- <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="Kuuntelu-kokelas-painaa-nappia-Copy-18" transform="translate(-1068.000000, -19.000000)" stroke-width="3" stroke="#359BB7">
9
- <polyline id="Page-1" transform="translate(1077.999981, 26.000000) rotate(180.000000) translate(-1077.999981, -26.000000) " points="1085.99996 22 1077.99996 30 1070 22"></polyline>
10
- </g>
11
- </g>
12
- </svg>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg width="18px" height="12px" viewBox="0 0 18 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch -->
4
- <title>Page 1</title>
5
- <desc>Created with Sketch.</desc>
6
- <defs></defs>
7
- <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="Kuuntelu-kokelas-painaa-nappia-Copy-18" transform="translate(-1069.000000, -21.000000)" stroke-width="3" stroke="#359BB7">
9
- <polyline id="Page-1" points="1085.99996 22 1077.99996 30 1070 22"></polyline>
10
- </g>
11
- </g>
12
- </svg>
@@ -1,9 +0,0 @@
1
- <svg version="1.1"
2
- xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
3
- x="0px" y="0px" width="20px" height="20px" viewBox="0 0 20 20" enable-background="new 0 0 20 20" xml:space="preserve">
4
- <path fill="#359BB7" d="M10,20C4.48,20,0,15.52,0,10C0,4.48,4.48,0,10,0s10,4.48,10,10C20,15.52,15.52,20,10,20z M5.57,5.88
5
- c-0.14,0.21-0.09,0.5,0.11,0.66l1.4,1.06c0.21,0.16,0.51,0.12,0.67-0.09c0.72-0.91,1.21-1.44,2.31-1.44c0.82,0,1.84,0.53,1.84,1.33
6
- c0,0.6-0.5,0.91-1.31,1.37c-0.95,0.53-2.2,1.19-2.2,2.85v0.16c0,0.27,0.22,0.48,0.48,0.48h2.26c0.27,0,0.48-0.22,0.48-0.48v-0.05
7
- c0-1.15,3.35-1.2,3.35-4.3c0-2.34-2.43-4.11-4.7-4.11C8.07,3.31,6.67,4.23,5.57,5.88z M8.15,15.16c0,1.02,0.83,1.85,1.85,1.85
8
- s1.85-0.83,1.85-1.85s-0.83-1.85-1.85-1.85S8.15,14.14,8.15,15.16z"/>
9
- </svg>
@@ -1,5 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20px" height="20px" viewBox="0 0 20 20" version="1.1">
2
- <g id="surface1">
3
- <path fill="#359BB7" d="M 18.316406 1.253906 C 18.859375 1.253906 19.378906 1.675781 19.378906 2.3125 L 19.378906 8.007812 C 19.378906 8.421875 19.042969 8.757812 18.628906 8.757812 L 12.9375 8.757812 C 12.300781 8.757812 11.882812 8.238281 11.882812 7.695312 C 11.882812 7.4375 11.976562 7.171875 12.191406 6.957031 L 13.953125 5.195312 C 12.851562 4.289062 11.460938 3.761719 9.996094 3.761719 C 6.554688 3.761719 3.753906 6.5625 3.753906 10.003906 C 3.753906 13.449219 6.554688 16.246094 9.996094 16.246094 C 12.851562 16.246094 13.488281 14.75 14.492188 14.75 C 15.214844 14.75 15.742188 15.335938 15.742188 15.996094 C 15.742188 17.367188 12.554688 18.75 10 18.75 C 5.179688 18.75 1.253906 14.824219 1.253906 10.003906 C 1.253906 5.183594 5.179688 1.265625 10 1.265625 C 12.132812 1.265625 14.148438 2.0625 15.71875 3.425781 L 17.578125 1.566406 C 17.792969 1.351562 18.058594 1.253906 18.316406 1.253906 Z M 18.316406 1.253906 "/>
4
- </g>
5
- </svg>
@@ -1,5 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20px" height="20px" viewBox="0 0 20 20" version="1.1">
2
- <g id="surface1">
3
- <path fill="#359BB7" d="M 18.75 10 C 18.75 14.820312 14.824219 18.746094 10.003906 18.746094 C 8.097656 18.746094 6.285156 18.136719 4.761719 16.992188 C 4.210938 16.578125 4.097656 15.796875 4.511719 15.242188 C 4.925781 14.691406 5.707031 14.582031 6.261719 14.996094 C 7.351562 15.8125 8.644531 16.242188 10.007812 16.242188 C 13.449219 16.242188 16.25 13.441406 16.25 10 C 16.25 6.558594 13.449219 3.757812 10.007812 3.757812 C 8.542969 3.757812 7.152344 4.285156 6.050781 5.1875 L 7.8125 6.953125 C 8.476562 7.617188 8.007812 8.753906 7.066406 8.753906 L 1.375 8.753906 C 0.960938 8.753906 0.625 8.417969 0.625 8.003906 L 0.625 2.304688 C 0.625 1.367188 1.761719 0.898438 2.425781 1.5625 L 4.285156 3.421875 C 5.855469 2.058594 7.871094 1.253906 10.003906 1.253906 C 14.824219 1.253906 18.75 5.179688 18.75 10 Z M 18.75 10 "/>
4
- </g>
5
- </svg>
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../..';
3
- export declare const DNDAnswerContainer: ({ element, renderChildNodes }: ExamComponentProps) => React.JSX.Element;
4
- //# sourceMappingURL=DNDAnswerContainer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DNDAnswerContainer.d.ts","sourceRoot":"","sources":["../../../src/components/results/DNDAnswerContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAO1C,eAAO,MAAM,kBAAkB,kCAAmC,kBAAkB,sBAuCnF,CAAA"}
@@ -1,22 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { query, queryAll } from '../../dom-utils';
3
- import { ResultsContext } from '../context/ResultsContext';
4
- import { getAnswerOptionIdsByQuestionId, getAnswerOptionsByOptionId } from '../exam/DNDAnswerContainer';
5
- import { DNDTitleAndDroppable } from '../shared/DNDTitleAndDroppable';
6
- import { CorrectDNDAnswers } from './CorrectDNDAnswers';
7
- export const DNDAnswerContainer = ({ element, renderChildNodes }) => {
8
- const { answersByQuestionId, gradingStructure } = useContext(ResultsContext);
9
- const answerOptionIdsByQuestionId = getAnswerOptionIdsByQuestionId(element, answersByQuestionId);
10
- const answerOptionsByOptionId = getAnswerOptionsByOptionId(element);
11
- const dndAnswersWithQuestion = queryAll(element, 'dnd-answer').filter(e => !!query(e, 'dnd-answer-title'));
12
- return (React.createElement("div", { className: "e-dnd-answer-container" }, dndAnswersWithQuestion.map(element => {
13
- var _a;
14
- const questionId = element.getAttribute('question-id');
15
- const itemIds = answerOptionIdsByQuestionId[questionId] || [];
16
- const answerOptionElements = (_a = (answerOptionIdsByQuestionId[questionId] || [])) === null || _a === void 0 ? void 0 : _a.map(id => (answerOptionsByOptionId === null || answerOptionsByOptionId === void 0 ? void 0 : answerOptionsByOptionId[id]) || null).filter(Boolean);
17
- return (React.createElement(React.Fragment, { key: questionId },
18
- React.createElement(DNDTitleAndDroppable, { key: questionId, element: element, answerOptionElements: answerOptionElements, renderChildNodes: renderChildNodes, itemIds: itemIds, page: "results" }),
19
- gradingStructure && (React.createElement(CorrectDNDAnswers, { key: `${questionId}-correct`, element: element, renderChildNodes: renderChildNodes, answerOptionsById: answerOptionsByOptionId }))));
20
- })));
21
- };
22
- //# sourceMappingURL=DNDAnswerContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DNDAnswerContainer.js","sourceRoot":"","sources":["../../../src/components/results/DNDAnswerContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,8BAA8B,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAA;AACvG,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB,EAAE,EAAE;IACtF,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IAC5E,MAAM,2BAA2B,GAAG,8BAA8B,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAA;IAChG,MAAM,uBAAuB,GAAG,0BAA0B,CAAC,OAAO,CAAC,CAAA;IACnE,MAAM,sBAAsB,GAAG,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAA;IAE1G,OAAO,CACL,6BAAK,SAAS,EAAC,wBAAwB,IACpC,sBAAsB,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;;QACpC,MAAM,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,aAAa,CAAE,CAAA;QACvD,MAAM,OAAO,GAAG,2BAA2B,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA;QAC7D,MAAM,oBAAoB,GAAG,MAAA,CAAC,2BAA2B,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,0CACxE,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAG,EAAE,CAAC,KAAI,IAAI,EAChD,MAAM,CAAC,OAAO,CAAC,CAAA;QAElB,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,UAAU;YAC7B,oBAAC,oBAAoB,IACnB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,OAAO,EAChB,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,SAAS,GACd;YAED,gBAAgB,IAAI,CACnB,oBAAC,iBAAiB,IAChB,GAAG,EAAE,GAAG,UAAU,UAAU,EAC5B,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB,EAClC,iBAAiB,EAAE,uBAAuB,GAC1C,CACH,CACc,CAClB,CAAA;IACH,CAAC,CAAC,CACE,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare const AnnotatableText: ({ node }: {
3
- node: Node;
4
- }) => string | React.JSX.Element;
5
- //# sourceMappingURL=AnnotatableText.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnnotatableText.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnnotatableText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAMzC,eAAO,MAAM,eAAe,aAAc;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,+BA6BvD,CAAA"}
@@ -1,25 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { getElementPath } from '../../dom-utils';
3
- import { AnnotationContext } from '../context/AnnotationProvider';
4
- import { IsInSidebarContext } from '../context/IsInSidebarContext';
5
- import { markText } from './markText';
6
- export const AnnotatableText = ({ node }) => {
7
- var _a, _b;
8
- const annotationContextData = useContext(AnnotationContext);
9
- const { isInSidebar } = useContext(IsInSidebarContext);
10
- const canNotBeAnnotated = !annotationContextData.annotationsEnabled || ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim().length) === 0 || isInSidebar !== undefined;
11
- if (canNotBeAnnotated) {
12
- return node.textContent;
13
- }
14
- const { textAnnotations, onClickAnnotation, setNewAnnotationRef, newAnnotation } = annotationContextData;
15
- const path = getElementPath(node);
16
- const newAnnotationPartsForThisNode = (newAnnotation === null || newAnnotation === void 0 ? void 0 : newAnnotation.annotationType) === 'text'
17
- ? ((_b = newAnnotation === null || newAnnotation === void 0 ? void 0 : newAnnotation.annotationParts) === null || _b === void 0 ? void 0 : _b.filter(p => p.annotationAnchor === path)) || []
18
- : [];
19
- const savedAnnotationsForThisNode = (textAnnotations === null || textAnnotations === void 0 ? void 0 : textAnnotations[path]) || [];
20
- const allAnnotationsForThisNode = [...savedAnnotationsForThisNode, ...newAnnotationPartsForThisNode];
21
- return (React.createElement("span", { className: "e-annotatable", key: path, "data-annotation-path": path, "data-testid": path }, allAnnotationsForThisNode.length > 0 && onClickAnnotation
22
- ? markText(node.textContent, allAnnotationsForThisNode, onClickAnnotation, setNewAnnotationRef)
23
- : node.textContent));
24
- };
25
- //# sourceMappingURL=AnnotatableText.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnnotatableText.js","sourceRoot":"","sources":["../../../src/components/shared/AnnotatableText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAA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AG,CAAC,IAAI,iBAAiB;QACxD,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAY,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,mBAAmB,CAAC;QAChG,CAAC,CAAC,IAAI,CAAC,WAAW,CACf,CACR,CAAA;AACH,CAAC,CAAA"}
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { AnnotationRect, NewExamAnnotation, NewExamImageAnnotation } from '../../types/ExamAnnotations';
3
- export declare const AnnotationImageMark: React.NamedExoticComponent<{
4
- rect: NewExamImageAnnotation["rect"];
5
- onClickAnnotation: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotationId: number) => void;
6
- setNewAnnotationRef: (e: HTMLElement | null) => void;
7
- annotationId?: number;
8
- markNumber?: number;
9
- resolved?: boolean;
10
- }>;
11
- export declare function useImageAnnotation(anchor: string, description: string, setNewAnnotation: (a: NewExamAnnotation | null) => void): {
12
- elementRef: React.RefObject<HTMLElement>;
13
- annotationRect: AnnotationRect | undefined;
14
- onMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
15
- };
16
- //# sourceMappingURL=AnnotationImageMark.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnnotationImageMark.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnnotationImageMark.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAGvG,eAAO,MAAM,mBAAmB;UAQxB,sBAAsB,CAAC,MAAM,CAAC;uBACjB,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI;yBAC1E,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI;mBACrC,MAAM;iBACR,MAAM;eACR,OAAO;EA6ClB,CAAA;AAEF,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,CAAC,CAAC,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI;;;qBA4DnB,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC;EAkB9E"}
@@ -1,99 +0,0 @@
1
- import classNames from 'classnames';
2
- import { clamp } from 'lodash-es';
3
- import React, { useCallback, useEffect, useRef, useState } from 'react';
4
- // eslint-disable-next-line prefer-arrow-callback
5
- export const AnnotationImageMark = React.memo(function AnnotationImageMark({ rect: { x1, y1, x2, y2 }, onClickAnnotation, setNewAnnotationRef, annotationId, markNumber, resolved }) {
6
- const markRef = useRef(null);
7
- const supRef = useRef(null);
8
- useEffect(() => {
9
- if (markRef.current) {
10
- markRef.current.style['inset'] =
11
- `${100 * Math.min(y1, y2)}% ${100 * (1 - Math.max(x1, x2))}% ${100 * (1 - Math.max(y1, y2))}% ${100 * Math.min(x1, x2)}%`;
12
- }
13
- if (supRef.current) {
14
- supRef.current.style['left'] = `${100 * Math.max(x1, x2)}%`;
15
- supRef.current.style['top'] = `${100 * Math.min(y1, y2)}%`;
16
- }
17
- }, [x1, y1, x2, y2]);
18
- useEffect(() => {
19
- if (markRef.current && annotationId === undefined) {
20
- setNewAnnotationRef(markRef.current);
21
- }
22
- }, []);
23
- const onMouseDown = useCallback((e) => {
24
- if (annotationId) {
25
- e.stopPropagation();
26
- onClickAnnotation(e, annotationId);
27
- }
28
- }, [annotationId, onClickAnnotation]);
29
- return (React.createElement(React.Fragment, null,
30
- React.createElement("mark", { ref: markRef, className: classNames('e-annotation e-annotation--shape', { resolved }), "data-annotation-id": annotationId, "data-hidden": "false", onMouseDown: onMouseDown }),
31
- markNumber && React.createElement("sup", { ref: supRef, className: "e-annotation", "data-content": markNumber })));
32
- });
33
- export function useImageAnnotation(anchor, description, setNewAnnotation) {
34
- const elementRef = useRef(null);
35
- const [annotationRect, setAnnotationRect] = useState();
36
- const annotationRectRef = useRef();
37
- useEffect(() => {
38
- annotationRectRef.current = annotationRect;
39
- }, [annotationRect]);
40
- const onMouseMove = useCallback((e) => {
41
- const el = elementRef.current;
42
- if (el === null) {
43
- return;
44
- }
45
- e.preventDefault();
46
- e.stopPropagation();
47
- const [x2, y2] = getMousePosition(el, e);
48
- setAnnotationRect(rect => {
49
- if (rect) {
50
- const { x1, y1 } = rect;
51
- return { x1, y1, x2, y2 };
52
- }
53
- return rect;
54
- });
55
- }, []);
56
- const onMouseUp = useCallback((e) => {
57
- var _a, _b;
58
- const el = elementRef.current;
59
- if (el === null) {
60
- return;
61
- }
62
- window.removeEventListener('mouseup', onMouseUp);
63
- window.removeEventListener('mousemove', onMouseMove);
64
- const displayNumber = (_b = (_a = elementRef.current) === null || _a === void 0 ? void 0 : _a.closest('div[data-annotation-anchor]')) === null || _b === void 0 ? void 0 : _b.getAttribute('data-annotation-anchor');
65
- if (!displayNumber || !annotationRectRef.current) {
66
- setAnnotationRect(undefined);
67
- return;
68
- }
69
- const { x1, y1 } = annotationRectRef.current;
70
- const [x2, y2] = getMousePosition(el, e);
71
- setNewAnnotation({
72
- annotationType: 'image',
73
- displayNumber,
74
- annotationAnchor: anchor,
75
- rect: { x1, y1, x2, y2 },
76
- description
77
- });
78
- setAnnotationRect(undefined);
79
- }, []);
80
- const onMouseDown = useCallback((e) => {
81
- const el = elementRef.current;
82
- if (el === null || e.button !== 0) {
83
- return;
84
- }
85
- e.preventDefault();
86
- e.stopPropagation();
87
- window.addEventListener('mouseup', onMouseUp);
88
- window.addEventListener('mousemove', onMouseMove);
89
- const [x1, y1] = getMousePosition(el, e);
90
- setAnnotationRect({ x1, y1, x2: x1, y2: y1 });
91
- setNewAnnotation(null);
92
- }, []);
93
- return { elementRef, annotationRect, onMouseDown };
94
- }
95
- function getMousePosition(el, e) {
96
- const bbox = el.getBoundingClientRect();
97
- return [clamp((e.clientX - bbox.left) / bbox.width, 0, 1), clamp((e.clientY - bbox.top) / bbox.height, 0, 1)];
98
- }
99
- //# sourceMappingURL=AnnotationImageMark.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnnotationImageMark.js","sourceRoot":"","sources":["../../../src/components/shared/AnnotationImageMark.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAGvE,iDAAiD;AACjD,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,mBAAmB,CAAC,EACzE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EACxB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,UAAU,EACV,QAAQ,EAQT;IACC,MAAM,OAAO,GAAG,MAAM,CAAc,IAAI,CAAC,CAAA;IACzC,MAAM,MAAM,GAAG,MAAM,CAAc,IAAI,CAAC,CAAA;IAExC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;gBAC5B,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;QAC7H,CAAC;QAED,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,MAAM,CAAC,OAAO,CAAC,KAA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gB,CAAC,IAAI,CAAC,CAAA;IACxB,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,WAAW,EAAE,CAAA;AACpD,CAAC;AAED,SAAS,gBAAgB,CAAC,EAAe,EAAE,CAAuC;IAChF,MAAM,IAAI,GAAG,EAAE,CAAC,qBAAqB,EAAE,CAAA;IACvC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAC/G,CAAC"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { NewRenderableAnnotation, RenderableAnnotation } from '../../types/Score';
3
- export declare const AnnotationMark: ({ annotation, markedText, onClickAnnotation, setNewAnnotationRef }: {
4
- annotation: RenderableAnnotation | NewRenderableAnnotation;
5
- markedText: string;
6
- onClickAnnotation: (e: React.MouseEvent<HTMLElement, MouseEvent>, a: RenderableAnnotation) => void;
7
- setNewAnnotationRef: (ref: HTMLElement | null) => void;
8
- }) => React.JSX.Element;
9
- //# sourceMappingURL=AnnotationMark.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnnotationMark.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnnotationMark.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAGjF,eAAO,MAAM,cAAc,uEAKxB;IACD,UAAU,EAAE,oBAAoB,GAAG,uBAAuB,CAAA;IAC1D,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAClG,mBAAmB,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;CACvD,sBAsBA,CAAA"}