touchstudy-core 0.1.60 → 0.1.62
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/components/Commons/NotFound.d.ts +4 -1
- package/dist/configs/constants.d.ts +1 -1
- package/dist/containers/ExamResult/components/MyAnswer/components/CreateNewQuestion.d.ts +5 -3
- package/dist/containers/ExamResult/components/MyAnswer/hooks/useCreateDialog.d.ts +9 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +795 -352
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +797 -354
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/TheLanguageDropdown.d.ts +5 -2
- package/dist/utils/constants.d.ts +1 -3
- package/dist/utils/getAcademyDomain.d.ts +2 -0
- package/dist/utils/getLanguage.d.ts +2 -0
- package/dist/utils/getRedirectUrl.d.ts +2 -0
- package/dist/utils/hooks/useLanguage.d.ts +3 -5
- package/dist/utils/hooks/useLayoutContext.d.ts +2 -0
- package/package.json +1 -1
@@ -11,6 +11,7 @@ export declare const PUSHER_CONFIG: {
|
|
11
11
|
export declare const ACCESS_TOKEN = "ACCESS_TOKEN";
|
12
12
|
export declare const ACADEMY_DOMAIN = "ACADEMY_DOMAIN";
|
13
13
|
export declare const REDIRECT_URL = "REDIRECT_URL";
|
14
|
+
export declare const LANGUAGE = "LANGUAGE";
|
14
15
|
export declare const AcademyHeaders = "Academy-Headers";
|
15
16
|
export declare const LanguageHeaders = "Accept-Language";
|
16
17
|
export declare const DefaultErrorMessage = "an_unexpected_error_has_occurred";
|
@@ -18,9 +19,6 @@ export declare const DATE_MIN_VALUE = "0001-01-01T00:00:00+00:00";
|
|
18
19
|
export declare const DATE_TIME_MIN_VALUE = "0001-01-01T00:00:00";
|
19
20
|
export declare const EXAM_CHANNEL = "presence-exam-channel";
|
20
21
|
export declare const EXAM_STUDENT_CHANNEL = "EXAM-CHANNEL-{examCode}-STUDENT-{studentId}";
|
21
|
-
export declare const getAccessToken: () => string | null;
|
22
|
-
export declare const getAcademyDomain: () => string | null;
|
23
|
-
export declare const getRedirectUrl: () => string | null | undefined;
|
24
22
|
export declare const encodeParams: (params: any) => string;
|
25
23
|
export declare enum Role {
|
26
24
|
Student = "Student",
|
@@ -1,12 +1,10 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { Language } from "../../configs/constants";
|
3
2
|
import "moment/locale/ko.js";
|
4
3
|
import "moment/locale/en-au.js";
|
5
|
-
declare const useLanguage: () => {
|
6
|
-
language: string;
|
4
|
+
declare const useLanguage: (history: any) => {
|
7
5
|
dropdownOpen: boolean;
|
8
|
-
currentLanguage: Language |
|
6
|
+
currentLanguage: Language | undefined;
|
9
7
|
toggle: () => void;
|
10
|
-
|
8
|
+
handleChangeItemLanguage: (lang: string) => void;
|
11
9
|
};
|
12
10
|
export default useLanguage;
|