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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. package/dist/__tests__/editor/ImageUploadButton.test.js +1 -1
  2. package/dist/__tests__/editor/ImageUploadButton.test.js.map +1 -1
  3. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  4. package/dist/components/grading-instructions/editor/ImageUploadButton.js +2 -2
  5. package/dist/components/grading-instructions/editor/ImageUploadButton.js.map +1 -1
  6. package/dist/main-bundle.js +1 -1
  7. package/package.json +2 -2
  8. package/dist/__tests__/EditableGradingInsatruction.test.d.ts +0 -1
  9. package/dist/__tests__/EditableGradingInsatruction.test.d.ts.map +0 -1
  10. package/dist/__tests__/EditableGradingInsatruction.test.js +0 -2
  11. package/dist/__tests__/EditableGradingInsatruction.test.js.map +0 -1
  12. package/dist/__tests__/editor/no-wrap.test.d.ts +0 -2
  13. package/dist/__tests__/editor/no-wrap.test.d.ts.map +0 -1
  14. package/dist/__tests__/editor/no-wrap.test.js +0 -43
  15. package/dist/__tests__/editor/no-wrap.test.js.map +0 -1
  16. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts +0 -1
  17. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts.map +0 -1
  18. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js +0 -2
  19. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js.map +0 -1
  20. package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts +0 -1
  21. package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts.map +0 -1
  22. package/dist/__tests__/utils/renderEditableGradingInstructions.js +0 -2
  23. package/dist/__tests__/utils/renderEditableGradingInstructions.js.map +0 -1
  24. package/dist/components/LexicalEditor.d.ts +0 -3
  25. package/dist/components/LexicalEditor.d.ts.map +0 -1
  26. package/dist/components/LexicalEditor.js +0 -44
  27. package/dist/components/LexicalEditor.js.map +0 -1
  28. package/dist/components/RTE.d.ts +0 -3
  29. package/dist/components/RTE.d.ts.map +0 -1
  30. package/dist/components/RTE.js +0 -23
  31. package/dist/components/RTE.js.map +0 -1
  32. package/dist/components/TablePlugin.d.ts +0 -1
  33. package/dist/components/TablePlugin.d.ts.map +0 -1
  34. package/dist/components/TablePlugin.js +0 -2
  35. package/dist/components/TablePlugin.js.map +0 -1
  36. package/dist/components/ToolBarPlugin.d.ts +0 -10
  37. package/dist/components/ToolBarPlugin.d.ts.map +0 -1
  38. package/dist/components/ToolBarPlugin.js +0 -111
  39. package/dist/components/ToolBarPlugin.js.map +0 -1
  40. package/dist/components/context/AnnotationContext.d.ts +0 -8
  41. package/dist/components/context/AnnotationContext.d.ts.map +0 -1
  42. package/dist/components/context/AnnotationContext.js +0 -3
  43. package/dist/components/context/AnnotationContext.js.map +0 -1
  44. package/dist/components/exam/ExamineExam.d.ts +0 -5
  45. package/dist/components/exam/ExamineExam.d.ts.map +0 -1
  46. package/dist/components/exam/ExamineExam.js +0 -20
  47. package/dist/components/exam/ExamineExam.js.map +0 -1
  48. package/dist/components/exam/FinishExam.d.ts +0 -5
  49. package/dist/components/exam/FinishExam.d.ts.map +0 -1
  50. package/dist/components/exam/FinishExam.js +0 -17
  51. package/dist/components/exam/FinishExam.js.map +0 -1
  52. package/dist/components/grading/reactAnnotation.d.ts +0 -4
  53. package/dist/components/grading/reactAnnotation.d.ts.map +0 -1
  54. package/dist/components/grading/reactAnnotation.js +0 -54
  55. package/dist/components/grading/reactAnnotation.js.map +0 -1
  56. package/dist/components/grading-instructions/SlateTableEditor.d.ts +0 -22
  57. package/dist/components/grading-instructions/SlateTableEditor.d.ts.map +0 -1
  58. package/dist/components/grading-instructions/SlateTableEditor.js +0 -44
  59. package/dist/components/grading-instructions/SlateTableEditor.js.map +0 -1
  60. package/dist/components/grading-instructions/SlateUtils.d.ts +0 -5
  61. package/dist/components/grading-instructions/SlateUtils.d.ts.map +0 -1
  62. package/dist/components/grading-instructions/SlateUtils.js +0 -28
  63. package/dist/components/grading-instructions/SlateUtils.js.map +0 -1
  64. package/dist/components/grading-instructions/editor/MathPopup.d.ts +0 -10
  65. package/dist/components/grading-instructions/editor/MathPopup.d.ts.map +0 -1
  66. package/dist/components/grading-instructions/editor/MathPopup.js +0 -94
  67. package/dist/components/grading-instructions/editor/MathPopup.js.map +0 -1
  68. package/dist/components/grading-instructions/editor/Menu.d.ts +0 -1
  69. package/dist/components/grading-instructions/editor/Menu.d.ts.map +0 -1
  70. package/dist/components/grading-instructions/editor/Menu.js +0 -2
  71. package/dist/components/grading-instructions/editor/Menu.js.map +0 -1
  72. package/dist/components/grading-instructions/editor/math-svg.d.ts +0 -2
  73. package/dist/components/grading-instructions/editor/math-svg.d.ts.map +0 -1
  74. package/dist/components/grading-instructions/editor/math-svg.js +0 -22
  75. package/dist/components/grading-instructions/editor/math-svg.js.map +0 -1
  76. package/dist/components/grading-instructions/editor/math.d.ts +0 -4
  77. package/dist/components/grading-instructions/editor/math.d.ts.map +0 -1
  78. package/dist/components/grading-instructions/editor/math.js +0 -55
  79. package/dist/components/grading-instructions/editor/math.js.map +0 -1
  80. package/dist/components/grading-instructions/editor/noWrap.d.ts +0 -3
  81. package/dist/components/grading-instructions/editor/noWrap.d.ts.map +0 -1
  82. package/dist/components/grading-instructions/editor/noWrap.js +0 -13
  83. package/dist/components/grading-instructions/editor/noWrap.js.map +0 -1
  84. package/dist/components/grading-instructions/editor/spanWithClass.d.ts +0 -3
  85. package/dist/components/grading-instructions/editor/spanWithClass.d.ts.map +0 -1
  86. package/dist/components/grading-instructions/editor/spanWithClass.js +0 -19
  87. package/dist/components/grading-instructions/editor/spanWithClass.js.map +0 -1
  88. package/dist/components/grading-instructions/prosemirror.d.ts +0 -8
  89. package/dist/components/grading-instructions/prosemirror.d.ts.map +0 -1
  90. package/dist/components/grading-instructions/prosemirror.js +0 -108
  91. package/dist/components/grading-instructions/prosemirror.js.map +0 -1
  92. package/dist/components/results/isExamFinishPageHook.d.ts +0 -2
  93. package/dist/components/results/isExamFinishPageHook.d.ts.map +0 -1
  94. package/dist/components/results/isExamFinishPageHook.js +0 -7
  95. package/dist/components/results/isExamFinishPageHook.js.map +0 -1
  96. package/dist/components/shared/CreateAnnotationPopup.d.ts +0 -6
  97. package/dist/components/shared/CreateAnnotationPopup.d.ts.map +0 -1
  98. package/dist/components/shared/CreateAnnotationPopup.js +0 -11
  99. package/dist/components/shared/CreateAnnotationPopup.js.map +0 -1
  100. package/dist/components/shared/PopupUtils.d.ts +0 -4
  101. package/dist/components/shared/PopupUtils.d.ts.map +0 -1
  102. package/dist/components/shared/PopupUtils.js +0 -26
  103. package/dist/components/shared/PopupUtils.js.map +0 -1
  104. package/dist/store/listenerMiddleware.d.ts +0 -89
  105. package/dist/store/listenerMiddleware.d.ts.map +0 -1
  106. package/dist/store/listenerMiddleware.js +0 -6
  107. package/dist/store/listenerMiddleware.js.map +0 -1
  108. /package/dist/__tests__/editor/{NBSP.test.d.ts → nbsp.test.d.ts} +0 -0
  109. /package/dist/__tests__/editor/{NBSP.test.d.ts.map → nbsp.test.d.ts.map} +0 -0
  110. /package/dist/__tests__/editor/{NBSP.test.js → nbsp.test.js} +0 -0
  111. /package/dist/__tests__/editor/{NBSP.test.js.map → nbsp.test.js.map} +0 -0
@@ -54,7 +54,7 @@ describe('ImageUploadButton', () => {
54
54
  it('image can be uploaded', async () => {
55
55
  const container = (0, renderEditableGradingInstruction_1.renderGradingInstruction)('', onContentChangeMock);
56
56
  const file = new File(['hello'], 'hello.png', { type: 'image/png' });
57
- const input = container.queryByTestId('image-upload-button');
57
+ const input = container.queryByTestId('image-upload-input');
58
58
  await user_event_1.default.upload(input, file);
59
59
  await (0, react_1.waitFor)(() => {
60
60
  expect(onContentChangeMock).toHaveBeenCalledTimes(2);
@@ -1 +1 @@
1
- {"version":3,"file":"ImageUploadButton.test.js","sourceRoot":"","sources":["../../../__tests__/editor/ImageUploadButton.test.tsx"],"names":[],"mappings":";;;;;AAAA,qCAAkC;AAClC,kDAAyE;AACzE,sDAAsD;AACtD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