touchstudy-core 0.1.47 → 0.1.49
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/containers/Login/apiClient/index.d.ts +10 -0
- package/dist/containers/Login/hooks/useLoginWithPassword.d.ts +14 -0
- package/dist/containers/Login/views/LoginWithPassword.d.ts +11 -0
- package/dist/containers/Textbooks/hooks/useTextbookList.d.ts +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +558 -52
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1436 -932
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/hooks/useList.d.ts +2 -1
- package/dist/utils/types/PagingResponse.d.ts +7 -0
- package/package.json +1 -1
@@ -1 +1,11 @@
|
|
1
1
|
export declare const getGoogleClientId: () => Promise<import("axios").AxiosResponse<any, any>>;
|
2
|
+
export declare const signInApi: ({ email, password, role }: {
|
3
|
+
email: string;
|
4
|
+
password: string;
|
5
|
+
role: string;
|
6
|
+
}) => Promise<import("axios").AxiosResponse<any, any>>;
|
7
|
+
export declare const signInSuperAdminApi: ({ email, password, role }: {
|
8
|
+
email: string;
|
9
|
+
password: string;
|
10
|
+
role: string;
|
11
|
+
}) => Promise<import("axios").AxiosResponse<any, any>>;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Role } from './../../../utils/constants';
|
2
|
+
declare type Props = {
|
3
|
+
onNavigate: Function;
|
4
|
+
role?: Role;
|
5
|
+
homeAcademyUrl: string;
|
6
|
+
homeUrl: string;
|
7
|
+
registerUrl?: string;
|
8
|
+
};
|
9
|
+
declare const useLogin: ({ onNavigate, role, homeAcademyUrl, homeUrl, registerUrl }: Props) => {
|
10
|
+
handleSubmit: (event: React.FormEvent<HTMLFormElement>) => Promise<void>;
|
11
|
+
emailError: string;
|
12
|
+
passwordError: string;
|
13
|
+
};
|
14
|
+
export default useLogin;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { Role } from '../../../utils/constants';
|
3
|
+
declare type Props = {
|
4
|
+
onNavigate: any;
|
5
|
+
role?: Role;
|
6
|
+
homeAcademyUrl: string;
|
7
|
+
homeUrl: string;
|
8
|
+
registerUrl?: string;
|
9
|
+
};
|
10
|
+
export default function SignIn({ onNavigate, role, homeAcademyUrl, homeUrl, registerUrl }: Props): React.JSX.Element;
|
11
|
+
export {};
|
@@ -4,7 +4,7 @@ import { TextbookListProps } from "../views/TextbookList";
|
|
4
4
|
declare const useTextbookList: (props: TextbookListProps) => {
|
5
5
|
filter: import("../../../utils/types").SearchQuery;
|
6
6
|
textSearchRef: import("react").RefObject<HTMLInputElement>;
|
7
|
-
|
7
|
+
paging: import("../../..").PagingResponse;
|
8
8
|
textbooks: TextbookResponse[];
|
9
9
|
selectedTextbook: TextbookResponse | undefined;
|
10
10
|
handleSort: (sortColumnName: string) => void;
|
package/dist/index.d.ts
CHANGED
@@ -60,5 +60,7 @@ import InputText from "./components/Inputs/InputText";
|
|
60
60
|
import * as Textbook from "./containers/Textbooks/views";
|
61
61
|
import SubjectSelector from "./components/Selectors/SubjectSelector";
|
62
62
|
import * as timeUtils from "./utils/times";
|
63
|
+
import LoginWithPassword from './containers/Login/views/LoginWithPassword';
|
63
64
|
import Header from "./layouts/Header";
|
64
|
-
|
65
|
+
import { DEFAULT_PAGING_RESPONSE, PagingResponse } from "./utils/types/pagingResponse";
|
66
|
+
export { diffFromNow, formatTime, utcToLocalTime, setLoading, setReadyRegisterPusher, BASE_URL, SUPER_ADMIN_BASE_URL, ACCESS_TOKEN, Login, store, setAlert, setUser, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, CustomPagination, useGoogleSignOut, PUSHER_CONFIG, ExamEvent, EXAM_CHANNEL, EXAM_STUDENT_CHANNEL, setLanguage, i18n, TheLanguageDropdown, TheAcademyDropdown, useTranslation, I18nextProvider, DATE_MIN_VALUE, DATE_TIME_MIN_VALUE, ACADEMY_DOMAIN, minutesToTimeSpan, toISOString, canAccessRoute, CustomSelect, CustomAsyncSelect, CustomSelectOption, LoginWithPassword, getAccessToken, ChatContainer, IChatContainerProps, IChatItemProps, IChatHeaderProps, IInputChatProps, ChatItemType, useChatContainer, ConversationResponse, usePusherConversation, ExamResultV2, ToastContainer, toast, Role, useLanguage, useSwitchAcademy, LANGUAGES, CustomCreatable, moment, ExamDetailView, ExamDetailViewProps, Exam, Question, ArticleGroup, getAcademyDomain, useSubjectSelect, useLogin, useAutoAcademyDomain, LoginAccessTokenRequest, LoginRequest, setReFetchUserAcademies, ChatTypes, AcademyHeaders, Types, Enums, CoreHooks, ArticleGroupView, AnswerCountSelector, QuestionCountSelector, ScoreSelector, ArticleCategorySelector, SubjectSelector, useCategorySelect, InputText, Textbook, TextbookDetail, TextbookList, timeUtils, Header, DEFAULT_PAGING_RESPONSE, PagingResponse };
|