@digabi/exam-engine-core 22.0.1-alpha.6 → 22.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) 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 +2 -0
  6. package/dist/__tests__/EditableGradingInstruction.test.d.ts.map +1 -0
  7. package/dist/__tests__/EditableGradingInstruction.test.js +171 -0
  8. package/dist/__tests__/EditableGradingInstruction.test.js.map +1 -0
  9. package/dist/__tests__/FormatButton.test.d.ts +2 -0
  10. package/dist/__tests__/FormatButton.test.d.ts.map +1 -0
  11. package/dist/__tests__/FormatButton.test.js +94 -0
  12. package/dist/__tests__/FormatButton.test.js.map +1 -0
  13. package/dist/__tests__/editor/Formula.test.d.ts +2 -0
  14. package/dist/__tests__/editor/Formula.test.d.ts.map +1 -0
  15. package/dist/__tests__/editor/Formula.test.js +43 -0
  16. package/dist/__tests__/editor/Formula.test.js.map +1 -0
  17. package/dist/__tests__/editor/NBSP.test.d.ts +2 -0
  18. package/dist/__tests__/editor/NBSP.test.d.ts.map +1 -0
  19. package/dist/__tests__/editor/NBSP.test.js +59 -0
  20. package/dist/__tests__/editor/NBSP.test.js.map +1 -0
  21. package/dist/__tests__/editor/br.test.d.ts +2 -0
  22. package/dist/__tests__/editor/br.test.d.ts.map +1 -0
  23. package/dist/__tests__/editor/br.test.js +43 -0
  24. package/dist/__tests__/editor/br.test.js.map +1 -0
  25. package/dist/__tests__/editor/hr.test.d.ts +2 -0
  26. package/dist/__tests__/editor/hr.test.d.ts.map +1 -0
  27. package/dist/__tests__/editor/hr.test.js +43 -0
  28. package/dist/__tests__/editor/hr.test.js.map +1 -0
  29. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  30. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts +1 -0
  31. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts.map +1 -0
  32. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js +2 -0
  33. package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js.map +1 -0
  34. package/dist/__tests__/utils/ProseMirrorWrapper.d.ts +8 -0
  35. package/dist/__tests__/utils/ProseMirrorWrapper.d.ts.map +1 -0
  36. package/dist/__tests__/utils/ProseMirrorWrapper.js +44 -0
  37. package/dist/__tests__/utils/ProseMirrorWrapper.js.map +1 -0
  38. package/dist/__tests__/utils/prosemirror.d.ts +3 -0
  39. package/dist/__tests__/utils/prosemirror.d.ts.map +1 -0
  40. package/dist/__tests__/utils/prosemirror.js +38 -0
  41. package/dist/__tests__/utils/prosemirror.js.map +1 -0
  42. package/dist/__tests__/utils/renderEditableGradingInstruction.d.ts +2 -0
  43. package/dist/__tests__/utils/renderEditableGradingInstruction.d.ts.map +1 -0
  44. package/dist/__tests__/utils/renderEditableGradingInstruction.js +16 -0
  45. package/dist/__tests__/utils/renderEditableGradingInstruction.js.map +1 -0
  46. package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts +1 -0
  47. package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts.map +1 -0
  48. package/dist/__tests__/utils/renderEditableGradingInstructions.js +2 -0
  49. package/dist/__tests__/utils/renderEditableGradingInstructions.js.map +1 -0
  50. package/dist/components/LexicalEditor.d.ts +3 -0
  51. package/dist/components/LexicalEditor.d.ts.map +1 -0
  52. package/dist/components/LexicalEditor.js +44 -0
  53. package/dist/components/LexicalEditor.js.map +1 -0
  54. package/dist/components/RTE.d.ts +3 -0
  55. package/dist/components/RTE.d.ts.map +1 -0
  56. package/dist/components/RTE.js +23 -0
  57. package/dist/components/RTE.js.map +1 -0
  58. package/dist/components/TablePlugin.d.ts +1 -0
  59. package/dist/components/TablePlugin.d.ts.map +1 -0
  60. package/dist/components/TablePlugin.js +2 -0
  61. package/dist/components/TablePlugin.js.map +1 -0
  62. package/dist/components/ToolBarPlugin.d.ts +10 -0
  63. package/dist/components/ToolBarPlugin.d.ts.map +1 -0
  64. package/dist/components/ToolBarPlugin.js +111 -0
  65. package/dist/components/ToolBarPlugin.js.map +1 -0
  66. package/dist/components/context/AnnotationContext.d.ts +8 -0
  67. package/dist/components/context/AnnotationContext.d.ts.map +1 -0
  68. package/dist/components/context/AnnotationContext.js +3 -0
  69. package/dist/components/context/AnnotationContext.js.map +1 -0
  70. package/dist/components/context/CommonExamContext.d.ts +0 -1
  71. package/dist/components/context/CommonExamContext.d.ts.map +1 -1
  72. package/dist/components/context/CommonExamContext.js +0 -3
  73. package/dist/components/context/CommonExamContext.js.map +1 -1
  74. package/dist/components/exam/ExamineExam.d.ts +5 -0
  75. package/dist/components/exam/ExamineExam.d.ts.map +1 -0
  76. package/dist/components/exam/ExamineExam.js +20 -0
  77. package/dist/components/exam/ExamineExam.js.map +1 -0
  78. package/dist/components/exam/FinishExam.d.ts +5 -0
  79. package/dist/components/exam/FinishExam.d.ts.map +1 -0
  80. package/dist/components/exam/FinishExam.js +17 -0
  81. package/dist/components/exam/FinishExam.js.map +1 -0
  82. package/dist/components/grading/reactAnnotation.d.ts +4 -0
  83. package/dist/components/grading/reactAnnotation.d.ts.map +1 -0
  84. package/dist/components/grading/reactAnnotation.js +54 -0
  85. package/dist/components/grading/reactAnnotation.js.map +1 -0
  86. package/dist/components/grading-instructions/AnswerGradingInstruction.d.ts.map +1 -1
  87. package/dist/components/grading-instructions/AnswerGradingInstruction.js +2 -7
  88. package/dist/components/grading-instructions/AnswerGradingInstruction.js.map +1 -1
  89. package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +1 -1
  90. package/dist/components/grading-instructions/EditableGradingInstruction.js +38 -23
  91. package/dist/components/grading-instructions/EditableGradingInstruction.js.map +1 -1
  92. package/dist/components/grading-instructions/ExamGradingInstruction.d.ts.map +1 -1
  93. package/dist/components/grading-instructions/ExamGradingInstruction.js +2 -7
  94. package/dist/components/grading-instructions/ExamGradingInstruction.js.map +1 -1
  95. package/dist/components/grading-instructions/GradingInstructions.d.ts +1 -2
  96. package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
  97. package/dist/components/grading-instructions/GradingInstructions.js +15 -18
  98. package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
  99. package/dist/components/grading-instructions/SlateTableEditor.d.ts +22 -0
  100. package/dist/components/grading-instructions/SlateTableEditor.d.ts.map +1 -0
  101. package/dist/components/grading-instructions/SlateTableEditor.js +44 -0
  102. package/dist/components/grading-instructions/SlateTableEditor.js.map +1 -0
  103. package/dist/components/grading-instructions/SlateUtils.d.ts +5 -0
  104. package/dist/components/grading-instructions/SlateUtils.d.ts.map +1 -0
  105. package/dist/components/grading-instructions/SlateUtils.js +28 -0
  106. package/dist/components/grading-instructions/SlateUtils.js.map +1 -0
  107. package/dist/components/grading-instructions/editor/FormatButton.d.ts +8 -0
  108. package/dist/components/grading-instructions/editor/FormatButton.d.ts.map +1 -0
  109. package/dist/components/grading-instructions/editor/FormatButton.js +23 -0
  110. package/dist/components/grading-instructions/editor/FormatButton.js.map +1 -0
  111. package/dist/components/grading-instructions/editor/Formula.d.ts +17 -0
  112. package/dist/components/grading-instructions/editor/Formula.d.ts.map +1 -0
  113. package/dist/components/grading-instructions/editor/Formula.js +81 -0
  114. package/dist/components/grading-instructions/editor/Formula.js.map +1 -0
  115. package/dist/components/grading-instructions/editor/FormulaPopup.d.ts +7 -0
  116. package/dist/components/grading-instructions/editor/FormulaPopup.d.ts.map +1 -0
  117. package/dist/components/grading-instructions/editor/FormulaPopup.js +49 -0
  118. package/dist/components/grading-instructions/editor/FormulaPopup.js.map +1 -0
  119. package/dist/components/grading-instructions/editor/MathPopup.d.ts +10 -0
  120. package/dist/components/grading-instructions/editor/MathPopup.d.ts.map +1 -0
  121. package/dist/components/grading-instructions/editor/MathPopup.js +94 -0
  122. package/dist/components/grading-instructions/editor/MathPopup.js.map +1 -0
  123. package/dist/components/grading-instructions/editor/NBSP.d.ts +4 -0
  124. package/dist/components/grading-instructions/editor/NBSP.d.ts.map +1 -0
  125. package/dist/components/grading-instructions/editor/NBSP.js +17 -0
  126. package/dist/components/grading-instructions/editor/NBSP.js.map +1 -0
  127. package/dist/components/grading-instructions/editor/Table.d.ts +5 -0
  128. package/dist/components/grading-instructions/editor/Table.d.ts.map +1 -0
  129. package/dist/components/grading-instructions/editor/Table.js +224 -0
  130. package/dist/components/grading-instructions/editor/Table.js.map +1 -0
  131. package/dist/components/grading-instructions/editor/math-svg.d.ts +2 -0
  132. package/dist/components/grading-instructions/editor/math-svg.d.ts.map +1 -0
  133. package/dist/components/grading-instructions/editor/math-svg.js +22 -0
  134. package/dist/components/grading-instructions/editor/math-svg.js.map +1 -0
  135. package/dist/components/grading-instructions/editor/math.d.ts +4 -0
  136. package/dist/components/grading-instructions/editor/math.d.ts.map +1 -0
  137. package/dist/components/grading-instructions/editor/math.js +55 -0
  138. package/dist/components/grading-instructions/editor/math.js.map +1 -0
  139. package/dist/components/grading-instructions/prosemirror.d.ts +8 -0
  140. package/dist/components/grading-instructions/prosemirror.d.ts.map +1 -0
  141. package/dist/components/grading-instructions/prosemirror.js +108 -0
  142. package/dist/components/grading-instructions/prosemirror.js.map +1 -0
  143. package/dist/components/results/isExamFinishPageHook.d.ts +2 -0
  144. package/dist/components/results/isExamFinishPageHook.d.ts.map +1 -0
  145. package/dist/components/results/isExamFinishPageHook.js +7 -0
  146. package/dist/components/results/isExamFinishPageHook.js.map +1 -0
  147. package/dist/components/shared/CreateAnnotationPopup.d.ts +6 -0
  148. package/dist/components/shared/CreateAnnotationPopup.d.ts.map +1 -0
  149. package/dist/components/shared/CreateAnnotationPopup.js +11 -0
  150. package/dist/components/shared/CreateAnnotationPopup.js.map +1 -0
  151. package/dist/components/shared/Popup.d.ts +15 -0
  152. package/dist/components/shared/Popup.d.ts.map +1 -0
  153. package/dist/components/shared/Popup.js +90 -0
  154. package/dist/components/shared/Popup.js.map +1 -0
  155. package/dist/components/shared/PopupUtils.d.ts +4 -0
  156. package/dist/components/shared/PopupUtils.d.ts.map +1 -0
  157. package/dist/components/shared/PopupUtils.js +26 -0
  158. package/dist/components/shared/PopupUtils.js.map +1 -0
  159. package/dist/dom-utils.d.ts.map +1 -1
  160. package/dist/dom-utils.js +4 -2
  161. package/dist/dom-utils.js.map +1 -1
  162. package/dist/main-bundle.js +1 -1
  163. package/dist/main-bundle.js.LICENSE.txt +1 -1
  164. package/dist/store/listenerMiddleware.d.ts +89 -0
  165. package/dist/store/listenerMiddleware.d.ts.map +1 -0
  166. package/dist/store/listenerMiddleware.js +6 -0
  167. package/dist/store/listenerMiddleware.js.map +1 -0
  168. package/package.json +3 -9
