touchstudy-core 0.1.162 → 0.1.164
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/Chats/components/InputChat.d.ts +1 -2
- package/dist/components/Chats/components/TinyChatEditor.d.ts +10 -0
- package/dist/components/Dialogs/CreateQuestionDialog.d.ts +15 -0
- package/dist/components/Selectors/QuestionAnswerTypeSelector.d.ts +1 -0
- package/dist/containers/Classes/apiClients/classService.d.ts +1 -0
- package/dist/containers/Classes/configs/types.d.ts +1 -0
- package/dist/containers/Classes/hooks/useClassList.d.ts +1 -0
- package/dist/containers/Exams/apiClients/categoryService.d.ts +4 -0
- package/dist/containers/Exams/components/QuestionBlock.d.ts +5 -13
- package/dist/containers/Exams/components/QuestionGroupBlock.d.ts +8 -13
- package/dist/containers/Exams/components/QuestionShortInput.d.ts +10 -0
- package/dist/containers/Exams/hooks/useExamOptions.d.ts +8 -0
- package/dist/containers/Notes/components/NoteTinyEditor.d.ts +10 -0
- package/dist/containers/Notifications/configs/types.d.ts +2 -2
- package/dist/index.js +374 -136
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +375 -137
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/enums/recentUserAction.d.ts +13 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { FC } from "react";
|
2
2
|
import { MessageRequest } from "../configs/types";
|
3
3
|
export interface IInputChatProps {
|
4
4
|
text: string;
|
@@ -10,7 +10,6 @@ export interface IInputChatProps {
|
|
10
10
|
handleDeleteSelectedImage: () => void;
|
11
11
|
}
|
12
12
|
interface Props extends IInputChatProps {
|
13
|
-
inputRef: React.RefObject<HTMLInputElement>;
|
14
13
|
}
|
15
14
|
declare const InputChat: FC<Props>;
|
16
15
|
export default InputChat;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "@wiris/mathtype-tinymce6";
|
3
|
+
declare type Props = {
|
4
|
+
config?: any;
|
5
|
+
initValue: string;
|
6
|
+
onChange: any;
|
7
|
+
disabled?: boolean;
|
8
|
+
};
|
9
|
+
declare const TinyChatEditor: ({ disabled, onChange, initValue, config }: Props) => React.JSX.Element;
|
10
|
+
export default TinyChatEditor;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from "react";
|
2
|
+
declare type Props = {
|
3
|
+
openDialog: boolean;
|
4
|
+
onClose: () => void;
|
5
|
+
initialValues: any;
|
6
|
+
handleCreateQuestion: any;
|
7
|
+
options: any[];
|
8
|
+
schema: any;
|
9
|
+
labelQuestion?: string;
|
10
|
+
nameQuestion: string;
|
11
|
+
labelContent?: string;
|
12
|
+
nameContent: string;
|
13
|
+
};
|
14
|
+
export default function CommonCreateNewQuestionDialog({ handleCreateQuestion, openDialog, initialValues, onClose, options, schema, labelQuestion, nameQuestion, labelContent, nameContent }: Props): React.JSX.Element;
|
15
|
+
export {};
|
@@ -10,6 +10,7 @@ export declare const getClassByIdApi: (id: number) => Promise<import("axios").Ax
|
|
10
10
|
export declare const createClassApi: (model: ClassRequestBody) => Promise<import("axios").AxiosResponse<any, any>>;
|
11
11
|
export declare const updateClassApi: (id: number, model: ClassRequestBody) => Promise<import("axios").AxiosResponse<any, any>>;
|
12
12
|
export declare const deleteClassApi: (id: number) => Promise<import("axios").AxiosResponse<any, any>>;
|
13
|
+
export declare const hiddenClassesApi: (hidden: boolean, classId: number) => Promise<import("axios").AxiosResponse<any, any>>;
|
13
14
|
export declare const addStudentToClass: (id: number, studentIds: number[]) => Promise<import("axios").AxiosResponse<any, any>>;
|
14
15
|
export declare const removeStudentFromClass: (id: number, studentId: number) => Promise<import("axios").AxiosResponse<any, any>>;
|
15
16
|
export declare const addTeacherToClass: (id: number, teacherIds: number[]) => Promise<import("axios").AxiosResponse<any, any>>;
|
@@ -16,5 +16,6 @@ declare const useClassList: (history: any, classCreateUrl?: string | undefined,
|
|
16
16
|
handleUpdateClass: (value: ClassResponse) => void;
|
17
17
|
handleChangePage: (_: any, page: number) => void;
|
18
18
|
handleDeleteClass: () => Promise<void>;
|
19
|
+
handleToggleHidden: (e: ChangeEvent<HTMLInputElement>, classId: number) => Promise<void>;
|
19
20
|
};
|
20
21
|
export default useClassList;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export declare const getCategoryListAdminApi: (data: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
2
|
+
export declare const getCategoryListApi: (data: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
3
|
+
export declare const getCategoryQuestionTypeListApi: (isSuper: boolean, data: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
4
|
+
export declare const getSuperAdminCategoryListAdminApi: (data: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
@@ -1,19 +1,11 @@
|
|
1
1
|
import React, { PropsWithChildren } from "react";
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
interface Props extends PropsWithChildren, FormikProps<TextbookRequest> {
|
6
|
-
data: QuestionRequest;
|
2
|
+
import { QuestionResponse } from "../../../utils";
|
3
|
+
interface Props extends PropsWithChildren {
|
4
|
+
data: QuestionResponse;
|
7
5
|
answerCount: number;
|
8
|
-
path: string;
|
9
|
-
isMath: boolean;
|
10
6
|
disabled?: boolean;
|
11
|
-
|
12
|
-
|
13
|
-
isLoadingQuestionTypes: boolean;
|
14
|
-
questionTypes: any[];
|
15
|
-
onOpenQuestionTypeMenu: (key: string) => void;
|
16
|
-
onCloseQuestionTypeMenu: () => void;
|
7
|
+
index: number;
|
8
|
+
onChangeQuestion: (questionIndex: number, question: QuestionResponse) => void;
|
17
9
|
}
|
18
10
|
declare const _default: React.NamedExoticComponent<Props>;
|
19
11
|
export default _default;
|
@@ -1,24 +1,19 @@
|
|
1
1
|
import { FC } from "react";
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
data: any;
|
2
|
+
import { ArticleGroup, QuestionResponse } from "../../../utils/types";
|
3
|
+
interface Props {
|
4
|
+
data: ArticleGroup;
|
6
5
|
expandedIndex: number;
|
7
6
|
open: boolean;
|
8
|
-
paths: number[];
|
9
|
-
path: string;
|
10
7
|
categories: any[];
|
11
8
|
isLoadingCategories: boolean;
|
12
|
-
|
13
|
-
questionTypes: any[];
|
14
|
-
optionKey: string;
|
9
|
+
optionKeyIndex?: number;
|
15
10
|
disabled?: boolean;
|
11
|
+
deletable?: boolean;
|
16
12
|
onToggle: (index: number) => void;
|
17
|
-
|
18
|
-
|
19
|
-
onOpenCategoryMenu: (path: string) => void;
|
13
|
+
onDelete: (article: number) => void;
|
14
|
+
onOpenCategoryMenu: (index: number) => void;
|
20
15
|
onCloseCategoryMenu: () => void;
|
21
|
-
|
16
|
+
onChangeQuestions: (articleNumber: number, questions: QuestionResponse[]) => void;
|
22
17
|
}
|
23
18
|
declare const QuestionGroupBlock: FC<Props>;
|
24
19
|
export default QuestionGroupBlock;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React, { ChangeEvent } from "react";
|
2
|
+
interface Props {
|
3
|
+
index: number;
|
4
|
+
value: string;
|
5
|
+
deletable?: boolean;
|
6
|
+
onChange: (e: ChangeEvent<HTMLInputElement>, index: number) => void;
|
7
|
+
onDelete: () => void;
|
8
|
+
}
|
9
|
+
declare const _default: React.NamedExoticComponent<Props>;
|
10
|
+
export default _default;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
declare const useExamOptions: (subjectId: number) => {
|
2
|
+
isSuperAdmin: boolean;
|
3
|
+
categories: any[];
|
4
|
+
isLoadingCategories: boolean;
|
5
|
+
getCategories: (textSearch?: string | undefined) => Promise<void>;
|
6
|
+
resetCategories: () => void;
|
7
|
+
};
|
8
|
+
export default useExamOptions;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "@wiris/mathtype-tinymce6";
|
3
|
+
declare type Props = {
|
4
|
+
config?: any;
|
5
|
+
initValue: string;
|
6
|
+
onChange: any;
|
7
|
+
disabled?: boolean;
|
8
|
+
};
|
9
|
+
declare const NoteTinyEditor: ({ disabled, onChange, initValue, config }: Props) => React.JSX.Element;
|
10
|
+
export default NoteTinyEditor;
|
@@ -21,9 +21,9 @@ export declare enum TypeNotificationEnum {
|
|
21
21
|
Class = 2,
|
22
22
|
Student = 3
|
23
23
|
}
|
24
|
-
export declare const optionTypeNotification: {
|
24
|
+
export declare const optionTypeNotification: (t: any) => {
|
25
25
|
value: TypeNotificationEnum;
|
26
|
-
label:
|
26
|
+
label: any;
|
27
27
|
}[];
|
28
28
|
export declare type NotificationRequest = {
|
29
29
|
id?: number | string;
|