@digabi/exam-engine-core 22.1.3-alpha.3 → 22.1.5-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. package/dist/__tests__/EditableGradingInsatruction.test.d.ts +1 -0
  2. package/dist/__tests__/EditableGradingInsatruction.test.d.ts.map +1 -0
  3. package/dist/__tests__/EditableGradingInsatruction.test.js +2 -0
  4. package/dist/__tests__/EditableGradingInsatruction.test.js.map +1 -0
  5. package/dist/__tests__/EditableGradingInstruction.test.d.ts +1 -1
  6. package/dist/__tests__/EditableGradingInstruction.test.d.ts.map +1 -1
  7. package/dist/__tests__/EditableGradingInstruction.test.js +13 -10
  8. package/dist/__tests__/EditableGradingInstruction.test.js.map +1 -1
  9. package/dist/__tests__/editor/FormatButton.test.d.ts +2 -0
  10. package/dist/__tests__/editor/FormatButton.test.d.ts.map +1 -0
  11. package/dist/__tests__/editor/FormatButton.test.js +98 -0
  12. package/dist/__tests__/editor/FormatButton.test.js.map +1 -0
  13. package/dist/__tests__/editor/Formula.test.js +16 -9
  14. package/dist/__tests__/editor/Formula.test.js.map +1 -1
  15. package/dist/__tests__/editor/ImageUploadButton.test.d.ts +2 -0
  16. package/dist/__tests__/editor/ImageUploadButton.test.d.ts.map +1 -0
  17. package/dist/__tests__/editor/ImageUploadButton.test.js +69 -0
  18. package/dist/__tests__/editor/ImageUploadButton.test.js.map +1 -0
  19. package/dist/__tests__/editor/{nbsp.test.js → NBSP.test.js} +2 -6
  20. package/dist/__tests__/editor/NBSP.test.js.map +1 -0
  21. package/dist/__tests__/editor/br.test.js +2 -6
  22. package/dist/__tests__/editor/br.test.js.map +1 -1
  23. package/dist/__tests__/editor/hr.test.js +2 -6
  24. package/dist/__tests__/editor/hr.test.js.map +1 -1
  25. package/dist/__tests__/editor/no-wrap.test.d.ts +2 -0
  26. package/dist/__tests__/editor/no-wrap.test.d.ts.map +1 -0
  27. package/dist/__tests__/editor/no-wrap.test.js +43 -0
  28. package/dist/__tests__/editor/no-wrap.test.js.map +1 -0
  29. package/dist/__tests__/editor/noWrap.test.js +1 -1
  30. package/dist/__tests__/editor/noWrap.test.js.map +1 -1
  31. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  32. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts +1 -0
  33. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts.map +1 -0
  34. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js +2 -0
  35. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js.map +1 -0
  36. package/dist/__tests__/utils/prosemirror.d.ts +0 -1
  37. package/dist/__tests__/utils/prosemirror.d.ts.map +1 -1
  38. package/dist/__tests__/utils/prosemirror.js +0 -8
  39. package/dist/__tests__/utils/prosemirror.js.map +1 -1
  40. package/dist/__tests__/utils/renderEditableGradingInstruction.d.ts +2 -0
  41. package/dist/__tests__/utils/renderEditableGradingInstruction.d.ts.map +1 -1
  42. package/dist/__tests__/utils/renderEditableGradingInstruction.js +8 -2
  43. package/dist/__tests__/utils/renderEditableGradingInstruction.js.map +1 -1
  44. package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts +1 -0
  45. package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts.map +1 -0
  46. package/dist/__tests__/utils/renderEditableGradingInstructions.js +2 -0
  47. package/dist/__tests__/utils/renderEditableGradingInstructions.js.map +1 -0
  48. package/dist/__tests__/utils/util.d.ts +2 -0
  49. package/dist/__tests__/utils/util.d.ts.map +1 -0
  50. package/dist/__tests__/utils/util.js +10 -0
  51. package/dist/__tests__/utils/util.js.map +1 -0
  52. package/dist/components/LexicalEditor.d.ts +3 -0
  53. package/dist/components/LexicalEditor.d.ts.map +1 -0
  54. package/dist/components/LexicalEditor.js +44 -0
  55. package/dist/components/LexicalEditor.js.map +1 -0
  56. package/dist/components/RTE.d.ts +3 -0
  57. package/dist/components/RTE.d.ts.map +1 -0
  58. package/dist/components/RTE.js +23 -0
  59. package/dist/components/RTE.js.map +1 -0
  60. package/dist/components/TablePlugin.d.ts +1 -0
  61. package/dist/components/TablePlugin.d.ts.map +1 -0
  62. package/dist/components/TablePlugin.js +2 -0
  63. package/dist/components/TablePlugin.js.map +1 -0
  64. package/dist/components/ToolBarPlugin.d.ts +10 -0
  65. package/dist/components/ToolBarPlugin.d.ts.map +1 -0
  66. package/dist/components/ToolBarPlugin.js +111 -0
  67. package/dist/components/ToolBarPlugin.js.map +1 -0
  68. package/dist/components/context/AnnotationContext.d.ts +8 -0
  69. package/dist/components/context/AnnotationContext.d.ts.map +1 -0
  70. package/dist/components/context/AnnotationContext.js +3 -0
  71. package/dist/components/context/AnnotationContext.js.map +1 -0
  72. package/dist/components/context/AttachmentContext.d.ts.map +1 -1
  73. package/dist/components/context/ExamContext.d.ts.map +1 -1
  74. package/dist/components/context/GradingInstructionContext.d.ts +2 -2
  75. package/dist/components/context/GradingInstructionContext.d.ts.map +1 -1
  76. package/dist/components/context/QuestionContext.d.ts.map +1 -1
  77. package/dist/components/context/ResultsContext.d.ts.map +1 -1
  78. package/dist/components/context/SectionContext.d.ts.map +1 -1
  79. package/dist/components/exam/ExamineExam.d.ts +5 -0
  80. package/dist/components/exam/ExamineExam.d.ts.map +1 -0
  81. package/dist/components/exam/ExamineExam.js +20 -0
  82. package/dist/components/exam/ExamineExam.js.map +1 -0
  83. package/dist/components/exam/FinishExam.d.ts +5 -0
  84. package/dist/components/exam/FinishExam.d.ts.map +1 -0
  85. package/dist/components/exam/FinishExam.js +17 -0
  86. package/dist/components/exam/FinishExam.js.map +1 -0
  87. package/dist/components/grading/reactAnnotation.d.ts +4 -0
  88. package/dist/components/grading/reactAnnotation.d.ts.map +1 -0
  89. package/dist/components/grading/reactAnnotation.js +54 -0
  90. package/dist/components/grading/reactAnnotation.js.map +1 -0
  91. package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +1 -1
  92. package/dist/components/grading-instructions/EditableGradingInstruction.js +56 -42
  93. package/dist/components/grading-instructions/EditableGradingInstruction.js.map +1 -1
  94. package/dist/components/grading-instructions/GradingInstructionProvider.d.ts +1 -1
  95. package/dist/components/grading-instructions/GradingInstructionProvider.d.ts.map +1 -1
  96. package/dist/components/grading-instructions/GradingInstructionProvider.js +2 -2
  97. package/dist/components/grading-instructions/GradingInstructionProvider.js.map +1 -1
  98. package/dist/components/grading-instructions/GradingInstructions.d.ts +1 -1
  99. package/dist/components/grading-instructions/GradingInstructions.js +2 -2
  100. package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
  101. package/dist/components/grading-instructions/SlateTableEditor.d.ts +22 -0
  102. package/dist/components/grading-instructions/SlateTableEditor.d.ts.map +1 -0
  103. package/dist/components/grading-instructions/SlateTableEditor.js +44 -0
  104. package/dist/components/grading-instructions/SlateTableEditor.js.map +1 -0
  105. package/dist/components/grading-instructions/SlateUtils.d.ts +5 -0
  106. package/dist/components/grading-instructions/SlateUtils.d.ts.map +1 -0
  107. package/dist/components/grading-instructions/SlateUtils.js +28 -0
  108. package/dist/components/grading-instructions/SlateUtils.js.map +1 -0
  109. package/dist/components/grading-instructions/editor/FormatButton.d.ts +3 -2
  110. package/dist/components/grading-instructions/editor/FormatButton.d.ts.map +1 -1
  111. package/dist/components/grading-instructions/editor/FormatButton.js +5 -2
  112. package/dist/components/grading-instructions/editor/FormatButton.js.map +1 -1
  113. package/dist/components/grading-instructions/editor/Formula.d.ts +1 -0
  114. package/dist/components/grading-instructions/editor/Formula.d.ts.map +1 -1
  115. package/dist/components/grading-instructions/editor/Formula.js +18 -4
  116. package/dist/components/grading-instructions/editor/Formula.js.map +1 -1
  117. package/dist/components/grading-instructions/editor/ImageUploadButton.d.ts +6 -0
  118. package/dist/components/grading-instructions/editor/ImageUploadButton.d.ts.map +1 -0
  119. package/dist/components/grading-instructions/editor/ImageUploadButton.js +77 -0
  120. package/dist/components/grading-instructions/editor/ImageUploadButton.js.map +1 -0
  121. package/dist/components/grading-instructions/editor/MathPopup.d.ts +10 -0
  122. package/dist/components/grading-instructions/editor/MathPopup.d.ts.map +1 -0
  123. package/dist/components/grading-instructions/editor/MathPopup.js +94 -0
  124. package/dist/components/grading-instructions/editor/MathPopup.js.map +1 -0
  125. package/dist/components/grading-instructions/editor/Menu.d.ts +1 -0
  126. package/dist/components/grading-instructions/editor/Menu.d.ts.map +1 -0
  127. package/dist/components/grading-instructions/editor/Menu.js +2 -0
  128. package/dist/components/grading-instructions/editor/Menu.js.map +1 -0
  129. package/dist/components/grading-instructions/editor/NBSP.d.ts.map +1 -1
  130. package/dist/components/grading-instructions/editor/NBSP.js +1 -1
  131. package/dist/components/grading-instructions/editor/NBSP.js.map +1 -1
  132. package/dist/components/grading-instructions/editor/Table.d.ts +4 -1
  133. package/dist/components/grading-instructions/editor/Table.d.ts.map +1 -1
  134. package/dist/components/grading-instructions/editor/Table.js +82 -28
  135. package/dist/components/grading-instructions/editor/Table.js.map +1 -1
  136. package/dist/components/grading-instructions/editor/math-svg.d.ts +2 -0
  137. package/dist/components/grading-instructions/editor/math-svg.d.ts.map +1 -0
  138. package/dist/components/grading-instructions/editor/math-svg.js +22 -0
  139. package/dist/components/grading-instructions/editor/math-svg.js.map +1 -0
  140. package/dist/components/grading-instructions/editor/math.d.ts +4 -0
  141. package/dist/components/grading-instructions/editor/math.d.ts.map +1 -0
  142. package/dist/components/grading-instructions/editor/math.js +55 -0
  143. package/dist/components/grading-instructions/editor/math.js.map +1 -0
  144. package/dist/components/grading-instructions/editor/noWrap.d.ts +3 -0
  145. package/dist/components/grading-instructions/editor/noWrap.d.ts.map +1 -0
  146. package/dist/components/grading-instructions/editor/noWrap.js +13 -0
  147. package/dist/components/grading-instructions/editor/noWrap.js.map +1 -0
  148. package/dist/components/grading-instructions/editor/schemas/image-schema.d.ts +4 -0
  149. package/dist/components/grading-instructions/editor/schemas/image-schema.d.ts.map +1 -0
  150. package/dist/components/grading-instructions/editor/schemas/image-schema.js +47 -0
  151. package/dist/components/grading-instructions/editor/schemas/image-schema.js.map +1 -0
  152. package/dist/components/grading-instructions/editor/spanWithClass.d.ts +3 -0
  153. package/dist/components/grading-instructions/editor/spanWithClass.d.ts.map +1 -0
  154. package/dist/components/grading-instructions/editor/spanWithClass.js +19 -0
  155. package/dist/components/grading-instructions/editor/spanWithClass.js.map +1 -0
  156. package/dist/components/grading-instructions/prosemirror.d.ts +8 -0
  157. package/dist/components/grading-instructions/prosemirror.d.ts.map +1 -0
  158. package/dist/components/grading-instructions/prosemirror.js +108 -0
  159. package/dist/components/grading-instructions/prosemirror.js.map +1 -0
  160. package/dist/components/results/isExamFinishPageHook.d.ts +2 -0
  161. package/dist/components/results/isExamFinishPageHook.d.ts.map +1 -0
  162. package/dist/components/results/isExamFinishPageHook.js +7 -0
  163. package/dist/components/results/isExamFinishPageHook.js.map +1 -0
  164. package/dist/components/shared/CreateAnnotationPopup.d.ts +6 -0
  165. package/dist/components/shared/CreateAnnotationPopup.d.ts.map +1 -0
  166. package/dist/components/shared/CreateAnnotationPopup.js +11 -0
  167. package/dist/components/shared/CreateAnnotationPopup.js.map +1 -0
  168. package/dist/components/shared/PopupUtils.d.ts +4 -0
  169. package/dist/components/shared/PopupUtils.d.ts.map +1 -0
  170. package/dist/components/shared/PopupUtils.js +26 -0
  171. package/dist/components/shared/PopupUtils.js.map +1 -0
  172. package/dist/main-bundle.js +1 -1
  173. package/dist/main-bundle.js.LICENSE.txt +1 -1
  174. package/dist/main.css +1 -1
  175. package/dist/store/listenerMiddleware.d.ts +89 -0
  176. package/dist/store/listenerMiddleware.d.ts.map +1 -0
  177. package/dist/store/listenerMiddleware.js +6 -0
  178. package/dist/store/listenerMiddleware.js.map +1 -0
  179. package/package.json +2 -2
  180. package/dist/__tests__/editor/nbsp.test.js.map +0 -1
  181. package/dist/components/Localization.d.ts +0 -5
  182. package/dist/components/Localization.d.ts.map +0 -1
  183. package/dist/components/Localization.js +0 -9
  184. package/dist/components/Localization.js.map +0 -1
  185. package/dist/components/grading-instructions/GradingInstruction.d.ts +0 -7
  186. package/dist/components/grading-instructions/GradingInstruction.d.ts.map +0 -1
  187. package/dist/components/grading-instructions/GradingInstruction.js +0 -9
  188. package/dist/components/grading-instructions/GradingInstruction.js.map +0 -1
  189. package/dist/components/grading-instructions/editor/CurrentElement.d.ts +0 -2
  190. package/dist/components/grading-instructions/editor/CurrentElement.d.ts.map +0 -1
  191. package/dist/components/grading-instructions/editor/CurrentElement.js +0 -8
  192. package/dist/components/grading-instructions/editor/CurrentElement.js.map +0 -1
  193. package/dist/components/grading-instructions/editor/CurrentLocalization.d.ts +0 -5
  194. package/dist/components/grading-instructions/editor/CurrentLocalization.d.ts.map +0 -1
  195. package/dist/components/grading-instructions/editor/CurrentLocalization.js +0 -17
  196. package/dist/components/grading-instructions/editor/CurrentLocalization.js.map +0 -1
  197. package/dist/components/grading-instructions/editor/Localization.d.ts +0 -3
  198. package/dist/components/grading-instructions/editor/Localization.d.ts.map +0 -1
  199. package/dist/components/grading-instructions/editor/Localization.js +0 -36
  200. package/dist/components/grading-instructions/editor/Localization.js.map +0 -1
  201. package/dist/components/grading-instructions/editor/localizatio.d.ts +0 -3
  202. package/dist/components/grading-instructions/editor/localizatio.d.ts.map +0 -1
  203. package/dist/components/grading-instructions/editor/localizatio.js +0 -36
  204. package/dist/components/grading-instructions/editor/localizatio.js.map +0 -1
  205. package/dist/components/grading-instructions/editor/localizationSpan.d.ts +0 -3
  206. package/dist/components/grading-instructions/editor/localizationSpan.d.ts.map +0 -1
  207. package/dist/components/grading-instructions/editor/localizationSpan.js +0 -36
  208. package/dist/components/grading-instructions/editor/localizationSpan.js.map +0 -1
  209. package/dist/components/grading-instructions/editor/spanWithPath.d.ts +0 -3
  210. package/dist/components/grading-instructions/editor/spanWithPath.d.ts.map +0 -1
  211. package/dist/components/grading-instructions/editor/spanWithPath.js +0 -24
  212. package/dist/components/grading-instructions/editor/spanWithPath.js.map +0 -1
  213. /package/dist/__tests__/editor/{nbsp.test.d.ts → NBSP.test.d.ts} +0 -0
  214. /package/dist/__tests__/editor/{nbsp.test.d.ts.map → NBSP.test.d.ts.map} +0 -0
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- function CurrentElement({ currentElement }) {
3
- return (React.createElement("div", null,
4
- props.currentElement.getAttribute('lang'),
5
- " ",
6
- props.currentElement.getAttribute('exam-type')));
7
- }
8
- //# sourceMappingURL=CurrentElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CurrentElement.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/CurrentElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,SAAS,cAAc,CAAC,EAAE,cAAc,EAAsC;IAC5E,OAAO,CACL;QACG,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,MAAM,CAAC;;QAAG,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,WAAW,CAAC,CACvF,CACP,CAAA;AACH,CAAC"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare function CurrentLocalization({ currentElement }: {
3
- currentElement: Element | null;
4
- }): React.JSX.Element;
5
- //# sourceMappingURL=CurrentLocalization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CurrentLocalization.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/CurrentLocalization.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,wBAAgB,mBAAmB,CAAC,EAAE,cAAc,EAAE,EAAE;IAAE,cAAc,EAAE,OAAO,GAAG,IAAI,CAAA;CAAE,qBAYzF"}
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- export function CurrentLocalization({ currentElement }) {
3
- var _a;
4
- const locale = currentElement === null || currentElement === void 0 ? void 0 : currentElement.getAttribute('lang');
5
- const lang = (_a = locale === null || locale === void 0 ? void 0 : locale.split('-')[0]) === null || _a === void 0 ? void 0 : _a.toUpperCase();
6
- const examType = currentElement === null || currentElement === void 0 ? void 0 : currentElement.getAttribute('exam-type');
7
- return (React.createElement("span", { className: "element-target" },
8
- React.createElement("span", null, "Kohdennus:"),
9
- React.createElement("span", { className: "enabled" }, lang ? `${lang} yleinen` : 'Yleinen'),
10
- React.createElement("span", { className: examType == 'hearing-impaired' ? 'enabled' : 'disabled' },
11
- lang,
12
- " / KV"),
13
- React.createElement("span", { className: examType == 'visually-impaired' ? 'enabled' : 'disabled' },
14
- lang,
15
- " / NV")));
16
- }
17
- //# sourceMappingURL=CurrentLocalization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CurrentLocalization.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/CurrentLocalization.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,UAAU,mBAAmB,CAAC,EAAE,cAAc,EAAsC;;IACxF,MAAM,MAAM,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,YAAY,CAAC,MAAM,CAAC,CAAA;IACnD,MAAM,IAAI,GAAG,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,0CAAE,WAAW,EAAE,CAAA;IACjD,MAAM,QAAQ,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,YAAY,CAAC,WAAW,CAAC,CAAA;IAC1D,OAAO,CACL,8BAAM,SAAS,EAAC,gBAAgB;QAC9B,+CAAuB;QACvB,8BAAM,SAAS,EAAC,SAAS,IAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,SAAS,CAAQ;QACvE,8BAAM,SAAS,EAAE,QAAQ,IAAI,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU;YAAG,IAAI;oBAAa;QAC5F,8BAAM,SAAS,EAAE,QAAQ,IAAI,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU;YAAG,IAAI;oBAAa,CACxF,CACR,CAAA;AACH,CAAC"}
@@ -1,3 +0,0 @@
1
- import { MarkSpec } from 'prosemirror-model';
2
- export declare function localization(hideable: boolean): MarkSpec;
3
- //# sourceMappingURL=localization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"localization.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/localization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAElD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,CAiCxD"}
@@ -1,36 +0,0 @@
1
- export function localization(hideable) {
2
- return {
3
- localization: {
4
- attrs: {
5
- lang: { default: null },
6
- examType: { default: null },
7
- hidden: { default: null }
8
- },
9
- parseDOM: [
10
- {
11
- tag: '[e-localization]',
12
- getAttrs(dom) {
13
- var _a, _b, _c;
14
- return {
15
- lang: (_a = dom.getAttribute('lang')) !== null && _a !== void 0 ? _a : null,
16
- examType: (_b = dom.getAttribute('exam-type')) !== null && _b !== void 0 ? _b : null,
17
- hidden: hideable ? ((_c = dom.getAttribute('hidden')) !== null && _c !== void 0 ? _c : null) : null
18
- };
19
- }
20
- }
21
- ],
22
- toDOM(node) {
23
- return [
24
- 'e:localization',
25
- {
26
- lang: node.attrs.lang,
27
- 'exam-type': node.attrs.examType,
28
- hidden: hideable ? node.attrs.hidden : null
29
- },
30
- 0
31
- ];
32
- }
33
- }
34
- };
35
- }
36
- //# sourceMappingURL=localization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"localization.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/localization.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,YAAY,CAAC,QAAiB;IAC5C,OAAO;QACL,YAAY,EAAE;YACZ,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;gBACvB,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;gBAC3B,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;aAC1B;YACD,QAAQ,EAAE;gBACR;oBACE,GAAG,EAAE,kBAAkB;oBACvB,QAAQ,CAAC,GAAgB;;wBACvB,OAAO;4BACL,IAAI,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,mCAAI,IAAI;4BACtC,QAAQ,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,mCAAI,IAAI;4BAC/C,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAA,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC,mCAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;yBAC/D,CAAA;oBACH,CAAC;iBACF;aACF;YACD,KAAK,CAAC,IAAU;gBACd,OAAO;oBACL,gBAAgB;oBAChB;wBACE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAc;wBAC/B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,QAAkB;wBAC1C,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAE,IAAI,CAAC,KAAK,CAAC,MAAiB,CAAC,CAAC,CAAC,IAAI;qBACxD;oBACD,CAAC;iBACF,CAAA;YACH,CAAC;SACF;KACF,CAAA;AACH,CAAC"}
@@ -1,3 +0,0 @@
1
- import { MarkSpec } from 'prosemirror-model';
2
- export declare function localization(hideable: boolean): MarkSpec;
3
- //# sourceMappingURL=localizatio.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"localizatio.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/localizatio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAElD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,CAiCxD"}
@@ -1,36 +0,0 @@
1
- export function localization(hideable) {
2
- return {
3
- localization: {
4
- attrs: {
5
- lang: { default: null },
6
- examType: { default: null },
7
- hidden: { default: null }
8
- },
9
- parseDOM: [
10
- {
11
- tag: '[e-localization]',
12
- getAttrs(dom) {
13
- var _a, _b, _c;
14
- return {
15
- lang: (_a = dom.getAttribute('lang')) !== null && _a !== void 0 ? _a : null,
16
- examType: (_b = dom.getAttribute('exam-type')) !== null && _b !== void 0 ? _b : null,
17
- hidden: hideable ? ((_c = dom.getAttribute('hidden')) !== null && _c !== void 0 ? _c : null) : null
18
- };
19
- }
20
- }
21
- ],
22
- toDOM(node) {
23
- return [
24
- 'e:localization',
25
- {
26
- lang: node.attrs.lang,
27
- 'exam-type': node.attrs.examType,
28
- hidden: hideable ? node.attrs.hidden : null
29
- },
30
- 0
31
- ];
32
- }
33
- }
34
- };
35
- }
36
- //# sourceMappingURL=localizatio.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"localizatio.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/localizatio.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,YAAY,CAAC,QAAiB;IAC5C,OAAO;QACL,YAAY,EAAE;YACZ,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;gBACvB,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;gBAC3B,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;aAC1B;YACD,QAAQ,EAAE;gBACR;oBACE,GAAG,EAAE,kBAAkB;oBACvB,QAAQ,CAAC,GAAgB;;wBACvB,OAAO;4BACL,IAAI,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,mCAAI,IAAI;4BACtC,QAAQ,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,mCAAI,IAAI;4BAC/C,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAA,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC,mCAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;yBAC/D,CAAA;oBACH,CAAC;iBACF;aACF;YACD,KAAK,CAAC,IAAU;gBACd,OAAO;oBACL,gBAAgB;oBAChB;wBACE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI;wBACrB,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ;wBAChC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI;qBAC5C;oBACD,CAAC;iBACF,CAAA;YACH,CAAC;SACF;KACF,CAAA;AACH,CAAC"}
@@ -1,3 +0,0 @@
1
- import { MarkSpec } from 'prosemirror-model';
2
- export declare function localization(hideable: boolean): MarkSpec;
3
- //# sourceMappingURL=localizationSpan.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"localizationSpan.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/localizationSpan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAElD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,CAiCxD"}
@@ -1,36 +0,0 @@
1
- export function localization(hideable) {
2
- return {
3
- localization: {
4
- attrs: {
5
- lang: { default: null },
6
- examType: { default: null },
7
- hidden: { default: null }
8
- },
9
- parseDOM: [
10
- {
11
- tag: '[e-localization]',
12
- getAttrs(dom) {
13
- var _a, _b, _c;
14
- return {
15
- lang: (_a = dom.getAttribute('lang')) !== null && _a !== void 0 ? _a : null,
16
- examType: (_b = dom.getAttribute('exam-type')) !== null && _b !== void 0 ? _b : null,
17
- hidden: hideable ? ((_c = dom.getAttribute('hidden')) !== null && _c !== void 0 ? _c : null) : null
18
- };
19
- }
20
- }
21
- ],
22
- toDOM(node) {
23
- return [
24
- 'e:localization',
25
- {
26
- lang: node.attrs.lang,
27
- 'exam-type': node.attrs.examType,
28
- hidden: hideable ? node.attrs.hidden : null
29
- },
30
- 0
31
- ];
32
- }
33
- }
34
- };
35
- }
36
- //# sourceMappingURL=localizationSpan.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"localizationSpan.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/localizationSpan.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,YAAY,CAAC,QAAiB;IAC5C,OAAO;QACL,YAAY,EAAE;YACZ,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;gBACvB,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;gBAC3B,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;aAC1B;YACD,QAAQ,EAAE;gBACR;oBACE,GAAG,EAAE,kBAAkB;oBACvB,QAAQ,CAAC,GAAgB;;wBACvB,OAAO;4BACL,IAAI,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,mCAAI,IAAI;4BACtC,QAAQ,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,mCAAI,IAAI;4BAC/C,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAA,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC,mCAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;yBAC/D,CAAA;oBACH,CAAC;iBACF;aACF;YACD,KAAK,CAAC,IAAU;gBACd,OAAO;oBACL,gBAAgB;oBAChB;wBACE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI;wBACrB,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ;wBAChC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI;qBAC5C;oBACD,CAAC;iBACF,CAAA;YACH,CAAC;SACF;KACF,CAAA;AACH,CAAC"}
@@ -1,3 +0,0 @@
1
- import { MarkSpec } from 'prosemirror-model';
2
- export declare const spanWithNowrap: MarkSpec;
3
- //# sourceMappingURL=spanWithPath.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spanWithPath.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/spanWithPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAElD,eAAO,MAAM,cAAc,EAAE,QAqB5B,CAAA"}
@@ -1,24 +0,0 @@
1
- export const spanWithNowrap = {
2
- spanWithClass: {
3
- attrs: {
4
- class: { default: null }
5
- },
6
- parseDOM: [
7
- {
8
- tag: 'span[path]',
9
- getAttrs(dom) {
10
- var _a, _b, _c;
11
- return {
12
- path: (_a = dom.getAttribute('path')) !== null && _a !== void 0 ? _a : null,
13
- lang: (_b = dom.getAttribute('lang')) !== null && _b !== void 0 ? _b : null,
14
- examType: (_c = dom.getAttribute('exam-type')) !== null && _c !== void 0 ? _c : null
15
- };
16
- }
17
- }
18
- ],
19
- toDOM(node) {
20
- return ['span', { path: node.attrs.path, lang: node.attrs.lang, 'exam-type': node.attrs.examType }, 0];
21
- }
22
- }
23
- };
24
- //# sourceMappingURL=spanWithPath.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spanWithPath.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/spanWithPath.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAa;IACtC,aAAa,EAAE;QACb,KAAK,EAAE;YACL,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;SACzB;QACD,QAAQ,EAAE;YACR;gBACE,GAAG,EAAE,YAAY;gBACjB,QAAQ,CAAC,GAAgB;;oBACvB,OAAO;wBACL,IAAI,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,mCAAI,IAAI;wBACtC,IAAI,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,mCAAI,IAAI;wBACtC,QAAQ,EAAE,MAAA,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,mCAAI,IAAI;qBAChD,CAAA;gBACH,CAAC;aACF;SACF;QACD,KAAK,CAAC,IAAU;YACd,OAAO,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAc,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAA;QAClH,CAAC;KACF;CACF,CAAA"}