@@ -23,7 +23,7 @@
23
23
  */
24
24
 
25
25
  /*!
26
- * focus-trap 7.5.4
26
+ * focus-trap 7.6.0
27
27
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
28
28
  */
29
29
 
@@ -0,0 +1,89 @@
1
+ export declare const listenerMiddleware: import("@reduxjs/toolkit").ListenerMiddlewareInstance<unknown, import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>, unknown>;
2
+ export declare const startListening: {
3
+ <MiddlewareActionType extends import("redux").UnknownAction, ListenerPredicateType extends (action: import("redux").UnknownAction, currentState: unknown, originalState: unknown) => action is MiddlewareActionType>(options: {
4
+ actionCreator?: never;
5
+ type?: never;
6
+ matcher?: never;
7
+ predicate: ListenerPredicateType;
8
+ effect: import("@reduxjs/toolkit").ListenerEffect<ListenerPredicateType extends (action: import("redux").UnknownAction, currentState: any, originalState: any) => action is infer ActionType extends import("redux").Action ? ActionType : never, unknown, import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>, unknown>;
9
+ }): import("@reduxjs/toolkit").UnsubscribeListener;
10
+ <ActionCreatorType extends {
11
+ (...args: any[]): import("redux").Action<any>;
12
+ type: any;
13
+ } & {
14
+ match: (v: any) => v is any;
15
+ }>(options: {
16
+ actionCreator: ActionCreatorType;
17
+ type?: never;
18
+ matcher?: never;
19
+ predicate?: never;
20
+ effect: import("@reduxjs/toolkit").ListenerEffect<ReturnType<ActionCreatorType>, unknown, import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>, unknown>;
21
+ }): import("@reduxjs/toolkit").UnsubscribeListener;
22
+ <T extends string>(options: {
23
+ actionCreator?: never;
24
+ type: T;
25
+ matcher?: never;
26
+ predicate?: never;
27
+ effect: import("@reduxjs/toolkit").ListenerEffect<import("redux").Action<T>, unknown, import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>, unknown>;
28
+ }): import("@reduxjs/toolkit").UnsubscribeListener;
29
+ <MatchFunctionType extends (v: any) => v is import("redux").UnknownAction>(options: {
30
+ actionCreator?: never;
31
+ type?: never;
32
+ matcher: MatchFunctionType;
33
+ predicate?: never;
34
+ effect: import("@reduxjs/toolkit").ListenerEffect<MatchFunctionType extends (x: any, ...args: any[]) => x is infer T ? T : never, unknown, import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>, unknown>;
35
+ }): import("@reduxjs/toolkit").UnsubscribeListener;
36
+ <ListenerPredicateType extends import("@reduxjs/toolkit").AnyListenerPredicate<unknown>>(options: {
37
+ actionCreator?: never;
38
+ type?: never;
39
+ matcher?: never;
40
+ predicate: ListenerPredicateType;
41
+ effect: import("@reduxjs/toolkit").ListenerEffect<import("redux").UnknownAction, unknown, import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>, unknown>;
42
+ }): import("@reduxjs/toolkit").UnsubscribeListener;
43
+ } & {
44
+ withTypes: <OverrideStateType extends unknown, OverrideDispatchType extends import("redux").Dispatch = import("redux-thunk").ThunkDispatch<OverrideStateType, unknown, import("redux").UnknownAction>, OverrideExtraArgument = unknown>() => import("@reduxjs/toolkit").TypedStartListening<OverrideStateType, OverrideDispatchType, OverrideExtraArgument>;
45
+ }, stopListening: {
46
+ <MiddlewareActionType extends import("redux").UnknownAction, ListenerPredicateType extends (action: import("redux").UnknownAction, currentState: unknown, originalState: unknown) => action is MiddlewareActionType>(options: {
47
+ actionCreator?: never;
48
+ type?: never;
49
+ matcher?: never;
50
+ predicate: ListenerPredicateType;
51
+ effect: import("@reduxjs/toolkit").ListenerEffect<ListenerPredicateType extends (action: import("redux").UnknownAction, currentState: any, originalState: any) => action is infer ActionType extends import("redux").Action ? ActionType : never, unknown, import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>, unknown>;
52
+ } & import("@reduxjs/toolkit").UnsubscribeListenerOptions): boolean;
53
+ <ActionCreatorType extends {
54
+ (...args: any[]): import("redux").Action<any>;
55
+ type: any;
56
+ } & {
57
+ match: (v: any) => v is any;
58
+ }>(options: {
59
+ actionCreator: ActionCreatorType;
60
+ type?: never;
61
+ matcher?: never;
62
+ predicate?: never;
63
+ effect: import("@reduxjs/toolkit").ListenerEffect<ReturnType<ActionCreatorType>, unknown, import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>, unknown>;
64
+ } & import("@reduxjs/toolkit").UnsubscribeListenerOptions): boolean;
65
+ <T extends string>(options: {
66
+ actionCreator?: never;
67
+ type: T;
68
+ matcher?: never;
69
+ predicate?: never;
70
+ effect: import("@reduxjs/toolkit").ListenerEffect<import("redux").Action<T>, unknown, import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>, unknown>;
71
+ } & import("@reduxjs/toolkit").UnsubscribeListenerOptions): boolean;
72
+ <MatchFunctionType extends (v: any) => v is import("redux").UnknownAction>(options: {
73
+ actionCreator?: never;
74
+ type?: never;
75
+ matcher: MatchFunctionType;
76
+ predicate?: never;
77
+ effect: import("@reduxjs/toolkit").ListenerEffect<MatchFunctionType extends (x: any, ...args: any[]) => x is infer T ? T : never, unknown, import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>, unknown>;
78
+ } & import("@reduxjs/toolkit").UnsubscribeListenerOptions): boolean;
79
+ <ListenerPredicateType extends import("@reduxjs/toolkit").AnyListenerPredicate<unknown>>(options: {
80
+ actionCreator?: never;
81
+ type?: never;
82
+ matcher?: never;
83
+ predicate: ListenerPredicateType;
84
+ effect: import("@reduxjs/toolkit").ListenerEffect<import("redux").UnknownAction, unknown, import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>, unknown>;
85
+ } & import("@reduxjs/toolkit").UnsubscribeListenerOptions): boolean;
86
+ } & {
87
+ withTypes: <OverrideStateType extends unknown, OverrideDispatchType extends import("redux").Dispatch = import("redux-thunk").ThunkDispatch<OverrideStateType, unknown, import("redux").UnknownAction>, OverrideExtraArgument = unknown>() => import("@reduxjs/toolkit").TypedStopListening<OverrideStateType, OverrideDispatchType, OverrideExtraArgument>;
88
+ };
89
+ //# sourceMappingURL=listenerMiddleware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listenerMiddleware.d.ts","sourceRoot":"","sources":["../../src/store/listenerMiddleware.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,+JAA6B,CAAA;AAE5D,eAAO,MAAQ,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { createListenerMiddleware } from '@reduxjs/toolkit';
2
+ // Best to define this in a separate file, to avoid importing
3
+ // from the store file into the rest of the codebase
4
+ export const listenerMiddleware = createListenerMiddleware();
5
+ export const { startListening, stopListening } = listenerMiddleware;
6
+ //# sourceMappingURL=listenerMiddleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listenerMiddleware.js","sourceRoot":"","sources":["../../src/store/listenerMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAA;AAE3D,6DAA6D;AAC7D,oDAAoD;AACpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,wBAAwB,EAAE,CAAA;AAE5D,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,kBAAkB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digabi/exam-engine-core",
3
- "version": "22.0.1-alpha.6",
3
+ "version": "22.0.1",
4
4
  "main": "dist/main-bundle.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Matriculation Examination Board, Finland",
