@tinyweb_dev/oe-exam-sdk 0.2.9 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/exams/take/ExamTakingPageContainer.js +6 -0
- package/dist/components/exams/take/components/QuestionRenderer.js +7 -3
- package/dist/components/exams/take/components/question-renderers/MoversWordOrderingGroupRenderer.d.ts +13 -0
- package/dist/components/exams/take/components/question-renderers/MoversWordOrderingGroupRenderer.js +30 -0
- package/dist/components/exams/take/components/question-renderers/index.d.ts +1 -0
- package/dist/components/exams/take/components/question-renderers/index.js +1 -0
- package/dist/components/exams/take/utils/answer-transformers.js +8 -1
- package/dist/components/exams/take/utils/question-transformers.d.ts +16 -1
- package/dist/components/exams/take/utils/question-transformers.js +47 -2
- package/dist/components/questions/_shared/config/question-types.config.js +18 -0
- package/dist/components/questions/_shared/types/choose-the-correct-answer-group.type.d.ts +1 -0
- package/dist/components/questions/_shared/types/index.d.ts +1 -0
- package/dist/components/questions/_shared/types/index.js +1 -0
- package/dist/components/questions/_shared/types/match-columns-to-make-sentences.type.d.ts +56 -0
- package/dist/components/questions/_shared/types/match-columns-to-make-sentences.type.js +2 -0
- package/dist/components/questions/_shared/types/match-word-to-picture-group.type.d.ts +35 -0
- package/dist/components/questions/_shared/types/match-word-to-picture-group.type.js +2 -0
- package/dist/components/questions/_shared/types/word-ordering-group.type.d.ts +34 -0
- package/dist/components/questions/_shared/types/word-ordering-group.type.js +2 -0
- package/dist/components/questions/components/QuestionSearchDropdown.js +3 -0
- package/dist/components/questions/components/QuestionTypeSelector.js +3 -0
- package/dist/components/questions/creator/question-type-registry.js +6 -0
- package/dist/components/questions/types/choose-the-correct-answer-group/ChooseTheCorrectAnswerGroupClient.js +1 -1
- package/dist/components/questions/types/choose-the-correct-answer-group/ChooseTheCorrectAnswerGroupCreator.js +5 -3
- package/dist/components/questions/types/choose-the-correct-answer-group/map-choose-the-correct-answer-group-data.js +16 -2
- package/dist/components/questions/types/choose-the-correct-answer-group/transform.js +4 -0
- package/dist/components/questions/types/match-columns-to-make-sentences/MatchColumnsToMakeSentencesClient.d.ts +2 -0
- package/dist/components/questions/types/match-columns-to-make-sentences/MatchColumnsToMakeSentencesClient.js +74 -0
- package/dist/components/questions/types/match-columns-to-make-sentences/MatchColumnsToMakeSentencesCreator.d.ts +2 -0
- package/dist/components/questions/types/match-columns-to-make-sentences/MatchColumnsToMakeSentencesCreator.js +222 -0
- package/dist/components/questions/types/match-columns-to-make-sentences/index.d.ts +5 -0
- package/dist/components/questions/types/match-columns-to-make-sentences/index.js +5 -0
- package/dist/components/questions/types/match-columns-to-make-sentences/map-match-columns-to-make-sentences-data.d.ts +8 -0
- package/dist/components/questions/types/match-columns-to-make-sentences/map-match-columns-to-make-sentences-data.js +199 -0
- package/dist/components/questions/types/match-columns-to-make-sentences/register.d.ts +2 -0
- package/dist/components/questions/types/match-columns-to-make-sentences/register.js +36 -0
- package/dist/components/questions/types/match-columns-to-make-sentences/transform.d.ts +2 -0
- package/dist/components/questions/types/match-columns-to-make-sentences/transform.js +66 -0
- package/dist/components/questions/types/match-word-to-picture-group/MatchWordToPictureGroupClient.d.ts +2 -0
- package/dist/components/questions/types/match-word-to-picture-group/MatchWordToPictureGroupClient.js +65 -0
- package/dist/components/questions/types/match-word-to-picture-group/MatchWordToPictureGroupCreator.d.ts +2 -0
- package/dist/components/questions/types/match-word-to-picture-group/MatchWordToPictureGroupCreator.js +95 -0
- package/dist/components/questions/types/match-word-to-picture-group/MatchWordToPictureGroupImageField.d.ts +6 -0
- package/dist/components/questions/types/match-word-to-picture-group/MatchWordToPictureGroupImageField.js +16 -0
- package/dist/components/questions/types/match-word-to-picture-group/index.d.ts +5 -0
- package/dist/components/questions/types/match-word-to-picture-group/index.js +5 -0
- package/dist/components/questions/types/match-word-to-picture-group/map-match-word-to-picture-group-data.d.ts +4 -0
- package/dist/components/questions/types/match-word-to-picture-group/map-match-word-to-picture-group-data.js +77 -0
- package/dist/components/questions/types/match-word-to-picture-group/register.d.ts +2 -0
- package/dist/components/questions/types/match-word-to-picture-group/register.js +36 -0
- package/dist/components/questions/types/match-word-to-picture-group/transform.d.ts +2 -0
- package/dist/components/questions/types/match-word-to-picture-group/transform.js +36 -0
- package/dist/components/questions/types/word-ordering-group/WordOrderingGroupClient.d.ts +2 -0
- package/dist/components/questions/types/word-ordering-group/WordOrderingGroupClient.js +25 -0
- package/dist/components/questions/types/word-ordering-group/WordOrderingGroupCreator.d.ts +2 -0
- package/dist/components/questions/types/word-ordering-group/WordOrderingGroupCreator.js +106 -0
- package/dist/components/questions/types/word-ordering-group/index.d.ts +5 -0
- package/dist/components/questions/types/word-ordering-group/index.js +5 -0
- package/dist/components/questions/types/word-ordering-group/map-word-ordering-group-data.d.ts +4 -0
- package/dist/components/questions/types/word-ordering-group/map-word-ordering-group-data.js +74 -0
- package/dist/components/questions/types/word-ordering-group/register.d.ts +2 -0
- package/dist/components/questions/types/word-ordering-group/register.js +36 -0
- package/dist/components/questions/types/word-ordering-group/transform.d.ts +2 -0
- package/dist/components/questions/types/word-ordering-group/transform.js +33 -0
- package/dist/components/questions/viewer/MatchColumnsToMakeSentencesViewer.d.ts +8 -0
- package/dist/components/questions/viewer/MatchColumnsToMakeSentencesViewer.js +49 -0
- package/dist/components/questions/viewer/MatchWordToPictureGroupViewer.js +2 -2
- package/dist/components/questions/viewer/QuestionViewer.js +6 -0
- package/dist/components/questions/viewer/WordOrderingGroupViewer.d.ts +7 -0
- package/dist/components/questions/viewer/WordOrderingGroupViewer.js +29 -0
- package/dist/components/questions/viewer/index.d.ts +2 -0
- package/dist/components/questions/viewer/index.js +2 -0
- package/dist/components/results/renderers/review-question-body-dedicated.js +1 -1
- package/dist/components/results/renderers/review-question-body-movers.js +6 -2
- package/dist/components/results/review-data.js +13 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/shared/constants/question-skills.js +6 -0
- package/dist/shared/lib/utils/question-reverse-transform.js +111 -2
- package/dist/shared/lib/utils/question-transform.js +6 -0
- package/dist/shared/types/common.types.d.ts +1 -1
- package/dist/shared/types/questions/choose-the-correct-answer-group.d.ts +1 -0
- package/dist/shared/types/questions/index.d.ts +3 -0
- package/dist/shared/types/questions/index.js +6 -0
- package/dist/shared/types/questions/match-columns-to-make-sentences.d.ts +50 -0
- package/dist/shared/types/questions/match-columns-to-make-sentences.js +1 -0
- package/dist/shared/types/questions/match-word-to-picture-group.d.ts +31 -0
- package/dist/shared/types/questions/match-word-to-picture-group.js +1 -0
- package/dist/shared/types/questions/word-ordering-group.d.ts +28 -0
- package/dist/shared/types/questions/word-ordering-group.js +1 -0
- package/package.json +1 -1
|
@@ -54,6 +54,12 @@ export * from './find-words-in-matrix';
|
|
|
54
54
|
export * from './match-word-to-picture';
|
|
55
55
|
// MATCHING_WITH_LINES_GROUP
|
|
56
56
|
export * from './matching-with-lines-group';
|
|
57
|
+
// MATCH_COLUMNS_TO_MAKE_SENTENCES
|
|
58
|
+
export * from './match-columns-to-make-sentences';
|
|
59
|
+
// MATCH_WORD_TO_PICTURE_GROUP
|
|
60
|
+
export * from './match-word-to-picture-group';
|
|
61
|
+
// WORD_ORDERING_GROUP
|
|
62
|
+
export * from './word-ordering-group';
|
|
57
63
|
// TRUE_FALSE_CORRECT_GROUP
|
|
58
64
|
export * from './true-false-correct-group';
|
|
59
65
|
// FILL_IN_BLANK_GROUP
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const MATCH_COLUMNS_TO_MAKE_SENTENCE_ITEM_TYPE: "MATCH_COLUMNS_TO_MAKE_SENTENCE";
|
|
2
|
+
export interface MatchColumnsFragment {
|
|
3
|
+
id: string;
|
|
4
|
+
text: string;
|
|
5
|
+
}
|
|
6
|
+
export interface MatchColumnsColumn {
|
|
7
|
+
id: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
role: 'stem' | 'choice';
|
|
10
|
+
fragments: MatchColumnsFragment[];
|
|
11
|
+
}
|
|
12
|
+
export interface MatchColumnsItemAnswer {
|
|
13
|
+
fragmentIds: string[];
|
|
14
|
+
sentence: string;
|
|
15
|
+
}
|
|
16
|
+
export interface MatchColumnsGroupItemContent {
|
|
17
|
+
stemFragmentId: string;
|
|
18
|
+
}
|
|
19
|
+
export interface MatchColumnsGroupItem {
|
|
20
|
+
questionType?: typeof MATCH_COLUMNS_TO_MAKE_SENTENCE_ITEM_TYPE;
|
|
21
|
+
isExample?: boolean;
|
|
22
|
+
content: MatchColumnsGroupItemContent;
|
|
23
|
+
correctAnswer?: {
|
|
24
|
+
answer: MatchColumnsItemAnswer;
|
|
25
|
+
};
|
|
26
|
+
points?: number;
|
|
27
|
+
questionNumber?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface MatchColumnsGroupContent {
|
|
30
|
+
meta?: {
|
|
31
|
+
title?: string;
|
|
32
|
+
instruction?: string;
|
|
33
|
+
};
|
|
34
|
+
columns: MatchColumnsColumn[];
|
|
35
|
+
items: MatchColumnsGroupItem[];
|
|
36
|
+
}
|
|
37
|
+
export interface MatchColumnsGroupCorrectAnswer {
|
|
38
|
+
answer: MatchColumnsItemAnswer[];
|
|
39
|
+
}
|
|
40
|
+
export interface MatchColumnsGroupAPIPayload {
|
|
41
|
+
id?: string;
|
|
42
|
+
questionType: 'MATCH_COLUMNS_TO_MAKE_SENTENCES';
|
|
43
|
+
content: MatchColumnsGroupContent;
|
|
44
|
+
correctAnswer: MatchColumnsGroupCorrectAnswer;
|
|
45
|
+
points: number;
|
|
46
|
+
explanation?: string;
|
|
47
|
+
questionNumber: number;
|
|
48
|
+
partId?: string;
|
|
49
|
+
partNo?: number;
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const MATCH_COLUMNS_TO_MAKE_SENTENCE_ITEM_TYPE = 'MATCH_COLUMNS_TO_MAKE_SENTENCE';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const MATCH_WORD_TO_PICTURE_ITEM_TYPE: "MATCH_WORD_TO_PICTURE";
|
|
2
|
+
export interface MatchWordToPictureGroupItem {
|
|
3
|
+
questionType?: typeof MATCH_WORD_TO_PICTURE_ITEM_TYPE;
|
|
4
|
+
isExample?: boolean;
|
|
5
|
+
content: {
|
|
6
|
+
imageUrl: string;
|
|
7
|
+
};
|
|
8
|
+
correctAnswer?: {
|
|
9
|
+
answer: string;
|
|
10
|
+
};
|
|
11
|
+
points?: number;
|
|
12
|
+
questionNumber?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface MatchWordToPictureGroupContent {
|
|
15
|
+
meta?: {
|
|
16
|
+
instruction?: string;
|
|
17
|
+
wordBank?: string[];
|
|
18
|
+
};
|
|
19
|
+
items: MatchWordToPictureGroupItem[];
|
|
20
|
+
}
|
|
21
|
+
export interface MatchWordToPictureGroupAPIPayload {
|
|
22
|
+
id?: string;
|
|
23
|
+
questionType: 'MATCH_WORD_TO_PICTURE_GROUP';
|
|
24
|
+
content: MatchWordToPictureGroupContent;
|
|
25
|
+
correctAnswer: {
|
|
26
|
+
answer: string[];
|
|
27
|
+
};
|
|
28
|
+
points: number;
|
|
29
|
+
explanation?: string;
|
|
30
|
+
questionNumber: number;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const MATCH_WORD_TO_PICTURE_ITEM_TYPE = 'MATCH_WORD_TO_PICTURE';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const WORD_ORDERING_ITEM_TYPE: "WORD_ORDERING";
|
|
2
|
+
export interface WordOrderingGroupItem {
|
|
3
|
+
questionType?: typeof WORD_ORDERING_ITEM_TYPE;
|
|
4
|
+
isExample?: boolean;
|
|
5
|
+
content: {
|
|
6
|
+
words: string[];
|
|
7
|
+
};
|
|
8
|
+
correctAnswer?: {
|
|
9
|
+
answer: string[];
|
|
10
|
+
};
|
|
11
|
+
points?: number;
|
|
12
|
+
questionNumber?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface WordOrderingGroupAPIPayload {
|
|
15
|
+
questionType: 'WORD_ORDERING_GROUP';
|
|
16
|
+
content: {
|
|
17
|
+
meta?: {
|
|
18
|
+
instruction?: string;
|
|
19
|
+
};
|
|
20
|
+
items: WordOrderingGroupItem[];
|
|
21
|
+
};
|
|
22
|
+
correctAnswer: {
|
|
23
|
+
answer: string[][];
|
|
24
|
+
};
|
|
25
|
+
points: number;
|
|
26
|
+
explanation?: string;
|
|
27
|
+
questionNumber: number;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const WORD_ORDERING_ITEM_TYPE = 'WORD_ORDERING';
|