touchstudy-core 0.1.161 → 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;
@@ -0,0 +1,2 @@
1
+ export declare const BpIcon: any;
2
+ export declare const BpCheckedIcon: any;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { QuestionAnswerType } from "../../utils";
3
+ interface Props {
4
+ value?: QuestionAnswerType;
5
+ disabled?: boolean;
6
+ onChange: (value: any) => void;
7
+ }
8
+ declare const QuestionAnswerTypeSelector: FC<Props>;
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>>;
@@ -0,0 +1,11 @@
1
+ import React, { PropsWithChildren } from "react";
2
+ import { QuestionResponse } from "../../../utils";
3
+ interface Props extends PropsWithChildren {
4
+ data: QuestionResponse;
5
+ answerCount: number;
6
+ disabled?: boolean;
7
+ index: number;
8
+ onChangeQuestion: (questionIndex: number, question: QuestionResponse) => void;
9
+ }
10
+ declare const _default: React.NamedExoticComponent<Props>;
11
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { FC } from "react";
2
+ import { ArticleGroup, QuestionResponse } from "../../../utils/types";
3
+ interface Props {
4
+ data: ArticleGroup;
5
+ expandedIndex: number;
6
+ open: boolean;
7
+ categories: any[];
8
+ isLoadingCategories: boolean;
9
+ optionKeyIndex?: number;
10
+ disabled?: boolean;
11
+ deletable?: boolean;
12
+ onToggle: (index: number) => void;
13
+ onDelete: (article: number) => void;
14
+ onOpenCategoryMenu: (index: number) => void;
15
+ onCloseCategoryMenu: () => void;
16
+ onChangeQuestions: (articleNumber: number, questions: QuestionResponse[]) => void;
17
+ }
18
+ declare const QuestionGroupBlock: FC<Props>;
19
+ export default QuestionGroupBlock;
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import { FormikProps } from "formik";
3
+ import { QuestionGroupRequest, TextbookRequest } from "../configs/types";
4
+ interface Props extends FormikProps<TextbookRequest> {
5
+ path: string;
6
+ isMath: boolean;
7
+ open: boolean;
8
+ data: QuestionGroupRequest;
9
+ isLoadingCategories: boolean;
10
+ optionKey: string;
11
+ categories: any[];
12
+ isLoadingQuestionTypes: boolean;
13
+ questionTypes: any[];
14
+ disabled?: boolean;
15
+ onQuestioStartOrderChange: (order: number) => void;
16
+ onDelete: (text: string, confirmText: string, path: string, index: number) => void;
17
+ onOpenSubCategoryMenu: (path: string, id?: number) => void;
18
+ onOpenCategoryMenu: (path: string) => void;
19
+ onCloseCategoryMenu: () => void;
20
+ onOpenQuestionTypeMenu: (path: string, categoryId?: number, subCategoryId?: number) => void;
21
+ onCloseQuestionTypeMenu: () => void;
22
+ }
23
+ declare const _default: React.NamedExoticComponent<Props>;
24
+ export default _default;
@@ -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 @@
1
+ export declare const handleKeyDown: (e: any) => void;
@@ -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,6 @@
1
+ export declare const labelStyle: {
2
+ textOverflow: string;
3
+ overflowX: string;
4
+ width: string;
5
+ whiteSpace: string;
6
+ };
@@ -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;