@digabi/exam-engine-core 22.1.2-alpha.0 → 22.1.3-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. package/dist/__tests__/EditableGradingInstruction.test.js +26 -26
  2. package/dist/__tests__/EditableGradingInstruction.test.js.map +1 -1
  3. package/dist/__tests__/editor/{NBSP.test.js → nbsp.test.js} +1 -1
  4. package/dist/__tests__/editor/{NBSP.test.js.map → nbsp.test.js.map} +1 -1
  5. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  6. package/dist/components/Localization.d.ts +5 -0
  7. package/dist/components/Localization.d.ts.map +1 -0
  8. package/dist/components/Localization.js +9 -0
  9. package/dist/components/Localization.js.map +1 -0
  10. package/dist/components/context/AttachmentContext.d.ts.map +1 -1
  11. package/dist/components/context/ExamContext.d.ts.map +1 -1
  12. package/dist/components/context/QuestionContext.d.ts.map +1 -1
  13. package/dist/components/context/ResultsContext.d.ts.map +1 -1
  14. package/dist/components/context/SectionContext.d.ts.map +1 -1
  15. package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +1 -1
  16. package/dist/components/grading-instructions/EditableGradingInstruction.js +22 -15
  17. package/dist/components/grading-instructions/EditableGradingInstruction.js.map +1 -1
  18. package/dist/components/grading-instructions/ExamGradingInstruction.d.ts.map +1 -1
  19. package/dist/components/grading-instructions/ExamGradingInstruction.js +2 -7
  20. package/dist/components/grading-instructions/ExamGradingInstruction.js.map +1 -1
  21. package/dist/components/grading-instructions/GradingInstruction.d.ts +7 -0
  22. package/dist/components/grading-instructions/GradingInstruction.d.ts.map +1 -0
  23. package/dist/components/grading-instructions/GradingInstruction.js +9 -0
  24. package/dist/components/grading-instructions/GradingInstruction.js.map +1 -0
  25. package/dist/components/grading-instructions/GradingInstructions.d.ts +1 -1
  26. package/dist/components/grading-instructions/editor/Localization.d.ts +3 -0
  27. package/dist/components/grading-instructions/editor/Localization.d.ts.map +1 -0
  28. package/dist/components/grading-instructions/editor/Localization.js +36 -0
  29. package/dist/components/grading-instructions/editor/Localization.js.map +1 -0
  30. package/dist/components/grading-instructions/editor/Table.js +1 -1
  31. package/dist/components/grading-instructions/editor/Table.js.map +1 -1
  32. package/dist/components/grading-instructions/editor/localizatio.d.ts +3 -0
  33. package/dist/components/grading-instructions/editor/localizatio.d.ts.map +1 -0
  34. package/dist/components/grading-instructions/editor/localizatio.js +36 -0
  35. package/dist/components/grading-instructions/editor/localizatio.js.map +1 -0
  36. package/dist/components/grading-instructions/editor/localizationSpan.d.ts +3 -0
  37. package/dist/components/grading-instructions/editor/localizationSpan.d.ts.map +1 -0
  38. package/dist/components/grading-instructions/editor/localizationSpan.js +36 -0
  39. package/dist/components/grading-instructions/editor/localizationSpan.js.map +1 -0
  40. package/dist/components/grading-instructions/editor/spanWithNowrap.d.ts +3 -0
  41. package/dist/components/grading-instructions/editor/spanWithNowrap.d.ts.map +1 -0
  42. package/dist/components/grading-instructions/editor/{spanWithClass.js → spanWithNowrap.js} +3 -3
  43. package/dist/components/grading-instructions/editor/spanWithNowrap.js.map +1 -0
  44. package/dist/components/grading-instructions/editor/spanWithPath.d.ts +3 -0
  45. package/dist/components/grading-instructions/editor/spanWithPath.d.ts.map +1 -0
  46. package/dist/components/grading-instructions/editor/spanWithPath.js +24 -0
  47. package/dist/components/grading-instructions/editor/spanWithPath.js.map +1 -0
  48. package/dist/main-bundle.js +1 -1
  49. package/dist/main-bundle.js.LICENSE.txt +1 -1
  50. package/dist/main.css +1 -1
  51. package/package.json +2 -2
  52. package/dist/__tests__/EditableGradingInsatruction.test.d.ts +0 -1
  53. package/dist/__tests__/EditableGradingInsatruction.test.d.ts.map +0 -1
  54. package/dist/__tests__/EditableGradingInsatruction.test.js +0 -2
  55. package/dist/__tests__/EditableGradingInsatruction.test.js.map +0 -1
  56. package/dist/__tests__/editor/no-wrap.test.d.ts +0 -2
  57. package/dist/__tests__/editor/no-wrap.test.d.ts.map +0 -1
  58. package/dist/__tests__/editor/no-wrap.test.js +0 -43
  59. package/dist/__tests__/editor/no-wrap.test.js.map +0 -1
  60. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts +0 -1
  61. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts.map +0 -1
  62. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js +0 -2
  63. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js.map +0 -1
  64. package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts +0 -1
  65. package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts.map +0 -1
  66. package/dist/__tests__/utils/renderEditableGradingInstructions.js +0 -2
  67. package/dist/__tests__/utils/renderEditableGradingInstructions.js.map +0 -1
  68. package/dist/components/LexicalEditor.d.ts +0 -3
  69. package/dist/components/LexicalEditor.d.ts.map +0 -1
  70. package/dist/components/LexicalEditor.js +0 -44
  71. package/dist/components/LexicalEditor.js.map +0 -1
  72. package/dist/components/RTE.d.ts +0 -3
  73. package/dist/components/RTE.d.ts.map +0 -1
  74. package/dist/components/RTE.js +0 -23
  75. package/dist/components/RTE.js.map +0 -1
  76. package/dist/components/TablePlugin.d.ts +0 -1
  77. package/dist/components/TablePlugin.d.ts.map +0 -1
  78. package/dist/components/TablePlugin.js +0 -2
  79. package/dist/components/TablePlugin.js.map +0 -1
  80. package/dist/components/ToolBarPlugin.d.ts +0 -10
  81. package/dist/components/ToolBarPlugin.d.ts.map +0 -1
  82. package/dist/components/ToolBarPlugin.js +0 -111
  83. package/dist/components/ToolBarPlugin.js.map +0 -1
  84. package/dist/components/context/AnnotationContext.d.ts +0 -8
  85. package/dist/components/context/AnnotationContext.d.ts.map +0 -1
  86. package/dist/components/context/AnnotationContext.js +0 -3
  87. package/dist/components/context/AnnotationContext.js.map +0 -1
  88. package/dist/components/exam/ExamineExam.d.ts +0 -5
  89. package/dist/components/exam/ExamineExam.d.ts.map +0 -1
  90. package/dist/components/exam/ExamineExam.js +0 -20
  91. package/dist/components/exam/ExamineExam.js.map +0 -1
  92. package/dist/components/exam/FinishExam.d.ts +0 -5
  93. package/dist/components/exam/FinishExam.d.ts.map +0 -1
  94. package/dist/components/exam/FinishExam.js +0 -17
  95. package/dist/components/exam/FinishExam.js.map +0 -1
  96. package/dist/components/grading/reactAnnotation.d.ts +0 -4
  97. package/dist/components/grading/reactAnnotation.d.ts.map +0 -1
  98. package/dist/components/grading/reactAnnotation.js +0 -54
  99. package/dist/components/grading/reactAnnotation.js.map +0 -1
  100. package/dist/components/grading-instructions/SlateTableEditor.d.ts +0 -22
  101. package/dist/components/grading-instructions/SlateTableEditor.d.ts.map +0 -1
  102. package/dist/components/grading-instructions/SlateTableEditor.js +0 -44
  103. package/dist/components/grading-instructions/SlateTableEditor.js.map +0 -1
  104. package/dist/components/grading-instructions/SlateUtils.d.ts +0 -5
  105. package/dist/components/grading-instructions/SlateUtils.d.ts.map +0 -1
  106. package/dist/components/grading-instructions/SlateUtils.js +0 -28
  107. package/dist/components/grading-instructions/SlateUtils.js.map +0 -1
  108. package/dist/components/grading-instructions/editor/MathPopup.d.ts +0 -10
  109. package/dist/components/grading-instructions/editor/MathPopup.d.ts.map +0 -1
  110. package/dist/components/grading-instructions/editor/MathPopup.js +0 -94
  111. package/dist/components/grading-instructions/editor/MathPopup.js.map +0 -1
  112. package/dist/components/grading-instructions/editor/math-svg.d.ts +0 -2
  113. package/dist/components/grading-instructions/editor/math-svg.d.ts.map +0 -1
  114. package/dist/components/grading-instructions/editor/math-svg.js +0 -22
  115. package/dist/components/grading-instructions/editor/math-svg.js.map +0 -1
  116. package/dist/components/grading-instructions/editor/math.d.ts +0 -4
  117. package/dist/components/grading-instructions/editor/math.d.ts.map +0 -1
  118. package/dist/components/grading-instructions/editor/math.js +0 -55
  119. package/dist/components/grading-instructions/editor/math.js.map +0 -1
  120. package/dist/components/grading-instructions/editor/noWrap.d.ts +0 -3
  121. package/dist/components/grading-instructions/editor/noWrap.d.ts.map +0 -1
  122. package/dist/components/grading-instructions/editor/noWrap.js +0 -13
  123. package/dist/components/grading-instructions/editor/noWrap.js.map +0 -1
  124. package/dist/components/grading-instructions/editor/spanWithClass.d.ts +0 -3
  125. package/dist/components/grading-instructions/editor/spanWithClass.d.ts.map +0 -1
  126. package/dist/components/grading-instructions/editor/spanWithClass.js.map +0 -1
  127. package/dist/components/grading-instructions/prosemirror.d.ts +0 -8
  128. package/dist/components/grading-instructions/prosemirror.d.ts.map +0 -1
  129. package/dist/components/grading-instructions/prosemirror.js +0 -108
  130. package/dist/components/grading-instructions/prosemirror.js.map +0 -1
  131. package/dist/components/results/isExamFinishPageHook.d.ts +0 -2
  132. package/dist/components/results/isExamFinishPageHook.d.ts.map +0 -1
  133. package/dist/components/results/isExamFinishPageHook.js +0 -7
  134. package/dist/components/results/isExamFinishPageHook.js.map +0 -1
  135. package/dist/components/shared/CreateAnnotationPopup.d.ts +0 -6
  136. package/dist/components/shared/CreateAnnotationPopup.d.ts.map +0 -1
  137. package/dist/components/shared/CreateAnnotationPopup.js +0 -11
  138. package/dist/components/shared/CreateAnnotationPopup.js.map +0 -1
  139. package/dist/components/shared/PopupUtils.d.ts +0 -4
  140. package/dist/components/shared/PopupUtils.d.ts.map +0 -1
  141. package/dist/components/shared/PopupUtils.js +0 -26
  142. package/dist/components/shared/PopupUtils.js.map +0 -1
  143. package/dist/store/listenerMiddleware.d.ts +0 -89
  144. package/dist/store/listenerMiddleware.d.ts.map +0 -1
  145. package/dist/store/listenerMiddleware.js +0 -6
  146. package/dist/store/listenerMiddleware.js.map +0 -1
  147. /package/dist/__tests__/editor/{NBSP.test.d.ts → nbsp.test.d.ts} +0 -0
  148. /package/dist/__tests__/editor/{NBSP.test.d.ts.map → nbsp.test.d.ts.map} +0 -0
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ExamComponentProps } from '../createRenderChildNodes';
3
+ declare const Localization: React.FunctionComponent<ExamComponentProps>;
4
+ export default Localization;
5
+ //# sourceMappingURL=Localization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Localization.d.ts","sourceRoot":"","sources":["../../src/components/Localization.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAI9D,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAW7D,CAAA;AACD,eAAe,YAAY,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React, { useContext } from 'react';
2
+ import { GradingInstructionContext } from './context/GradingInstructionContext';
3
+ import EditableGradingInstruction from './grading-instructions/EditableGradingInstruction';
4
+ const Localization = ({ element, renderChildNodes }) => {
5
+ const { editable } = useContext(GradingInstructionContext);
6
+ return (React.createElement("div", { className: "e-exam-grading-instruction-localization notification e-pad-4", "data-annotation-anchor": "exam-grading-instruction-localization" }, editable ? React.createElement(EditableGradingInstruction, { element: element }) : renderChildNodes(element)));
7
+ };
8
+ export default Localization;
9
+ //# sourceMappingURL=Localization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Localization.js","sourceRoot":"","sources":["../../src/components/Localization.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAA;AAC/E,OAAO,0BAA0B,MAAM,mDAAmD,CAAA;AAE1F,MAAM,YAAY,GAAgD,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAClG,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAA;IAE1D,OAAO,CACL,6BACE,SAAS,EAAC,8DAA8D,4BACjD,uCAAuC,IAE7D,QAAQ,CAAC,CAAC,CAAC,oBAAC,0BAA0B,IAAC,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CACpF,CACP,CAAA;AACH,CAAC,CAAA;AACD,eAAe,YAAY,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/AttachmentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,UAAU,EAAE,KAAK,CAAC;IAAC,aAAa,EAAE,IAAI,CAAA;CAAE,GAC/D;IAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,UAAU,EAAE,IAAI,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAA;AAEpE,eAAO,MAAM,iBAAiB,kCAAkE,CAAA;AAEhG,eAAO,MAAM,qBAAqB,mEASjC,CAAA"}
1
+ {"version":3,"file":"AttachmentContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/AttachmentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,UAAU,EAAE,KAAK,CAAC;IAAC,aAAa,EAAE,IAAI,CAAA;CAAE,GAC/D;IAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,UAAU,EAAE,IAAI,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAA;AAEpE,eAAO,MAAM,iBAAiB,kCAAkE,CAAA;AAEhG,eAAO,MAAM,qBAAqB,cAR2B,MAE5D,aAAa,UAAO,MAAO,aACnB,KAcR,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExamContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/ExamContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,WAAW;IAC1B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,aAAa,EAAE,aAAa,CAAA;CAC7B;AAED,eAAO,MAAM,WAAW,4BAAyC,CAAA;AAEjE,eAAO,MAAM,eAAe,mEAO1B,CAAA"}
1
+ {"version":3,"file":"ExamContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/ExamContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,WAAW,WAAW;IAC1B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,aAAa,EAAE,aAAa,CAAA;CAC7B;AAED,eAAO,MAAM,WAAW,4BAAyC,CAAA;AAEjE,eAAO,MAAM,eAAe,cAPJ,MACtB,aAAW,UAAO,MAAO,aAClB,KAYP,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QuestionContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/QuestionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,OAAO,CAAA;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,OAAO,EAAE,CAAA;IACzB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,eAAO,MAAM,eAAe,gCAA8D,CAAA;AAE1F,eAAO,MAAM,mBAAmB,mEAsB9B,CAAA"}
1
+ {"version":3,"file":"QuestionContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/QuestionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,O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CAAC,GAClD,MAAM,CAMR;AAED,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,OAAO,EACxB,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,KAAK,EAAE,EACf,WAAW,EAAE,MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,GAC1C,MAAM,CAgCR"}
@@ -1 +1 @@
1
- {"version":3,"file":"SectionContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/SectionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,OAAO,EAAE,CAAA;CAC1B;AAED,eAAO,MAAM,cAAc,+BAA4D,CAAA;AAEvF,eAAO,MAAM,kBAAkB,mEAkB7B,CAAA"}
1
+ {"version":3,"file":"SectionContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/SectionContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,OAAO,EAAE,CAAA;CAC1B;AAED,eAAO,MAAM,cAAc,+BAA4D,CAAA;AAEvF,eAAO,MAAM,kBAAkB,cAbd,MAAO,aAAa,UAAO,MAAO,aAAa,KA+B9D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"EditableGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAA;AAoCnD,iBAAS,0BAA0B,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,qBA0CpE;AAED,eAAe,0BAA0B,CAAA"}
1
+ {"version":3,"file":"EditableGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAA;AAsCnD,iBAAS,0BAA0B,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,qBA+CpE;AAED,eAAe,0BAA0B,CAAA"}
@@ -11,13 +11,15 @@ import { TableMenu, tableSchema } from './editor/Table';
11
11
  import { FormulaPopup } from './editor/FormulaPopup';
12
12
  import FormatButton from './editor/FormatButton';
13
13
  import { NbspButton, nbspPlugin } from './editor/NBSP';
14
+ import { spanWithNowrap } from './editor/spanWithNowrap';
15
+ import { localization } from './editor/localization';
14
16
  const schema = new Schema({
15
17
  nodes: baseSchema.spec.nodes.append(formulaSchema).append(tableSchema),
16
- marks: baseSchema.spec.marks
18
+ marks: baseSchema.spec.marks.append(spanWithNowrap).append(localization(true))
17
19
  });
18
20
  const outputSchema = new Schema({
19
21
  nodes: baseSchema.spec.nodes.append(formulaOutputSchema).append(tableSchema),
20
- marks: baseSchema.spec.marks
22
+ marks: baseSchema.spec.marks.append(spanWithNowrap).append(localization(false))
21
23
  });
22
24
  function Menu(props) {
23
25
  return (React.createElement(React.Fragment, null,
@@ -35,19 +37,24 @@ function EditableGradingInstruction({ element }) {
35
37
  const formulaPlugin = new FormulaPlugin(setFormulaState);
36
38
  const [state, setState] = useState(EditorState.create({ schema, doc, plugins: [keymap(baseKeymap), formulaPlugin, nbspPlugin] }));
37
39
  return (React.createElement(ProseMirror, { mount: mount, state: state, dispatchTransaction: tr => {
38
- var _a;
39
- setState(s => s.apply(tr));
40
- const fragment = DOMSerializer.fromSchema(outputSchema).serializeFragment(tr.doc.content);
41
- const div = document.createElement('div');
42
- div.appendChild(fragment);
43
- const path = (_a = element.getAttribute('path')) !== null && _a !== void 0 ? _a : '';
44
- if (onContentChange) {
45
- const nbspFixed = div.innerHTML
46
- .replace(/&nbsp;/g, '&#160;')
47
- .replace(/<br>/g, '<br/>')
48
- .replace(/<hr>/g, '<hr/>');
49
- onContentChange(nbspFixed, path);
50
- }
40
+ setState(s => {
41
+ var _a;
42
+ const newContent = s.apply(tr);
43
+ if (tr.docChanged) {
44
+ const fragment = DOMSerializer.fromSchema(outputSchema).serializeFragment(tr.doc.content);
45
+ const div = document.createElement('div');
46
+ div.appendChild(fragment);
47
+ const path = (_a = element.getAttribute('path')) !== null && _a !== void 0 ? _a : '';
48
+ if (onContentChange) {
49
+ const nbspFixed = div.innerHTML
50
+ .replace(/&nbsp;/g, '&#160;')
51
+ .replace(/<br>/g, '<br/>')
52
+ .replace(/<hr>/g, '<hr/>');
53
+ onContentChange(nbspFixed, path);
54
+ }
55
+ }
56
+ return newContent;
57
+ });
51
58
  } },
52
59
  React.createElement(Menu, { setFormulaState: setFormulaState }),
53
60
  React.createElement("div", { ref: setMount }),
@@ -1 +1 @@
1
- {"version":3,"file":"EditableGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACnD,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAA;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,SAAS,IAAI,cAAc,E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S,EAAE,QAAQ,CAAC;qBAC5B,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC;qBACzB,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;gBAC5B,eAAe,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;YAClC,CAAC;QACH,CAAC;QAED,oBAAC,IAAI,IAAC,eAAe,EAAE,eAAe,GAAI;QAC1C,6BAAK,GAAG,EAAE,QAAQ,GAAI;QAErB,YAAY,IAAI,CACf,oBAAC,YAAY,IACX,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,GAAG,EAAE;gBACb,eAAe,CAAC,IAAI,CAAC,CAAA;YACvB,CAAC,GACD,CACH,CACW,CACf,CAAA;AACH,CAAC;AAED,eAAe,0BAA0B,CAAA"}
1
+ {"version":3,"file":"EditableGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/EditableGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACnD,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAA;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AACtF,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAsB,mBAAmB,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AACvH,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,YAA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GAAG,CAAC,SAAS;6BAC5B,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC;6BAC5B,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC;6BACzB,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;wBAC5B,eAAe,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;oBAClC,CAAC;gBACH,CAAC;gBACD,OAAO,UAAU,CAAA;YACnB,CAAC,CAAC,CAAA;QACJ,CAAC;QAED,oBAAC,IAAI,IAAC,eAAe,EAAE,eAAe,GAAI;QAC1C,6BAAK,GAAG,EAAE,QAAQ,GAAI;QAErB,YAAY,IAAI,CACf,oBAAC,YAAY,IACX,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,GAAG,EAAE;gBACb,eAAe,CAAC,IAAI,CAAC,CAAA;YACvB,CAAC,GACD,CACH,CACW,CACf,CAAA;AACH,CAAC;AAED,eAAe,0BAA0B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExamGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/ExamGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAIjE,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAQvE,CAAA;AACD,eAAe,sBAAsB,CAAA"}
1
+ {"version":3,"file":"ExamGradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/ExamGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAIvE,CAAA;AAED,eAAe,sBAAsB,CAAA"}
@@ -1,9 +1,4 @@
1
- import React, { useContext } from 'react';
2
- import { GradingInstructionContext } from '../context/GradingInstructionContext';
3
- import EditableGradingInstruction from './EditableGradingInstruction';
4
- const ExamGradingInstruction = ({ element, renderChildNodes }) => {
5
- const { editable } = useContext(GradingInstructionContext);
6
- return (React.createElement("div", { className: "e-exam-grading-instruction notification e-pad-4", "data-annotation-anchor": "exam-grading-instruction" }, editable ? React.createElement(EditableGradingInstruction, { element: element }) : renderChildNodes(element)));
7
- };
1
+ import React from 'react';
2
+ const ExamGradingInstruction = ({ element, renderChildNodes }) => (React.createElement("div", { className: "e-exam-grading-instruction notification e-pad-4", "data-annotation-anchor": "exam-grading-instruction" }, renderChildNodes(element)));
8
3
  export default ExamGradingInstruction;
9
4
  //# sourceMappingURL=ExamGradingInstruction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExamGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/ExamGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAA;AAChF,OAAO,0BAA0B,MAAM,8BAA8B,CAAA;AAErE,MAAM,sBAAsB,GAAgD,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC5G,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAA;IAE1D,OAAO,CACL,6BAAK,SAAS,EAAC,iDAAiD,4BAAwB,0BAA0B,IAC/G,QAAQ,CAAC,CAAC,CAAC,oBAAC,0BAA0B,IAAC,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CACpF,CACP,CAAA;AACH,CAAC,CAAA;AACD,eAAe,sBAAsB,CAAA"}
1
+ {"version":3,"file":"ExamGradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/ExamGradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,sBAAsB,GAAgD,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,CAC7G,6BAAK,SAAS,EAAC,iDAAiD,4BAAwB,0BAA0B,IAC/G,gBAAgB,CAAC,OAAO,CAAC,CACtB,CACP,CAAA;AAED,eAAe,sBAAsB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare const GradingInstruction: React.FunctionComponent<{
3
+ element: Element;
4
+ instructionType: string;
5
+ }>;
6
+ export default GradingInstruction;
7
+ //# sourceMappingURL=GradingInstruction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GradingInstruction.d.ts","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,CAO9F,CAAA;AAED,eAAe,kBAAkB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { createRenderChildNodes } from '../../createRenderChildNodes';
3
+ import Localization from '../Localization';
4
+ const renderChildNodes = createRenderChildNodes({
5
+ 'e:localization': Localization
6
+ });
7
+ const GradingInstruction = ({ element, instructionType }) => (React.createElement("div", { className: `${instructionType} e-multiline-results-text-answer e-mrg-b-2 e-pad-l-2` }, renderChildNodes(element)));
8
+ export default GradingInstruction;
9
+ //# sourceMappingURL=GradingInstruction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GradingInstruction.js","sourceRoot":"","sources":["../../../src/components/grading-instructions/GradingInstruction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,YAAY,MAAM,iBAAiB,CAAA;AAE1C,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;IAC9C,gBAAgB,EAAE,YAAY;CAC/B,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAA2E,CAAC,EAClG,OAAO,EACP,eAAe,EAChB,EAAE,EAAE,CAAC,CACJ,6BAAK,SAAS,EAAE,GAAG,eAAe,sDAAsD,IACrF,gBAAgB,CAAC,OAAO,CAAC,CACtB,CACP,CAAA;AAED,eAAe,kBAAkB,CAAA"}
@@ -2,6 +2,6 @@ import React from 'react';
2
2
  import { AnnotationProps, CommonExamProps } from '../exam/Exam';
3
3
  import { GradingInstructionProps } from '../context/GradingInstructionContext';
4
4
  export declare const GradingInstructionsPageTitle: React.FunctionComponent;
5
- declare const _default: React.MemoExoticComponent<React.ComponentType<CommonExamProps & AnnotationProps & GradingInstructionProps>>;
5
+ declare const _default: React.MemoExoticComponent<React.ComponentType<CommonExamProps & (AnnotationProps & GradingInstructionProps)>>;
6
6
  export default _default;
7
7
  //# sourceMappingURL=GradingInstructions.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { MarkSpec } from 'prosemirror-model';
2
+ export declare function localization(hideable: boolean): MarkSpec;
3
+ //# sourceMappingURL=localization.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,36 @@
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
@@ -0,0 +1 @@
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"}
@@ -7,7 +7,7 @@ import { faTable } from '@fortawesome/free-solid-svg-icons';
7
7
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
8
8
  const defaultSchema = tableNodes({
9
9
  tableGroup: 'block',
10
- cellContent: 'block+',
10
+ cellContent: 'inline*',
11
11
  cellAttributes: { class: { default: '' } }
12
12
  });
13
13
  export const tableSchema = {
@@ -1 +1 @@
1
- {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAClH,OAAO,EAAE,QAAQ,EAAkB,MAAM,mBAAmB,CAAA;AAC5D,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAe,aAAa,EAAe,MAAM,mBAAmB,CAAA;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAGhE,MAAM,aAAa,GAAG,UAAU,CAAC;IAC/B,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,QAAQ;IACrB,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;CAC3C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,WAAW,GAAa;IACnC,GAAG,aAAa;IAChB,KAAK,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,EAAE,CAAC;QAChD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QAC7B,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,OAAO,EAAE,CAAC;YACxC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,IAAI,CAAC,QAAQ,CACX,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE;oBACpD,GAAG,IAAI,CAAC,KAAK;oBACb,GAAG,EAAE,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,KAAe,EAAE,SAAS,CAAC,EAAE;iBACpE,CAAC,CACH,CAAA;YACH,CAAC;YACD,IAAI,CAAC,KAAK,EAAE,CAAA;YACZ,OAAO,IAAI,CAAA;QACb,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { MarkSpec } from 'prosemirror-model';
2
+ export declare function localization(hideable: boolean): MarkSpec;
3
+ //# sourceMappingURL=localizatio.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,36 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ import { MarkSpec } from 'prosemirror-model';
2
+ export declare function localization(hideable: boolean): MarkSpec;
3
+ //# sourceMappingURL=localizationSpan.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,36 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ import { MarkSpec } from 'prosemirror-model';
2
+ export declare const spanWithNowrap: MarkSpec;
3
+ //# sourceMappingURL=spanWithNowrap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spanWithNowrap.d.ts","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/spanWithNowrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAElD,eAAO,MAAM,cAAc,EAAE,QAiB5B,CAAA"}
@@ -1,11 +1,11 @@
1
- export const spanWithClassSchema = {
1
+ export const spanWithNowrap = {
2
2
  spanWithClass: {
3
3
  attrs: {
4
4
  class: { default: null }
5
5
  },
6
6
  parseDOM: [
7
7
  {
8
- tag: 'span',
8
+ tag: 'span[class="e-nowrap"]',
9
9
  getAttrs(dom) {
10
10
  return { class: dom.getAttribute('class') || null };
11
11
  }
@@ -16,4 +16,4 @@ export const spanWithClassSchema = {
16
16
  }
17
17
  }
18
18
  };
19
- //# sourceMappingURL=spanWithClass.js.map
19
+ //# sourceMappingURL=spanWithNowrap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spanWithNowrap.js","sourceRoot":"","sources":["../../../../src/components/grading-instructions/editor/spanWithNowrap.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,wBAAwB;gBAC7B,QAAQ,CAAC,GAAgB;oBACvB,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAA;gBACrD,CAAC;aACF;SACF;QACD,KAAK,CAAC,IAAU;YACd,OAAO,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAe,EAAE,EAAE,CAAC,CAAC,CAAA;QAC3D,CAAC;KACF;CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { MarkSpec } from 'prosemirror-model';
2
+ export declare const spanWithNowrap: MarkSpec;
3
+ //# sourceMappingURL=spanWithPath.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,24 @@
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
@@ -0,0 +1 @@
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"}