touchstudy-core 0.1.73 → 0.1.75

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 (35) hide show
  1. package/dist/components/Loading/LoadingComponent.d.ts +4 -2
  2. package/dist/containers/ExamResult/components/Charts/TimeOrderChart.d.ts +10 -0
  3. package/dist/containers/ExamResult/components/CompareGrass/index.d.ts +0 -1
  4. package/dist/containers/ExamResult/components/Dialog/PrintDialog.d.ts +6 -0
  5. package/dist/containers/ExamResult/components/GradesByTerritory/index.d.ts +3 -5
  6. package/dist/containers/ExamResult/components/LoadingDots.d.ts +6 -0
  7. package/dist/containers/ExamResult/components/MyAnswer/index.d.ts +1 -2
  8. package/dist/containers/ExamResult/components/ProtractedProblem/index.d.ts +4 -5
  9. package/dist/containers/ExamResult/components/TrickyProblem/index.d.ts +4 -5
  10. package/dist/containers/ExamResult/components/Vulnerable/index.d.ts +4 -5
  11. package/dist/containers/ExamResult/configs/functions.d.ts +1 -0
  12. package/dist/containers/ExamResult/configs/types.d.ts +13 -0
  13. package/dist/containers/ExamResult/hooks/useExamResult.d.ts +16 -6
  14. package/dist/containers/ExamResult/hooks/usePrintExamResult.d.ts +10 -0
  15. package/dist/containers/ExamResult/hooks/usePrintView.d.ts +8 -0
  16. package/dist/containers/ExamResult/views/ExamResultView.d.ts +11 -0
  17. package/dist/containers/ExamResult/views/PrintExamResult.d.ts +19 -0
  18. package/dist/containers/ExamResult/views/PrintExamResultView.d.ts +12 -0
  19. package/dist/containers/ExamResult/views/PrintPdfExamResult.d.ts +12 -0
  20. package/dist/containers/Exams/components/ArticleGroupView.d.ts +2 -0
  21. package/dist/containers/Exams/hooks/useExamDetailView.d.ts +2 -2
  22. package/dist/containers/Select/Category/hook/useCategorySelect.d.ts +2 -1
  23. package/dist/containers/Select/Subject/hook/useSubjectSelect.d.ts +6 -2
  24. package/dist/index.css +33 -0
  25. package/dist/index.d.ts +2 -1
  26. package/dist/index.js +844 -938
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.modern.js +841 -937
  29. package/dist/index.modern.js.map +1 -1
  30. package/dist/layouts/Header.d.ts +1 -0
  31. package/dist/layouts/LayoutContext.d.ts +1 -0
  32. package/dist/layouts/TheAcademyDropdown.d.ts +1 -0
  33. package/dist/utils/hooks/useLayoutContext.d.ts +1 -1
  34. package/dist/utils/hooks/useSwitchAcademy.d.ts +1 -1
  35. package/package.json +2 -2
@@ -5,6 +5,7 @@ interface Props {
5
5
  role: Role;
6
6
  academyListRoute: any;
7
7
  homeRoute: any;
8
+ registerRoute?: any;
8
9
  headerTabs: TabType[];
9
10
  history: any;
10
11
  onSignOut: () => void;
@@ -2,6 +2,7 @@ import { FC, PropsWithChildren } from "react";
2
2
  interface Props {
3
3
  role: string;
4
4
  pusherRegisterUrls?: string[];
5
+ showLoadingAcademy?: boolean;
5
6
  }
6
7
  declare const LayoutContext: FC<Props & PropsWithChildren>;
7
8
  export default LayoutContext;
@@ -5,6 +5,7 @@ interface ITheAcademyDropdownProps {
5
5
  history: any;
6
6
  homeAcademyUrl: string;
7
7
  homeUrl: string;
8
+ registerUrl?: string;
8
9
  hideAcademyName?: boolean;
9
10
  onSignOut: () => void;
10
11
  }
@@ -1,4 +1,4 @@
1
- declare const useLayoutContext: (role: string, pusherRegisterUrls: string[]) => {
1
+ declare const useLayoutContext: (role: string, pusherRegisterUrls: string[], showLoadingAcademy?: boolean) => {
2
2
  user: any;
3
3
  };
4
4
  export default useLayoutContext;
@@ -1,6 +1,6 @@
1
1
  import { AcademyResponse } from "../types/academy";
2
2
  import { Role } from "../constants";
3
- declare const useSwitchAcademy: (role: Role | undefined, history: any, homeAcademyUrl: string, homeUrl: string, canFetchAcademies?: boolean) => {
3
+ declare const useSwitchAcademy: (role: Role | undefined, history: any, homeAcademyUrl: string, homeUrl: string, registerUrl?: string | undefined, canFetchAcademies?: boolean) => {
4
4
  selectedAcademy: AcademyResponse | undefined;
5
5
  dropdownOpen: boolean;
6
6
  academyList: AcademyResponse[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "touchstudy-core",
3
- "version": "0.1.73",
3
+ "version": "0.1.75",
4
4
  "description": "Contains core components && functions for TouchStudy project",
5
5
  "author": "brss",
6
6
  "license": "MIT",
@@ -19,8 +19,8 @@
19
19
  "formik": "^2.4.5",
20
20
  "gapi-script": "^1.2.0",
21
21
  "html2canvas": "1.4.1",
22
+ "html2pdf.js": "^0.10.2",
22
23
  "i18next": "^23.7.16",
23
- "jspdf": "2.5.1",
24
24
  "link": "^2.1.0",
25
25
  "lodash": "^4.17.21",
26
26
  "moment": "^2.29.4",