@digabi/exam-engine-core 22.1.3-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 (141) hide show
  1. package/dist/__tests__/editor/{NBSP.test.js → nbsp.test.js} +1 -1
  2. package/dist/__tests__/editor/{NBSP.test.js.map → nbsp.test.js.map} +1 -1
  3. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  4. package/dist/components/Localization.d.ts +5 -0
  5. package/dist/components/Localization.d.ts.map +1 -0
  6. package/dist/components/Localization.js +9 -0
  7. package/dist/components/Localization.js.map +1 -0
  8. package/dist/components/context/AttachmentContext.d.ts.map +1 -1
  9. package/dist/components/context/ExamContext.d.ts.map +1 -1
  10. package/dist/components/context/QuestionContext.d.ts.map +1 -1
  11. package/dist/components/context/ResultsContext.d.ts.map +1 -1
  12. package/dist/components/context/SectionContext.d.ts.map +1 -1
  13. package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +1 -1
  14. package/dist/components/grading-instructions/EditableGradingInstruction.js +21 -15
  15. package/dist/components/grading-instructions/EditableGradingInstruction.js.map +1 -1
  16. package/dist/components/grading-instructions/ExamGradingInstruction.d.ts.map +1 -1
  17. package/dist/components/grading-instructions/ExamGradingInstruction.js +2 -7
  18. package/dist/components/grading-instructions/ExamGradingInstruction.js.map +1 -1
  19. package/dist/components/grading-instructions/GradingInstruction.d.ts +7 -0
  20. package/dist/components/grading-instructions/GradingInstruction.d.ts.map +1 -0
  21. package/dist/components/grading-instructions/GradingInstruction.js +9 -0
  22. package/dist/components/grading-instructions/GradingInstruction.js.map +1 -0
  23. package/dist/components/grading-instructions/GradingInstructions.d.ts +1 -1
  24. package/dist/components/grading-instructions/editor/Localization.d.ts +3 -0
  25. package/dist/components/grading-instructions/editor/Localization.d.ts.map +1 -0
  26. package/dist/components/grading-instructions/editor/Localization.js +36 -0
  27. package/dist/components/grading-instructions/editor/Localization.js.map +1 -0
  28. package/dist/components/grading-instructions/editor/localizatio.d.ts +3 -0
  29. package/dist/components/grading-instructions/editor/localizatio.d.ts.map +1 -0
  30. package/dist/components/grading-instructions/editor/localizatio.js +36 -0
  31. package/dist/components/grading-instructions/editor/localizatio.js.map +1 -0
  32. package/dist/components/grading-instructions/editor/localizationSpan.d.ts +3 -0
  33. package/dist/components/grading-instructions/editor/localizationSpan.d.ts.map +1 -0
  34. package/dist/components/grading-instructions/editor/localizationSpan.js +36 -0
  35. package/dist/components/grading-instructions/editor/localizationSpan.js.map +1 -0
  36. package/dist/components/grading-instructions/editor/spanWithPath.d.ts +3 -0
  37. package/dist/components/grading-instructions/editor/spanWithPath.d.ts.map +1 -0
  38. package/dist/components/grading-instructions/editor/spanWithPath.js +24 -0
  39. package/dist/components/grading-instructions/editor/spanWithPath.js.map +1 -0
  40. package/dist/main-bundle.js +1 -1
  41. package/dist/main-bundle.js.LICENSE.txt +1 -1
  42. package/dist/main.css +1 -1
  43. package/package.json +2 -2
  44. package/dist/__tests__/EditableGradingInsatruction.test.d.ts +0 -1
  45. package/dist/__tests__/EditableGradingInsatruction.test.d.ts.map +0 -1
  46. package/dist/__tests__/EditableGradingInsatruction.test.js +0 -2
  47. package/dist/__tests__/EditableGradingInsatruction.test.js.map +0 -1
  48. package/dist/__tests__/editor/no-wrap.test.d.ts +0 -2
  49. package/dist/__tests__/editor/no-wrap.test.d.ts.map +0 -1
  50. package/dist/__tests__/editor/no-wrap.test.js +0 -43
  51. package/dist/__tests__/editor/no-wrap.test.js.map +0 -1
  52. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts +0 -1
  53. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts.map +0 -1
  54. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js +0 -2
  55. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js.map +0 -1
  56. package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts +0 -1
  57. package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts.map +0 -1
  58. package/dist/__tests__/utils/renderEditableGradingInstructions.js +0 -2
  59. package/dist/__tests__/utils/renderEditableGradingInstructions.js.map +0 -1
  60. package/dist/components/LexicalEditor.d.ts +0 -3
  61. package/dist/components/LexicalEditor.d.ts.map +0 -1
  62. package/dist/components/LexicalEditor.js +0 -44
  63. package/dist/components/LexicalEditor.js.map +0 -1
  64. package/dist/components/RTE.d.ts +0 -3
  65. package/dist/components/RTE.d.ts.map +0 -1
  66. package/dist/components/RTE.js +0 -23
  67. package/dist/components/RTE.js.map +0 -1
  68. package/dist/components/TablePlugin.d.ts +0 -1
  69. package/dist/components/TablePlugin.d.ts.map +0 -1
  70. package/dist/components/TablePlugin.js +0 -2
  71. package/dist/components/TablePlugin.js.map +0 -1
  72. package/dist/components/ToolBarPlugin.d.ts +0 -10
  73. package/dist/components/ToolBarPlugin.d.ts.map +0 -1
  74. package/dist/components/ToolBarPlugin.js +0 -111
  75. package/dist/components/ToolBarPlugin.js.map +0 -1
  76. package/dist/components/context/AnnotationContext.d.ts +0 -8
  77. package/dist/components/context/AnnotationContext.d.ts.map +0 -1
  78. package/dist/components/context/AnnotationContext.js +0 -3
  79. package/dist/components/context/AnnotationContext.js.map +0 -1
  80. package/dist/components/exam/ExamineExam.d.ts +0 -5
  81. package/dist/components/exam/ExamineExam.d.ts.map +0 -1
  82. package/dist/components/exam/ExamineExam.js +0 -20
  83. package/dist/components/exam/ExamineExam.js.map +0 -1
  84. package/dist/components/exam/FinishExam.d.ts +0 -5
  85. package/dist/components/exam/FinishExam.d.ts.map +0 -1
  86. package/dist/components/exam/FinishExam.js +0 -17
  87. package/dist/components/exam/FinishExam.js.map +0 -1
  88. package/dist/components/grading/reactAnnotation.d.ts +0 -4
  89. package/dist/components/grading/reactAnnotation.d.ts.map +0 -1
  90. package/dist/components/grading/reactAnnotation.js +0 -54
  91. package/dist/components/grading/reactAnnotation.js.map +0 -1
  92. package/dist/components/grading-instructions/SlateTableEditor.d.ts +0 -22
  93. package/dist/components/grading-instructions/SlateTableEditor.d.ts.map +0 -1
  94. package/dist/components/grading-instructions/SlateTableEditor.js +0 -44
  95. package/dist/components/grading-instructions/SlateTableEditor.js.map +0 -1
  96. package/dist/components/grading-instructions/SlateUtils.d.ts +0 -5
  97. package/dist/components/grading-instructions/SlateUtils.d.ts.map +0 -1
  98. package/dist/components/grading-instructions/SlateUtils.js +0 -28
  99. package/dist/components/grading-instructions/SlateUtils.js.map +0 -1
  100. package/dist/components/grading-instructions/editor/MathPopup.d.ts +0 -10
  101. package/dist/components/grading-instructions/editor/MathPopup.d.ts.map +0 -1
  102. package/dist/components/grading-instructions/editor/MathPopup.js +0 -94
  103. package/dist/components/grading-instructions/editor/MathPopup.js.map +0 -1
  104. package/dist/components/grading-instructions/editor/math-svg.d.ts +0 -2
  105. package/dist/components/grading-instructions/editor/math-svg.d.ts.map +0 -1
  106. package/dist/components/grading-instructions/editor/math-svg.js +0 -22
  107. package/dist/components/grading-instructions/editor/math-svg.js.map +0 -1
  108. package/dist/components/grading-instructions/editor/math.d.ts +0 -4
  109. package/dist/components/grading-instructions/editor/math.d.ts.map +0 -1
  110. package/dist/components/grading-instructions/editor/math.js +0 -55
  111. package/dist/components/grading-instructions/editor/math.js.map +0 -1
  112. package/dist/components/grading-instructions/editor/noWrap.d.ts +0 -3
  113. package/dist/components/grading-instructions/editor/noWrap.d.ts.map +0 -1
  114. package/dist/components/grading-instructions/editor/noWrap.js +0 -13
  115. package/dist/components/grading-instructions/editor/noWrap.js.map +0 -1
  116. package/dist/components/grading-instructions/editor/spanWithClass.d.ts +0 -3
  117. package/dist/components/grading-instructions/editor/spanWithClass.d.ts.map +0 -1
  118. package/dist/components/grading-instructions/editor/spanWithClass.js +0 -19
  119. package/dist/components/grading-instructions/editor/spanWithClass.js.map +0 -1
  120. package/dist/components/grading-instructions/prosemirror.d.ts +0 -8
  121. package/dist/components/grading-instructions/prosemirror.d.ts.map +0 -1
  122. package/dist/components/grading-instructions/prosemirror.js +0 -108
  123. package/dist/components/grading-instructions/prosemirror.js.map +0 -1
  124. package/dist/components/results/isExamFinishPageHook.d.ts +0 -2
  125. package/dist/components/results/isExamFinishPageHook.d.ts.map +0 -1
  126. package/dist/components/results/isExamFinishPageHook.js +0 -7
  127. package/dist/components/results/isExamFinishPageHook.js.map +0 -1
  128. package/dist/components/shared/CreateAnnotationPopup.d.ts +0 -6
  129. package/dist/components/shared/CreateAnnotationPopup.d.ts.map +0 -1
  130. package/dist/components/shared/CreateAnnotationPopup.js +0 -11
  131. package/dist/components/shared/CreateAnnotationPopup.js.map +0 -1
  132. package/dist/components/shared/PopupUtils.d.ts +0 -4
  133. package/dist/components/shared/PopupUtils.d.ts.map +0 -1
  134. package/dist/components/shared/PopupUtils.js +0 -26
  135. package/dist/components/shared/PopupUtils.js.map +0 -1
  136. package/dist/store/listenerMiddleware.d.ts +0 -89
  137. package/dist/store/listenerMiddleware.d.ts.map +0 -1
  138. package/dist/store/listenerMiddleware.js +0 -6
  139. package/dist/store/listenerMiddleware.js.map +0 -1
  140. /package/dist/__tests__/editor/{NBSP.test.d.ts → nbsp.test.d.ts} +0 -0
  141. /package/dist/__tests__/editor/{NBSP.test.d.ts.map → nbsp.test.d.ts.map} +0 -0
@@ -47,7 +47,7 @@ describe('Editor - NBSP', () => {
47
47
  await act(async () => {
48
48
  await user_event_1.default.click(await result.findByText('NBSP'));
49
49
  });
50
- expect(onContentChangeMock).toHaveBeenCalledTimes(2); // focus causes another call
50
+ expect(onContentChangeMock).toHaveBeenCalledTimes(1);
51
51
  expect(onContentChangeMock).toHaveBeenLastCalledWith(expectedOutput, '');
52
52
  });
53
53
  });
@@ -1 +1 @@
1
- {"version":3,"file":"nbsp.test.js","sourceRoot":"","sources":["../../../__tests__/editor/nbsp.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAkE;AAClE,sDAAsD;AACtD,gGAAoF;AACpF,6EAAmD;AAEnD,MAAM,GAAG,GAAG,WAAuD,CAAA;AAEnE,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,OAA4B,CAAA;IAChC,IA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