touchstudy-core 0.1.21 → 0.1.23

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.
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { SVGProps } from 'react';
3
+ declare const iconPrintFill: ({ width, height, color }: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default iconPrintFill;
@@ -15,6 +15,7 @@ export interface IChatItemWithActionProps extends IChatItemProps {
15
15
  showTimestamp?: boolean;
16
16
  showName?: boolean;
17
17
  isStudent?: boolean;
18
+ toggleImageDialog?: () => void;
18
19
  }
19
20
  export declare enum ChatItemType {
20
21
  Default = 0,
@@ -3,6 +3,8 @@ export declare const getListConversation: (query: ConversationFilter) => Promise
3
3
  export declare const createConversation: (studentId: number) => Promise<import("axios").AxiosResponse<any, any>>;
4
4
  export declare const apiAddMessage: (conversationId: number, message: MessageRequest) => Promise<import("axios").AxiosResponse<any, any>>;
5
5
  export declare const getMessagesByConversation: (conversationId: number, filter: MessageFilter) => Promise<import("axios").AxiosResponse<any, any>>;
6
+ export declare const updateLastTimeReadConversation: (conversationId: number) => Promise<import("axios").AxiosResponse<any, any>>;
7
+ export declare const getImage: (content: string) => Promise<import("axios").AxiosResponse<any, any>>;
6
8
  export declare const completeConversation: (conversationId: number) => Promise<import("axios").AxiosResponse<any, any>>;
7
9
  export declare const apiMarkReadMessage: (conversationId: number, messageId: number) => Promise<import("axios").AxiosResponse<any, any>>;
8
10
  export declare const apiGetConversationByUserId: (userId: number) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ declare type Props = {
3
+ open: boolean;
4
+ toggleDialog: () => void;
5
+ content: string;
6
+ downloadFile: (content: string) => void;
7
+ };
8
+ declare const ImageDetailDialog: ({ open, toggleDialog, content, downloadFile }: Props) => React.JSX.Element;
9
+ export default ImageDetailDialog;
@@ -2,5 +2,6 @@ declare const useDialog: () => {
2
2
  openConfirmDialog: boolean;
3
3
  toggleConfirmDialog: () => void;
4
4
  handleConfirm: (conversationId: number) => Promise<void>;
5
+ downloadFile: (content: string) => Promise<void>;
5
6
  };
6
7
  export default useDialog;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ declare type TabPanelProps = {
3
+ children?: React.ReactNode;
4
+ index: number;
5
+ value: number;
6
+ };
7
+ declare const CustomTabPanel: (props: TabPanelProps) => React.JSX.Element;
8
+ export default CustomTabPanel;
@@ -7,6 +7,7 @@ interface Props {
7
7
  size?: DialogProps["maxWidth"];
8
8
  isShowHeader?: boolean;
9
9
  titleClassName?: string;
10
+ minWidth?: string;
10
11
  }
11
12
  declare const CommonDialog: FC<Props & PropsWithChildren>;
12
13
  export default CommonDialog;
@@ -0,0 +1,9 @@
1
+ import { CustomSelectOptionProps } from "../Selects/CustomSelectOption";
2
+ import { TimeZoneLabels } from "./configs/enums";
3
+ import { FC } from "react";
4
+ interface Props extends CustomSelectOptionProps {
5
+ value?: number;
6
+ timeZoneLabelType?: TimeZoneLabels;
7
+ }
8
+ declare const TimeZoneSelector: FC<Props>;
9
+ export default TimeZoneSelector;
@@ -0,0 +1,6 @@
1
+ export declare enum TimeZoneLabels {
2
+ Original = 0,
3
+ AltName = 1,
4
+ Abbrev = 2,
5
+ OffsetHidden = 3
6
+ }
@@ -0,0 +1,5 @@
1
+ declare const useTab: () => {
2
+ selected: number;
3
+ handleChangeTab: (newValue: number) => void;
4
+ };
5
+ export default useTab;
@@ -21,5 +21,6 @@ declare const useExamDetailView: (props: Props) => {
21
21
  handleChangeAnswerCount: (article: number, newAnswerCount: number, answerCount: number) => void;
22
22
  handleChangeQuestionCount: (article: number, questionCount: number, answerCount: number) => void;
23
23
  handleChangeCategory: (article: number, categoryId: number) => void;
24
+ handleDeleteArticle: (article: number) => void;
24
25
  };
25
26
  export default useExamDetailView;
@@ -5,5 +5,6 @@ export declare enum AuthenticationMessage {
5
5
  export declare enum Role {
6
6
  Student = "Student",
7
7
  Teacher = "Teacher",
8
- Admin = "Admin"
8
+ Admin = "Admin",
9
+ AcademyAdmin = "AcademyAdmin"
9
10
  }