touchstudy-core 0.1.162 → 0.1.163

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.
@@ -1,4 +1,4 @@
1
- import React, { FC } from "react";
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;
@@ -3,6 +3,7 @@ import { QuestionAnswerType } from "../../utils";
3
3
  interface Props {
4
4
  value?: QuestionAnswerType;
5
5
  disabled?: boolean;
6
+ onChange: (value: any) => void;
6
7
  }
7
8
  declare const QuestionAnswerTypeSelector: FC<Props>;
8
9
  export default QuestionAnswerTypeSelector;
@@ -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 { SxProps, Theme } from "@mui/material";
3
- import { FormikProps } from "formik";
4
- import { QuestionRequest, TextbookRequest } from "../configs/types";
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
- questionTitleStyle?: SxProps<Theme>;
12
- optionKey: string;
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 { FormikProps } from "formik";
3
- import { QuestionRequest } from "../../../utils/types";
4
- interface Props extends FormikProps<any> {
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
- isLoadingQuestionTypes: boolean;
13
- questionTypes: any[];
14
- optionKey: string;
9
+ optionKeyIndex?: number;
15
10
  disabled?: boolean;
11
+ deletable?: boolean;
16
12
  onToggle: (index: number) => void;
17
- onQuestionCountChange: (count: number, index: number) => void;
18
- onDelete: (text: string, confirmText: string, path: string, index: number) => void;
19
- onOpenCategoryMenu: (path: string) => void;
13
+ onDelete: (article: number) => void;
14
+ onOpenCategoryMenu: (index: number) => void;
20
15
  onCloseCategoryMenu: () => void;
21
- onCopiedPrevQuestionGroup: (path: string, paths: number[]) => QuestionRequest | undefined;
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;
@@ -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: string;
26
+ label: any;
27
27
  }[];
28
28
  export declare type NotificationRequest = {
29
29
  id?: number | string;