touchstudy-core 0.1.87 → 0.1.89

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.
@@ -8,6 +8,7 @@ export declare const PUSHER_CONFIG: {
8
8
  cluster: string;
9
9
  key: string;
10
10
  };
11
+ export declare const RELEASE_DATE: string;
11
12
  export declare const ACCESS_TOKEN = "ACCESS_TOKEN";
12
13
  export declare const ACADEMY_DOMAIN = "ACADEMY_DOMAIN";
13
14
  export declare const REDIRECT_URL = "REDIRECT_URL";
@@ -1,4 +1,5 @@
1
1
  import { ExamStatus } from "./examStatus";
2
2
  import { OrderType } from "./order";
3
3
  import { RecentUserAction } from "./recentUserAction";
4
- export { OrderType, ExamStatus, RecentUserAction };
4
+ import { UserSortColumn } from "./userSortColumn";
5
+ export { OrderType, ExamStatus, RecentUserAction, UserSortColumn };
@@ -1,2 +1,4 @@
1
+ import moment from "moment";
1
2
  declare const _default: (time: string, ORIGINAL_FORMAT: string, FORMAT?: string | undefined) => string;
2
3
  export default _default;
4
+ export declare const compareTimeSpanFromMoment: (time1: moment.Moment, time2: moment.Moment) => 0 | 1 | -1;
@@ -1,4 +1,5 @@
1
1
  import { Category, CategoryResponse, ExamResult, Question } from "../containers/ExamResult/configs/types";
2
+ import { Role } from "./constants";
2
3
  export declare const formatDateTime: (inputDate: string) => string;
3
4
  export declare type FormatDataMyAnswer = {
4
5
  category: Category;
@@ -17,3 +18,5 @@ export declare const totalSolveTimeCategories: (inputData: ExamResult, categorie
17
18
  percentageAmongStudents: number;
18
19
  }[];
19
20
  export declare const formatTimeSecond: (duration: number, t: any) => string;
21
+ export declare const formatRole: (roles: string[], t: any) => any;
22
+ export declare const getRole: (roles: string[]) => Role | null;
@@ -4,7 +4,6 @@ interface Props {
4
4
  code?: string;
5
5
  status?: ExamStatus;
6
6
  duration?: string;
7
- fetchedCount?: number;
8
7
  onFinish: () => void;
9
8
  }
10
9
  declare const useCountDownTimer: (props: Props) => number | undefined;
@@ -1,4 +1,5 @@
1
1
  import { RecentUserActionSortBy, RecentUserActionQuery, OrderBy, RecentUserActionResponse } from "./recentUserAction";
2
2
  import { SearchQuery } from "./searchQuery";
3
3
  import { TableHeaderType } from "./tableHeaderType";
4
- export { OrderBy, SearchQuery, TableHeaderType, RecentUserActionSortBy, RecentUserActionQuery, RecentUserActionResponse };
4
+ import * as Users from "./users";
5
+ export { OrderBy, SearchQuery, TableHeaderType, RecentUserActionSortBy, RecentUserActionQuery, RecentUserActionResponse, Users };
@@ -6,3 +6,10 @@ export declare type SearchQuery = {
6
6
  sortColumnDirection?: OrderType;
7
7
  sortColumnName?: string;
8
8
  };
9
+ export declare type BaseSearchQuery<T> = {
10
+ textSearch?: string;
11
+ currentPage?: number;
12
+ pageSize?: number;
13
+ sortColumnDirection?: OrderType;
14
+ sortColumnName?: T;
15
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "touchstudy-core",
3
- "version": "0.1.87",
3
+ "version": "0.1.89",
4
4
  "description": "Contains core components && functions for TouchStudy project",
5
5
  "author": "brss",
6
6
  "license": "MIT",
@@ -12,13 +12,15 @@
12
12
  "node": ">=10"
13
13
  },
14
14
  "dependencies": {
15
+ "@hookform/resolvers": "^3.3.3",
15
16
  "@leecheuk/react-google-login": "^5.4.1",
16
17
  "@mui/material": "^5.14.12",
18
+ "@mui/x-date-pickers": "^6.19.6",
17
19
  "@reduxjs/toolkit": "^2.0.1",
18
20
  "axios": "^1.6.2",
21
+ "ckeditor4-react": "5.2.0",
19
22
  "formik": "^2.4.5",
20
23
  "gapi-script": "^1.2.0",
21
- "html2canvas": "1.4.1",
22
24
  "html2pdf.js": "^0.10.2",
23
25
  "i18next": "^23.7.16",
24
26
  "link": "^2.1.0",
@@ -27,6 +29,7 @@
27
29
  "node-sass": "^7.0.3",
28
30
  "pusher-js": "^8.4.0-rc2",
29
31
  "react-google-recaptcha-v3": "^1.10.1",
32
+ "react-hook-form": "^7.49.2",
30
33
  "react-i18next": "^14.0.0",
31
34
  "react-icons": "^4.12.0",
32
35
  "react-select": "^5.8.0",
@@ -87,6 +90,7 @@
87
90
  "react-apexcharts": "1.3.6",
88
91
  "react-scripts": "5.0.1",
89
92
  "redux-logger": "^3.0.6",
90
- "typescript": "^4.9.5"
93
+ "typescript": "^4.9.5",
94
+ "@types/ckeditor4": "4.20.7"
91
95
  }
92
96
  }