mario-core 2.9.231-layout → 2.9.231-sso

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.
@@ -4,6 +4,8 @@ export declare const setModal: import("@reduxjs/toolkit").ActionCreatorWithPaylo
4
4
  export declare const setUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
5
5
  export declare const setSidebar: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
6
6
  export declare const setAlert: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
7
+ export declare const setIsLoginGoogle: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
8
+ export declare const setInforUserGoogle: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
7
9
  export declare const reset: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<undefined, string>;
8
10
  export declare const showMenuBar: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
9
11
  export declare const showFontSize: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
@@ -45,5 +45,10 @@ declare const rootReducer: import("redux").Reducer<import("redux").CombinedState
45
45
  bandScores: any;
46
46
  schoolBlankDays: any;
47
47
  navMobileReducer: any;
48
+ weeklyQuests: {
49
+ isOpenModelCongratulation: boolean;
50
+ lastQuest: undefined;
51
+ weeklyQuests: never[];
52
+ };
48
53
  }>, import("redux").AnyAction>;
49
54
  export default rootReducer;
@@ -9,7 +9,7 @@ export declare const checkResetToken: (token: string, key: string) => Promise<im
9
9
  export declare const resetPassword: (data: any) => Promise<import("axios").AxiosResponse<any>>;
10
10
  export declare const getStudentProfile: () => Promise<import("axios").AxiosResponse<any>>;
11
11
  export declare const logInTwoFactor: (data: any) => Promise<import("axios").AxiosResponse<any>>;
12
- export declare const checkUserGoogle: (body: any) => Promise<import("axios").AxiosResponse<any>>;
12
+ export declare const checkUserGoogle: (type: any, body: any) => Promise<import("axios").AxiosResponse<any>>;
13
13
  export declare const getAllLoginTeacher: (param: any) => Promise<import("axios").AxiosResponse<any>>;
14
14
  export declare const getGoogleClientId: () => Promise<import("axios").AxiosResponse<any>>;
15
15
  export declare const registerUserStudent: (body: any) => Promise<import("axios").AxiosResponse<any>>;
@@ -1 +1,2 @@
1
1
  export declare const getSchoolSettings: () => Promise<import("axios").AxiosResponse<any>>;
2
+ export declare const getInfo: () => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1 @@
1
+ export declare const getWeeklyQuestsApi: () => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,37 @@
1
+ export interface IWeeklyQuest {
2
+ id: number;
3
+ isActive: boolean;
4
+ challenge: IChallenge;
5
+ title: string;
6
+ source: SourceWeeklyQuests;
7
+ request: IRequest;
8
+ status: StatusWeeklyQuest;
9
+ order: number;
10
+ }
11
+ export declare enum IChallenge {
12
+ Challenge1 = 0,
13
+ Challenge2 = 1,
14
+ Challenge3 = 2,
15
+ Challenge4 = 3,
16
+ Challenge5 = 4
17
+ }
18
+ export declare enum SourceWeeklyQuests {
19
+ CheckIn = 0,
20
+ ClassReflection = 1,
21
+ Conference = 2,
22
+ Goal = 3,
23
+ Interests = 4,
24
+ ChallengesSection = 5,
25
+ LearningStrategies = 6,
26
+ SupportNetwork = 7
27
+ }
28
+ export declare enum IRequest {
29
+ View = 0,
30
+ Complete = 1,
31
+ Update = 2
32
+ }
33
+ export declare enum StatusWeeklyQuest {
34
+ Pending = 0,
35
+ Completed = 1,
36
+ NotCompleted = 2
37
+ }
@@ -5,6 +5,7 @@ export declare const GOOGLE_RECAPTCHA_KEY = "6LfNtLUaAAAAAL24lbBV11jS-gBtt1mhtxb
5
5
  export declare const INIT_AMPLITUDE_KEY_PROD = "860fa99c52ae79d98e904b4c862ddaac";
6
6
  export declare const INIT_AMPLITUDE_KEY_STAGE = "adf89d0ed9b0d5fcc0d1bcfd535345dc";
7
7
  export declare const ACCESS_TOKEN = "ACCESS_TOKEN";