@@ -26,11 +26,10 @@
26
26
  "@fortawesome/fontawesome-svg-core": "^6.4.0",
27
27
  "@fortawesome/free-solid-svg-icons": "^6.4.0",
28
28
  "@fortawesome/react-fontawesome": "^0.2.0",
29
- "@nytimes/react-prosemirror": "^0.6.2",
30
29
  "classnames": "^2.2.6",
31
30
  "css-loader": "^7.0.0",
32
31
  "css-minimizer-webpack-plugin": "^7.0.0",
33
- "date-fns": "^3.3.1",
32
+ "date-fns": "^4.0.0",
34
33
  "downshift": "^9.0.0",
35
34
  "fontfaceobserver": "^2.1.0",
36
35
  "i18next": "^23.2.11",
@@ -42,11 +41,6 @@
42
41
  "postcss": "^8.0.5",
43
42
  "postcss-loader": "^8.1.0",
44
43
  "postcss-preset-env": "^10.0.0",
45
- "prosemirror-commands": "^1.6.0",
46
- "prosemirror-keymap": "^1.2.2",
47
- "prosemirror-model": "^1.22.3",
48
- "prosemirror-schema-basic": "^1.2.3",
49
- "prosemirror-state": "^1.4.3",
50
44
  "react": "^18.2.0",
51
45
  "react-css-transition-replace": "^5.0.1",
52
46
  "react-dom": "^18.2.0",
@@ -64,5 +58,5 @@
64
58
  "webpack-bundle-analyzer": "^4.1.0",
65
59
  "webpack-cli": "^5.0.2"
66
60
  },
67
- "gitHead": "e72eb507a59086b2fb29a9ab28c7507e53c8e384"
61
+ "gitHead": "687e981bb75fb4a93e6e792bbbba68a676d20ede"
68
62
  }