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.
@@ -8,8 +8,10 @@ export declare type EffectSize = {
8
8
  questionOrder: number;
9
9
  article: number;
10
10
  isCorrect: boolean;
11
- selectedAnswers: string;
12
- correctAnswers: string;
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;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ interface Props {
3
+ path: string;
4
+ isTabletUp: boolean;
5
+ disabled?: boolean;
6
+ setFieldValue: any;
7
+ }
8
+ declare const _default: React.NamedExoticComponent<Props>;
9
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ interface Props {
3
+ name: string;
4
+ value: string;
5
+ deletable?: boolean;
6
+ onDelete: () => void;
7
+ }
8
+ declare const _default: React.NamedExoticComponent<Props>;
9
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { Exam, QuestionAnswerType } from "../../../utils";
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
- textualAnswer: string;
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
- textualAnswer: string;
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
- textualAnswer: string;
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
- textualAnswer: string;
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
- textualAnswer: string;
162
+ correctTextualAnswers: string[];
163
163
  questionAnswerType: QuestionAnswerType;
164
164
  questionTypeId?: number;
165
165
  questionType?: any;