touchstudy-core 0.1.147 → 0.1.149
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/containers/ExamResult/configs/types.d.ts +4 -2
- package/dist/containers/PreparedTextbook/components/QuestionCompareType.d.ts +8 -0
- package/dist/containers/PreparedTextbook/components/QuestionOrderName.d.ts +9 -0
- package/dist/containers/PreparedTextbook/components/QuestionScore.d.ts +9 -0
- package/dist/containers/PreparedTextbook/components/QuestionShortInput.d.ts +9 -0
- package/dist/containers/PreparedTextbook/configs/constants.d.ts +6 -4
- package/dist/containers/PreparedTextbook/configs/functions.d.ts +4 -5
- package/dist/containers/PreparedTextbook/configs/types.d.ts +2 -2
- package/dist/index.js +415 -153
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +416 -155
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/enums/examStatus.d.ts +4 -1
- package/dist/utils/enums/index.d.ts +2 -2
- package/dist/utils/functions/index.d.ts +1 -0
- package/dist/utils/functions/questions.d.ts +2 -0
- package/dist/utils/types/examResults.d.ts +4 -2
- package/package.json +1 -1
@@ -8,8 +8,10 @@ export declare type EffectSize = {
|
|
8
8
|
questionOrder: number;
|
9
9
|
article: number;
|
10
10
|
isCorrect: boolean;
|
11
|
-
selectedAnswers
|
12
|
-
correctAnswers
|
11
|
+
selectedAnswers?: number[] | string;
|
12
|
+
correctAnswers?: number[] | string;
|
13
|
+
correctTextualAnswers?: string[];
|
14
|
+
textualAnswers?: string[];
|
13
15
|
answerResponseSignal: number | null;
|
14
16
|
problemCategories: number[];
|
15
17
|
mostSelectedAnswers: string;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import React, { FC } from "react";
|
2
|
+
import { QuestionAnswerType } from "../../../utils";
|
3
|
+
interface Props {
|
4
|
+
value: QuestionAnswerType;
|
5
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement>, value: any) => void;
|
6
|
+
}
|
7
|
+
declare const QuestionCompareType: FC<Props>;
|
8
|
+
export default QuestionCompareType;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
import { SxProps, Theme } from "@mui/material";
|
3
|
+
interface Props {
|
4
|
+
questionOrder: number;
|
5
|
+
isMath: boolean;
|
6
|
+
questionTitleStyle?: SxProps<Theme>;
|
7
|
+
}
|
8
|
+
declare const QuestionOrderName: FC<Props>;
|
9
|
+
export default QuestionOrderName;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { QuestionAnswerType } from "../../../utils";
|
2
2
|
import { HighSchoolGrade } from "./enums";
|
3
3
|
import { ArticleRequest, ChapterRequest, HeaderTable, QuestionGroupRequest, QuestionRequest, TextbookQuery, TextbookRequest } from "./types";
|
4
4
|
import * as yup from "yup";
|
@@ -44,7 +44,7 @@ export declare const DefaultQuestion: {
|
|
44
44
|
subjectId: null;
|
45
45
|
preparedType: null;
|
46
46
|
questionAnswerType: QuestionAnswerType;
|
47
|
-
|
47
|
+
correctTextualAnswers: string[];
|
48
48
|
};
|
49
49
|
export declare const DefaultArticle: {
|
50
50
|
answerCount: number;
|
@@ -55,10 +55,8 @@ export declare const DefaultTextbookOwner: {
|
|
55
55
|
academy: null;
|
56
56
|
class: null;
|
57
57
|
};
|
58
|
-
export declare const DURATION_OPTIONS: number[];
|
59
58
|
export declare const DEFAULT_ANSWER_COUNT = 5;
|
60
59
|
export declare const DEFAULT_SCORE = 2;
|
61
|
-
export declare const DEFAULT_EXAM: Exam;
|
62
60
|
export declare const preparedTextbookSchema: (t: any) => yup.ObjectSchema<{
|
63
61
|
name: string;
|
64
62
|
subjectId: number;
|
@@ -91,3 +89,7 @@ export declare const DEFAULT_QUESTION: QuestionRequest;
|
|
91
89
|
export declare const DEFAULT_QUESTION_GROUP: QuestionGroupRequest;
|
92
90
|
export declare const DEFAULT_ARTICLE: ArticleRequest;
|
93
91
|
export declare const DEFAULT_MATH_QUESTION_GROUP: QuestionGroupRequest;
|
92
|
+
export declare const CompareTypeOptions: {
|
93
|
+
label: string;
|
94
|
+
value: QuestionAnswerType;
|
95
|
+
}[];
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { QuestionGroupRequest, TextbookDetailResponse } from "./types";
|
2
|
-
import { QuestionAnswerType } from "../../../utils";
|
3
2
|
export declare const reduceToMathArticles: (textbook: any, isMath?: number | undefined) => any;
|
4
3
|
export declare const resetAllCategoriesAndQuestionTypesBySubject: (textbook: any, subject?: any) => any;
|
5
4
|
export declare const convertResponseToRequest: (selectedTextbook?: TextbookDetailResponse | undefined) => import("./types").TextbookRequest | {
|
@@ -53,8 +52,8 @@ export declare const convertResponseToRequest: (selectedTextbook?: TextbookDetai
|
|
53
52
|
correctAnswers: number[];
|
54
53
|
score: number;
|
55
54
|
questionOrder: number;
|
56
|
-
|
57
|
-
questionAnswerType: QuestionAnswerType;
|
55
|
+
correctTextualAnswers: string[];
|
56
|
+
questionAnswerType: import("../../../utils").QuestionAnswerType;
|
58
57
|
questionTypeName?: string | undefined;
|
59
58
|
}[];
|
60
59
|
articles: {
|
@@ -93,8 +92,8 @@ export declare const convertResponseToRequest: (selectedTextbook?: TextbookDetai
|
|
93
92
|
correctAnswers: number[];
|
94
93
|
score: number;
|
95
94
|
questionOrder: number;
|
96
|
-
|
97
|
-
questionAnswerType: QuestionAnswerType;
|
95
|
+
correctTextualAnswers: string[];
|
96
|
+
questionAnswerType: import("../../../utils").QuestionAnswerType;
|
98
97
|
questionTypeName?: string | undefined;
|
99
98
|
}[];
|
100
99
|
articles: {
|
@@ -73,7 +73,7 @@ export declare type QuestionRequest = {
|
|
73
73
|
correctAnswers: number[];
|
74
74
|
score: number;
|
75
75
|
questionOrder: number;
|
76
|
-
|
76
|
+
correctTextualAnswers: string[];
|
77
77
|
questionAnswerType: QuestionAnswerType;
|
78
78
|
questionTypeId?: number;
|
79
79
|
questionType?: any;
|
@@ -159,7 +159,7 @@ export declare type Question = {
|
|
159
159
|
correctAnswers: number[];
|
160
160
|
score: number;
|
161
161
|
questionOrder: number;
|
162
|
-
|
162
|
+
correctTextualAnswers: string[];
|
163
163
|
questionAnswerType: QuestionAnswerType;
|
164
164
|
questionTypeId?: number;
|
165
165
|
questionType?: any;
|