@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.
- package/dist/__tests__/EditableGradingInsatruction.test.d.ts +1 -0
- package/dist/__tests__/EditableGradingInsatruction.test.d.ts.map +1 -0
- package/dist/__tests__/EditableGradingInsatruction.test.js +2 -0
- package/dist/__tests__/EditableGradingInsatruction.test.js.map +1 -0
- package/dist/__tests__/EditableGradingInstruction.test.d.ts +2 -0
- package/dist/__tests__/EditableGradingInstruction.test.d.ts.map +1 -0
- package/dist/__tests__/EditableGradingInstruction.test.js +171 -0
- package/dist/__tests__/EditableGradingInstruction.test.js.map +1 -0
- package/dist/__tests__/FormatButton.test.d.ts +2 -0
- package/dist/__tests__/FormatButton.test.d.ts.map +1 -0
- package/dist/__tests__/FormatButton.test.js +94 -0
- package/dist/__tests__/FormatButton.test.js.map +1 -0
- package/dist/__tests__/editor/Formula.test.d.ts +2 -0
- package/dist/__tests__/editor/Formula.test.d.ts.map +1 -0
- package/dist/__tests__/editor/Formula.test.js +43 -0
- package/dist/__tests__/editor/Formula.test.js.map +1 -0
- package/dist/__tests__/editor/NBSP.test.d.ts +2 -0
- package/dist/__tests__/editor/NBSP.test.d.ts.map +1 -0
- package/dist/__tests__/editor/NBSP.test.js +59 -0
- package/dist/__tests__/editor/NBSP.test.js.map +1 -0
- package/dist/__tests__/editor/br.test.d.ts +2 -0
- package/dist/__tests__/editor/br.test.d.ts.map +1 -0
- package/dist/__tests__/editor/br.test.js +43 -0
- package/dist/__tests__/editor/br.test.js.map +1 -0
- package/dist/__tests__/editor/hr.test.d.ts +2 -0
- package/dist/__tests__/editor/hr.test.d.ts.map +1 -0
- package/dist/__tests__/editor/hr.test.js +43 -0
- package/dist/__tests__/editor/hr.test.js.map +1 -0
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts +1 -0
- package/dist/__tests__/utils/EditableGradingInstructionsWrapper.d.ts.map +1 -0
- package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js +2 -0
- package/dist/__tests__/utils/EditableGradingInstructionsWrapper.js.map +1 -0
- package/dist/__tests__/utils/ProseMirrorWrapper.d.ts +8 -0
- package/dist/__tests__/utils/ProseMirrorWrapper.d.ts.map +1 -0
- package/dist/__tests__/utils/ProseMirrorWrapper.js +44 -0
- package/dist/__tests__/utils/ProseMirrorWrapper.js.map +1 -0
- package/dist/__tests__/utils/prosemirror.d.ts +3 -0
- package/dist/__tests__/utils/prosemirror.d.ts.map +1 -0
- package/dist/__tests__/utils/prosemirror.js +38 -0
- package/dist/__tests__/utils/prosemirror.js.map +1 -0
- package/dist/__tests__/utils/renderEditableGradingInstruction.d.ts +2 -0
- package/dist/__tests__/utils/renderEditableGradingInstruction.d.ts.map +1 -0
- package/dist/__tests__/utils/renderEditableGradingInstruction.js +16 -0
- package/dist/__tests__/utils/renderEditableGradingInstruction.js.map +1 -0
- package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts +1 -0
- package/dist/__tests__/utils/renderEditableGradingInstructions.d.ts.map +1 -0
- package/dist/__tests__/utils/renderEditableGradingInstructions.js +2 -0
- package/dist/__tests__/utils/renderEditableGradingInstructions.js.map +1 -0
- package/dist/components/LexicalEditor.d.ts +3 -0
- package/dist/components/LexicalEditor.d.ts.map +1 -0
- package/dist/components/LexicalEditor.js +44 -0
- package/dist/components/LexicalEditor.js.map +1 -0
- package/dist/components/RTE.d.ts +3 -0
- package/dist/components/RTE.d.ts.map +1 -0
- package/dist/components/RTE.js +23 -0
- package/dist/components/RTE.js.map +1 -0
- package/dist/components/TablePlugin.d.ts +1 -0
- package/dist/components/TablePlugin.d.ts.map +1 -0
- package/dist/components/TablePlugin.js +2 -0
- package/dist/components/TablePlugin.js.map +1 -0
- package/dist/components/ToolBarPlugin.d.ts +10 -0
- package/dist/components/ToolBarPlugin.d.ts.map +1 -0
- package/dist/components/ToolBarPlugin.js +111 -0
- package/dist/components/ToolBarPlugin.js.map +1 -0
- package/dist/components/context/AnnotationContext.d.ts +8 -0
- package/dist/components/context/AnnotationContext.d.ts.map +1 -0
- package/dist/components/context/AnnotationContext.js +3 -0
- package/dist/components/context/AnnotationContext.js.map +1 -0
- package/dist/components/context/CommonExamContext.d.ts +0 -1
- package/dist/components/context/CommonExamContext.d.ts.map +1 -1
- package/dist/components/context/CommonExamContext.js +0 -3
- package/dist/components/context/CommonExamContext.js.map +1 -1
- package/dist/components/exam/ExamineExam.d.ts +5 -0
- package/dist/components/exam/ExamineExam.d.ts.map +1 -0
- package/dist/components/exam/ExamineExam.js +20 -0
- package/dist/components/exam/ExamineExam.js.map +1 -0
- package/dist/components/exam/FinishExam.d.ts +5 -0
- package/dist/components/exam/FinishExam.d.ts.map +1 -0
- package/dist/components/exam/FinishExam.js +17 -0
- package/dist/components/exam/FinishExam.js.map +1 -0
- package/dist/components/grading/reactAnnotation.d.ts +4 -0
- package/dist/components/grading/reactAnnotation.d.ts.map +1 -0
- package/dist/components/grading/reactAnnotation.js +54 -0
- package/dist/components/grading/reactAnnotation.js.map +1 -0
- package/dist/components/grading-instructions/AnswerGradingInstruction.d.ts.map +1 -1
- package/dist/components/grading-instructions/AnswerGradingInstruction.js +2 -7
- package/dist/components/grading-instructions/AnswerGradingInstruction.js.map +1 -1
- package/dist/components/grading-instructions/EditableGradingInstruction.d.ts.map +1 -1
- package/dist/components/grading-instructions/EditableGradingInstruction.js +38 -23
- package/dist/components/grading-instructions/EditableGradingInstruction.js.map +1 -1
- package/dist/components/grading-instructions/ExamGradingInstruction.d.ts.map +1 -1
- package/dist/components/grading-instructions/ExamGradingInstruction.js +2 -7
- package/dist/components/grading-instructions/ExamGradingInstruction.js.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.d.ts +1 -2
- package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
- package/dist/components/grading-instructions/GradingInstructions.js +15 -18
- package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
- package/dist/components/grading-instructions/SlateTableEditor.d.ts +22 -0
- package/dist/components/grading-instructions/SlateTableEditor.d.ts.map +1 -0
- package/dist/components/grading-instructions/SlateTableEditor.js +44 -0
- package/dist/components/grading-instructions/SlateTableEditor.js.map +1 -0
- package/dist/components/grading-instructions/SlateUtils.d.ts +5 -0
- package/dist/components/grading-instructions/SlateUtils.d.ts.map +1 -0
- package/dist/components/grading-instructions/SlateUtils.js +28 -0
- package/dist/components/grading-instructions/SlateUtils.js.map +1 -0
- package/dist/components/grading-instructions/editor/FormatButton.d.ts +8 -0
- package/dist/components/grading-instructions/editor/FormatButton.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/FormatButton.js +23 -0
- package/dist/components/grading-instructions/editor/FormatButton.js.map +1 -0
- package/dist/components/grading-instructions/editor/Formula.d.ts +17 -0
- package/dist/components/grading-instructions/editor/Formula.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/Formula.js +81 -0
- package/dist/components/grading-instructions/editor/Formula.js.map +1 -0
- package/dist/components/grading-instructions/editor/FormulaPopup.d.ts +7 -0
- package/dist/components/grading-instructions/editor/FormulaPopup.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/FormulaPopup.js +49 -0
- package/dist/components/grading-instructions/editor/FormulaPopup.js.map +1 -0
- package/dist/components/grading-instructions/editor/MathPopup.d.ts +10 -0
- package/dist/components/grading-instructions/editor/MathPopup.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/MathPopup.js +94 -0
- package/dist/components/grading-instructions/editor/MathPopup.js.map +1 -0
- package/dist/components/grading-instructions/editor/NBSP.d.ts +4 -0
- package/dist/components/grading-instructions/editor/NBSP.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/NBSP.js +17 -0
- package/dist/components/grading-instructions/editor/NBSP.js.map +1 -0
- package/dist/components/grading-instructions/editor/Table.d.ts +5 -0
- package/dist/components/grading-instructions/editor/Table.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/Table.js +224 -0
- package/dist/components/grading-instructions/editor/Table.js.map +1 -0
- package/dist/components/grading-instructions/editor/math-svg.d.ts +2 -0
- package/dist/components/grading-instructions/editor/math-svg.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/math-svg.js +22 -0
- package/dist/components/grading-instructions/editor/math-svg.js.map +1 -0
- package/dist/components/grading-instructions/editor/math.d.ts +4 -0
- package/dist/components/grading-instructions/editor/math.d.ts.map +1 -0
- package/dist/components/grading-instructions/editor/math.js +55 -0
- package/dist/components/grading-instructions/editor/math.js.map +1 -0
- package/dist/components/grading-instructions/prosemirror.d.ts +8 -0
- package/dist/components/grading-instructions/prosemirror.d.ts.map +1 -0
- package/dist/components/grading-instructions/prosemirror.js +108 -0
- package/dist/components/grading-instructions/prosemirror.js.map +1 -0
- package/dist/components/results/isExamFinishPageHook.d.ts +2 -0
- package/dist/components/results/isExamFinishPageHook.d.ts.map +1 -0
- package/dist/components/results/isExamFinishPageHook.js +7 -0
- package/dist/components/results/isExamFinishPageHook.js.map +1 -0
- package/dist/components/shared/CreateAnnotationPopup.d.ts +6 -0
- package/dist/components/shared/CreateAnnotationPopup.d.ts.map +1 -0
- package/dist/components/shared/CreateAnnotationPopup.js +11 -0
- package/dist/components/shared/CreateAnnotationPopup.js.map +1 -0
- package/dist/components/shared/Popup.d.ts +15 -0
- package/dist/components/shared/Popup.d.ts.map +1 -0
- package/dist/components/shared/Popup.js +90 -0
- package/dist/components/shared/Popup.js.map +1 -0
- package/dist/components/shared/PopupUtils.d.ts +4 -0
- package/dist/components/shared/PopupUtils.d.ts.map +1 -0
- package/dist/components/shared/PopupUtils.js +26 -0
- package/dist/components/shared/PopupUtils.js.map +1 -0
- package/dist/dom-utils.d.ts.map +1 -1
- package/dist/dom-utils.js +4 -2
- package/dist/dom-utils.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/dist/main-bundle.js.LICENSE.txt +1 -1
- package/dist/store/listenerMiddleware.d.ts +89 -0
- package/dist/store/listenerMiddleware.d.ts.map +1 -0
- package/dist/store/listenerMiddleware.js +6 -0
- package/dist/store/listenerMiddleware.js.map +1 -0
- package/package.json +3 -9
@@ -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
|
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": "^
|
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": "
|
61
|
+
"gitHead": "687e981bb75fb4a93e6e792bbbba68a676d20ede"
|
68
62
|
}
|