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.
@@ -1,3 +1,6 @@
1
- import React from "react";
2
- declare const TheLanguageDropdown: () => React.JSX.Element;
1
+ import { FC } from "react";
2
+ interface Props {
3
+ history: any;
4
+ }
5
+ declare const TheLanguageDropdown: FC<Props>;
3
6
  export default TheLanguageDropdown;
@@ -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",
@@ -0,0 +1,2 @@
1
+ declare const getAcademyDomain: () => string | null;
2
+ export default getAcademyDomain;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => string | null;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const getRedirectUrl: () => string | null | undefined;
2
+ export default getRedirectUrl;
@@ -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 | null;
6
+ currentLanguage: Language | undefined;
9
7
  toggle: () => void;
10
- setItemLanguage: import("react").Dispatch<import("react").SetStateAction<string>>;
8
+ handleChangeItemLanguage: (lang: string) => void;
11
9
  };
12
10
  export default useLanguage;
@@ -0,0 +1,2 @@
1
+ declare const useLayoutContext: (role: string, pusherRegisterUrls: string[]) => void;
2
+ export default useLayoutContext;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "touchstudy-core",
3
- "version": "0.1.60",
3
+ "version": "0.1.62",
4
4
  "description": "Contains core components && functions for TouchStudy project",
5
5
  "author": "brss",
6
6
  "license": "MIT",