touchstudy-core 0.1.0 → 0.1.2

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.
Files changed (39) hide show
  1. package/dist/components/Commons/NotFound.d.ts +3 -0
  2. package/dist/components/Dialogs/CommonDialog.d.ts +11 -0
  3. package/dist/components/Dialogs/ConfirmDialog.d.ts +13 -0
  4. package/dist/components/Loading/Loading.d.ts +3 -0
  5. package/dist/components/Paginations/CustomPagination.d.ts +8 -0
  6. package/dist/configs/constants.d.ts +11 -0
  7. package/dist/containers/Login/apiClient/index.d.ts +1 -0
  8. package/dist/containers/Login/configs/constants.d.ts +4 -0
  9. package/dist/containers/Login/hooks/useLogin.d.ts +0 -3
  10. package/dist/containers/Login/views/Login.d.ts +5 -8
  11. package/dist/containers/Login/views/block/BlockLogin.d.ts +3 -2
  12. package/dist/i18n.d.ts +2 -0
  13. package/dist/index.css +19 -601
  14. package/dist/index.d.ts +23 -3
  15. package/dist/index.js +1334 -12
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.modern.js +1299 -12
  18. package/dist/index.modern.js.map +1 -1
  19. package/dist/layouts/LayoutContext.d.ts +6 -0
  20. package/dist/layouts/TheLanguageDropdown.d.ts +3 -0
  21. package/dist/redux/commons/action.d.ts +2 -0
  22. package/dist/services/accountService.d.ts +1 -0
  23. package/dist/services/api.d.ts +3 -0
  24. package/dist/store.d.ts +2 -0
  25. package/dist/utils/addTime.d.ts +3 -0
  26. package/dist/utils/canAccessRoute.d.ts +2 -0
  27. package/dist/utils/constants.d.ts +10 -1
  28. package/dist/utils/diffFromNow.d.ts +3 -0
  29. package/dist/utils/encodeParams.d.ts +2 -0
  30. package/dist/utils/formatTime.d.ts +2 -0
  31. package/dist/utils/getAccessToken.d.ts +2 -0
  32. package/dist/utils/minutesToTimeSpan.d.ts +2 -0
  33. package/dist/utils/toISOString.d.ts +2 -0
  34. package/dist/utils/types.d.ts +11 -0
  35. package/dist/utils/useGoogleSignOut.d.ts +9 -0
  36. package/dist/utils/utcToLocalTime.d.ts +2 -0
  37. package/package.json +9 -2
  38. package/dist/components/Alerts/ReactNotification.d.ts +0 -4
  39. package/dist/components/Alerts/SandboxAlert.d.ts +0 -3
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const NotFound: FC;
3
+ export default NotFound;
@@ -0,0 +1,11 @@
1
+ import { FC, PropsWithChildren } from "react";
2
+ interface Props {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ centered?: boolean;
6
+ title: string;
7
+ size?: "xs" | "lg" | "xl";
8
+ backdrop?: boolean | "static";
9
+ }
10
+ declare const CommonDialog: FC<Props & PropsWithChildren>;
11
+ export default CommonDialog;
@@ -0,0 +1,13 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ text: string;
4
+ cancelText?: string;
5
+ okText?: string;
6
+ onConfirm: () => void;
7
+ open: boolean;
8
+ toggle: () => void;
9
+ isDelete?: boolean;
10
+ title?: string;
11
+ }
12
+ export declare const ConfirmDialog: FC<Props>;
13
+ export {};
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const Loading: FC;
3
+ export default Loading;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ currentPage: number;
4
+ totalPage: number;
5
+ onChangePage: (page: number) => void;
6
+ }
7
+ declare const CustomPagination: FC<Props>;
8
+ export default CustomPagination;
@@ -0,0 +1,11 @@
1
+ export declare type Language = {
2
+ code: string;
3
+ name: string;
4
+ fullName: string;
5
+ shortName: string;
6
+ nativeName: string;
7
+ image: string;
8
+ };
9
+ export declare const DEFAULT_LANGUAGE_CODE = "ko";
10
+ export declare const LANGUAGES: Language[];
11
+ export declare const SUPPORTED_LANGUAGES_CODE: string[];
@@ -1 +1,2 @@
1
1
  export declare const getGoogleClientId: () => Promise<import("axios").AxiosResponse<any, any>>;
2
+ export declare const apiLoginGoogle: (body: any, role: string) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -0,0 +1,4 @@
1
+ export declare enum AuthenticationMessage {
2
+ NotAllowedToRegister = "NotAllowedToRegister",
3
+ InvalidGoogleToken = "InvalidGoogleToken"
4
+ }
@@ -7,14 +7,11 @@ declare type LoginInfo = {
7
7
  };
8
8
  declare const useLogin: () => {
9
9
  defaultInfo: LoginInfo;
10
- userLogin: (_data: any) => Promise<void>;
11
10
  openLogin: boolean;
12
11
  toggle: () => void;
13
12
  isShowPassword: boolean;
14
13
  setIsShowPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
15
14
  infoUser: any;
16
15
  setInfoUser: import("react").Dispatch<any>;
17
- googleClientId: string;
18
- googleRecaptchaId: string;
19
16
  };
20
17
  export default useLogin;
@@ -1,10 +1,7 @@
1
- import React from "react";
2
- interface loginProps {
3
- isLogin?: boolean;
4
- isForgotPassword?: boolean;
5
- isResetPassword?: boolean;
6
- isLoginTwoFactor?: boolean;
7
- isCreatePassword?: boolean;
1
+ import { FC } from "react";
2
+ import { INavigateProps } from "../../../utils/types";
3
+ interface Props {
4
+ isTeacher?: boolean;
8
5
  }
9
- declare const Login: (_props: loginProps) => React.JSX.Element;
6
+ declare const Login: FC<INavigateProps & Props>;
10
7
  export default Login;
@@ -1,7 +1,8 @@
1
1
  import { FC } from "react";
2
+ import { INavigateProps } from "../../../../utils/types";
2
3
  interface Props {
3
4
  defaultInfo?: any;
4
- userLogin?: any;
5
+ isTeacher?: boolean;
5
6
  }
6
- declare const BlockLogin: FC<Props>;
7
+ declare const BlockLogin: FC<Props & INavigateProps>;
7
8
  export default BlockLogin;
package/dist/i18n.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import i18n from "i18next";
2
+ export default i18n;