8
+ export declare const IS_USER_SESSION_BROWSER = "IS_USER_SESSION_BROWSER";
8
9
  export declare const DEFAULT_PAGE_SIZE_VALUES: {
9
10
  label: string;
10
11
  value: number;
package/package.json CHANGED
@@ -1,101 +1,104 @@
1
- {
2
- "name": "mario-core",
3
- "version": "2.9.231-layout",
4
- "description": "Contains core components && functions for Mario project",
5
- "author": "brss",
6
- "license": "MIT",
7
- "repository": "brss/mario-core",
8
- "main": "dist/index.js",
9
- "module": "dist/index.modern.js",
10
- "source": "src/index.tsx",
11
- "engines": {
12
- "node": ">=10"
13
- },
14
- "scripts": {
15
- "build": "microbundle-crl --no-compress --format modern,cjs",
16
- "start": "microbundle-crl watch --no-compress --format modern,cjs",
17
- "prepare": "run-s build",
18
- "test": "run-s test:unit test:lint test:build",
19
- "test:build": "run-s build",
20
- "test:lint": "eslint .",
21
- "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
22
- "test:watch": "react-scripts test --env=jsdom"
23
- },
24
- "peerDependencies": {
25
- "react": "^16.0.0",
26
- "react-dom": "*",
27
- "react-router-dom": "*",
28
- "react-redux": "*"
29
- },
30
- "devDependencies": {
31
- "@rollup/plugin-commonjs": "11.0.2",
32
- "@testing-library/jest-dom": "^4.2.4",
33
- "@testing-library/react": "^9.5.0",
34
- "@testing-library/user-event": "^7.2.1",
35
- "@types/date-fns": "^2.6.0",
36
- "@types/jest": "^25.1.4",
37
- "@types/node": "^12.12.38",
38
- "@types/react": "^16.9.27",
39
- "@types/react-datepicker": "^3.1.7",
40
- "@types/react-dom": "^16.9.7",
41
- "@types/react-redux": "^7.1.16",
42
- "@types/react-router-dom": "^5.1.7",
43
- "@types/react-select": "^4.0.13",
44
- "@types/redux-logger": "^3.0.8",
45
- "@types/yup": "^0.29.11",
46
- "@typescript-eslint/eslint-plugin": "^2.26.0",
47
- "@typescript-eslint/parser": "^2.26.0",
48
- "babel-eslint": "^10.0.3",
49
- "cross-env": "^7.0.2",
50
- "eslint": "^6.8.0",
51
- "eslint-config-prettier": "^6.7.0",
52
- "eslint-config-standard": "^14.1.0",
53
- "eslint-config-standard-react": "^9.2.0",
54
- "eslint-plugin-import": "^2.18.2",
55
- "eslint-plugin-node": "^11.0.0",
56
- "eslint-plugin-prettier": "^3.3.1",
57
- "eslint-plugin-promise": "^4.2.1",
58
- "eslint-plugin-react": "^7.17.0",
59
- "eslint-plugin-standard": "^4.0.1",
60
- "gh-pages": "^2.2.0",
61
- "microbundle-crl": "^0.13.10",
62
- "npm-run-all": "^4.1.5",
63
- "prettier": "^2.0.4",
64
- "react-scripts": "^3.4.1",
65
- "redux-logger": "^3.0.6",
66
- "typescript": "^3.7.5"
67
- },
68
- "files": [
69
- "dist"
70
- ],
71
- "dependencies": {
72
- "@coreui/icons": "2.0.0-rc.0",
73
- "@coreui/icons-react": "1.0.2",
74
- "@coreui/react": "3.4.0",
75
- "@reduxjs/toolkit": "^1.5.0",
76
- "@tinymce/tinymce-react": "^3.9.0",
77
- "@types/amplitude-js": "^8.16.2",
78
- "@types/react-notifications-component": "2.4.0",
79
- "amplitude-js": "^8.18.5",
80
- "axios": "^0.21.1",
81
- "bootstrap": "^4.6.0",
82
- "date-fns": "^2.19.0",
83
- "formik": "^2.2.6",
84
- "i18next": "^19.8.7",
85
- "link": "^1.5.1",
86
- "moment": "^2.29.1",
87
- "node-sass": "^5.0.0",
88
- "pusher-js": "^7.0.3",
89
- "react-datepicker": "^3.6.0",
90
- "react-google-login": "^5.2.2",
91
- "react-google-recaptcha-v3": "^1.9.3",
92
- "react-i18next": "^14.0.2",
93
- "react-icons": "^4.2.0",
94
- "react-notifications-component": "3.0.4",
95
- "react-select": "^4.1.0",
96
- "reactstrap": "^8.9.0",
97
- "redux-thunk": "^2.3.0",
98
- "symbol-observable": "^4.0.0",
99
- "yup": "^0.32.9"
100
- }
101
- }
1
+ {
2
+ "name": "mario-core",
3
+ "version": "2.9.231-sso",
4
+ "description": "Contains core components && functions for Mario project",
5
+ "author": "brss",
6
+ "license": "MIT",
7
+ "repository": "brss/mario-core",
8
+ "main": "dist/index.js",
9
+ "module": "dist/index.modern.js",
10
+ "source": "src/index.tsx",
11
+ "engines": {
12
+ "node": ">=10"
13
+ },
14
+ "scripts": {
15
+ "build": "microbundle-crl --no-compress --format modern,cjs",
16
+ "start": "microbundle-crl watch --no-compress --format modern,cjs",
17
+ "prepare": "run-s build",
18
+ "test": "run-s test:unit test:lint test:build",
19
+ "test:build": "run-s build",
20
+ "test:lint": "eslint .",
21
+ "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
22
+ "test:watch": "react-scripts test --env=jsdom"
23
+ },
24
+ "peerDependencies": {
25
+ "react": "^16.0.0",
26
+ "react-dom": "*",
27
+ "react-router-dom": "*",
28
+ "react-redux": "*"
29
+ },
30
+ "devDependencies": {
31
+ "@rollup/plugin-commonjs": "11.0.2",
32
+ "@testing-library/jest-dom": "^4.2.4",
33
+ "@testing-library/react": "^9.5.0",
34
+ "@testing-library/user-event": "^7.2.1",
35
+ "@types/date-fns": "^2.6.0",
36
+ "@types/jest": "^25.1.4",
37
+ "@types/node": "^12.12.38",
38
+ "@types/react": "^16.9.27",
39
+ "@types/react-datepicker": "^3.1.7",
40
+ "@types/react-dom": "^16.9.7",
41
+ "@types/react-redux": "^7.1.16",
42
+ "@types/react-router-dom": "^5.1.7",
43
+ "@types/react-select": "^4.0.13",
44
+ "@types/redux-logger": "^3.0.8",
45
+ "@types/yup": "^0.29.11",
46
+ "@typescript-eslint/eslint-plugin": "^2.26.0",
47
+ "@typescript-eslint/parser": "^2.26.0",
48
+ "babel-eslint": "^10.0.3",
49
+ "cross-env": "^7.0.2",
50
+ "eslint": "^6.8.0",
51
+ "eslint-config-prettier": "^6.7.0",
52
+ "eslint-config-standard": "^14.1.0",
53
+ "eslint-config-standard-react": "^9.2.0",
54
+ "eslint-plugin-import": "^2.18.2",
55
+ "eslint-plugin-node": "^11.0.0",
56
+ "eslint-plugin-prettier": "^3.3.1",
57
+ "eslint-plugin-promise": "^4.2.1",
58
+ "eslint-plugin-react": "^7.17.0",
59
+ "eslint-plugin-standard": "^4.0.1",
60
+ "gh-pages": "^2.2.0",
61
+ "microbundle-crl": "^0.13.10",
62
+ "npm-run-all": "^4.1.5",
63
+ "prettier": "^2.0.4",
64
+ "react-scripts": "^3.4.1",
65
+ "redux-logger": "^3.0.6",
66
+ "typescript": "^3.7.5"
67
+ },
68
+ "files": [
69
+ "dist"
70
+ ],
71
+ "dependencies": {
72
+ "@azure/msal-browser": "2.30.0",
73
+ "@azure/msal-common": "14.6.0",
74
+ "@azure/msal-react": "2.0.2",
75
+ "@coreui/icons": "2.0.0-rc.0",
76
+ "@coreui/icons-react": "1.0.2",
77
+ "@coreui/react": "3.4.0",
78
+ "@reduxjs/toolkit": "^1.5.0",
79
+ "@tinymce/tinymce-react": "^3.9.0",
80
+ "@types/amplitude-js": "^8.16.2",
81
+ "@types/react-notifications-component": "2.4.0",
82
+ "amplitude-js": "^8.18.5",
83
+ "axios": "^0.21.1",
84
+ "bootstrap": "^4.6.0",
85
+ "date-fns": "^2.19.0",
86
+ "formik": "^2.2.6",
87
+ "i18next": "^19.8.7",
88
+ "link": "^1.5.1",
89
+ "moment": "^2.29.1",
90
+ "node-sass": "^5.0.0",
91
+ "pusher-js": "^7.0.3",
92
+ "react-datepicker": "^3.6.0",
93
+ "react-google-login": "^5.2.2",
94
+ "react-google-recaptcha-v3": "^1.9.3",
95
+ "react-i18next": "11.8.5",
96
+ "react-icons": "^4.2.0",
97
+ "react-notifications-component": "3.0.4",
98
+ "react-select": "^4.1.0",
99
+ "reactstrap": "^8.9.0",
100
+ "redux-thunk": "^2.3.0",
101
+ "symbol-observable": "^4.0.0",
102
+ "yup": "^0.32.9"
103
+ }
104
+ }
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const ButtonLogin: ({ fnLoginSSO }: any) => JSX.Element;
3
- export default ButtonLogin;
@@ -1,6 +0,0 @@
1
- export declare const config: {
2
- appId: string;
3
- redirectUri: string;
4
- scopes: string[];
5
- authority: string;
6
- };
@@ -1 +0,0 @@
1
- export declare const setLanguages: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
@@ -1,2 +0,0 @@
1
- declare const commonReducer: import("redux").Reducer<any, import("redux").AnyAction>;
2
- export default commonReducer;
@@ -1,2 +0,0 @@
1
- declare const getCookieValue: (name: string) => string;
2
- export default getCookieValue;