mario-core 2.10.2-beta → 2.10.2-release
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/Alerts/SandboxAlert.d.ts +3 -0
- package/dist/components/Buttons/SyncButton.d.ts +8 -0
- package/dist/components/Inputs/PasswordInput.d.ts +1 -0
- package/dist/components/Modals/ModelSelectRole.d.ts +7 -0
- package/dist/components/Modals/NotificationLogoutModal.d.ts +3 -0
- package/dist/components/Selectors/constants/constant.d.ts +1 -1
- package/dist/containers/EmailTemplate/hooks/useEmailTemplateDetail.d.ts +1 -0
- package/dist/containers/Login/constant/authConfig.d.ts +38 -0
- package/dist/containers/Login/constant/types.d.ts +34 -0
- package/dist/containers/Login/hooks/useCreatePassword.d.ts +13 -0
- package/dist/containers/Login/hooks/useForgotPassword.d.ts +3 -1
- package/dist/containers/Login/hooks/useLogin.d.ts +11 -4
- package/dist/containers/Login/views/Dashboard.d.ts +2 -1
- package/dist/containers/Login/views/Login.d.ts +1 -0
- package/dist/containers/Login/views/block/BlockAssignTeacherByCode.d.ts +8 -0
- package/dist/containers/Login/views/block/BlockBackground.d.ts +7 -0
- package/dist/containers/Login/views/block/BlockCreatePassword.d.ts +3 -0
- package/dist/containers/Login/views/block/BlockForgetPassword.d.ts +5 -1
- package/dist/containers/Login/views/block/BlockLogin.d.ts +14 -0
- package/dist/containers/Login/views/block/BlockSelectTeacher.d.ts +0 -1
- package/dist/containers/User/components/AssignStudentModal.d.ts +20 -0
- package/dist/containers/User/components/FilterPopover.d.ts +21 -0
- package/dist/containers/User/components/HeaderCell.d.ts +18 -0
- package/dist/containers/User/components/SwitchTeacherModal.d.ts +3 -0
- package/dist/containers/User/components/TableHeader.d.ts +11 -0
- package/dist/containers/User/components/TeacherSelector.d.ts +3 -0
- package/dist/containers/User/components/UploadCSVButton.d.ts +11 -0
- package/dist/containers/User/components/UserDeletedModal.d.ts +3 -0
- package/dist/containers/User/configs/utils.d.ts +8 -0
- package/dist/containers/User/constants/constants.d.ts +21 -0
- package/dist/containers/User/constants/types.d.ts +177 -0
- package/dist/containers/User/hooks/useAssignStudent.d.ts +15 -0
- package/dist/containers/User/hooks/useAssignStudentList.d.ts +15 -0
- package/dist/containers/User/hooks/useAssistantList.d.ts +10 -0
- package/dist/containers/User/hooks/useCSVImport.d.ts +38 -0
- package/dist/containers/User/hooks/useClickOutside.d.ts +2 -0
- package/dist/containers/User/hooks/useCounselorList.d.ts +10 -0
- package/dist/containers/User/hooks/useExportUsersCsv.d.ts +5 -0
- package/dist/containers/User/hooks/useFilterPopover.d.ts +37 -0
- package/dist/containers/User/hooks/useResendMail.d.ts +5 -0
- package/dist/containers/User/hooks/useRosterUserSelector.d.ts +8 -0
- package/dist/containers/User/hooks/useSecondaryTeacherList.d.ts +10 -0
- package/dist/containers/User/hooks/useTableHeader.d.ts +16 -0
- package/dist/containers/User/hooks/useTeacherList.d.ts +10 -0
- package/dist/containers/User/hooks/useUserDeletedList.d.ts +37 -0
- package/dist/containers/User/hooks/useUserDeletedModal.d.ts +14 -0
- package/dist/containers/User/hooks/useUserDetail.d.ts +17 -0
- package/dist/containers/User/hooks/useUserList.d.ts +6 -3
- package/dist/containers/User/hooks/userFilters.d.ts +8 -0
- package/dist/containers/User/views/AssignStudentList.d.ts +3 -0
- package/dist/containers/User/views/RosterUserSelector.d.ts +8 -0
- package/dist/containers/User/views/UserContainer.d.ts +3 -0
- package/dist/containers/User/views/UserDeletedList.d.ts +3 -0
- package/dist/hooks/useLanguages.d.ts +10 -0
- package/dist/index.css +408 -77
- package/dist/index.d.ts +12 -6
- package/dist/index.js +43906 -4457
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +43901 -4465
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/TheHeader.d.ts +4 -1
- package/dist/layouts/TheHeaderDropdown.d.ts +4 -1
- package/dist/redux/commons/action.d.ts +4 -0
- package/dist/redux/weeklyQuests/action.d.ts +2 -0
- package/dist/redux/weeklyQuests/reducer.d.ts +6 -0
- package/dist/rootReducer.d.ts +5 -0
- package/dist/services/accountService.d.ts +8 -2
- package/dist/services/csvImportService.d.ts +7 -0
- package/dist/services/emailTemplateService.d.ts +1 -0
- package/dist/services/schoolService.d.ts +2 -0
- package/dist/services/userService.d.ts +19 -1
- package/dist/services/weeklyQuestService.d.ts +1 -0
- package/dist/types/Filter.d.ts +6 -0
- package/dist/types/Language.d.ts +8 -0
- package/dist/types/Payload.d.ts +2 -0
- package/dist/types/WeeklyQuest.d.ts +37 -0
- package/dist/types/user.d.ts +3 -0
- package/dist/utils/constants.d.ts +11 -2
- package/dist/utils/getCookieValue.d.ts +2 -0
- package/dist/utils/getStaticFileUrl.d.ts +2 -0
- package/package.json +7 -4
|
@@ -4,11 +4,15 @@ 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>;
|
|
10
12
|
export declare const setEnableIEP: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>;
|
|
11
13
|
export declare const setEnableSurvey: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>;
|
|
14
|
+
export declare const setEnableMarioAi: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>;
|
|
15
|
+
export declare const setSandboxMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>;
|
|
12
16
|
export declare const setConversationOneToOne: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>;
|
|
13
17
|
export declare const setLanguage: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>;
|
|
14
18
|
export declare const setCurrentStudentId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, string>;
|
package/dist/rootReducer.d.ts
CHANGED
|
@@ -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;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
+
import { ICreatePassword } from "../containers/Login/constant/types";
|
|
2
|
+
export declare const apiInforUserClassLink: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
1
3
|
export declare const logIn: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
2
4
|
export declare const checkToken: (token: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
5
|
export declare const getInfo: () => Promise<import("axios").AxiosResponse<any>>;
|
|
4
6
|
export declare const forgotPassword: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
|
-
export declare const
|
|
7
|
+
export declare const getUserNewPassword: (userId: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
8
|
+
export declare const checkResetToken: (token: string, key: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
6
9
|
export declare const resetPassword: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
7
10
|
export declare const getStudentProfile: () => Promise<import("axios").AxiosResponse<any>>;
|
|
8
11
|
export declare const logInTwoFactor: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
9
|
-
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>>;
|
|
10
13
|
export declare const getAllLoginTeacher: (param: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
11
14
|
export declare const getGoogleClientId: () => Promise<import("axios").AxiosResponse<any>>;
|
|
12
15
|
export declare const registerUserStudent: (body: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
16
|
+
export declare const createPassword: (data: ICreatePassword) => Promise<import("axios").AxiosResponse<any>>;
|
|
17
|
+
export declare const checkStudentAssign: () => Promise<import("axios").AxiosResponse<any>>;
|
|
18
|
+
export declare const assignTeacherByCode: (teacherCode: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const downloadTemplateFile: () => Promise<import("axios").AxiosResponse<any>>;
|
|
2
|
+
export declare const importCSV: (formData: FormData, subFolder: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
|
+
export declare const importStudentCSV: (formData: FormData) => Promise<import("axios").AxiosResponse<any>>;
|
|
4
|
+
export declare const importClassReflectionCSV: (formData: FormData) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
|
+
export declare const importStudentByTeacher: (teacherId: number, formData: FormData) => Promise<import("axios").AxiosResponse<any>>;
|
|
6
|
+
export declare const importUsersCSV: (formData: FormData) => Promise<import("axios").AxiosResponse<any>>;
|
|
7
|
+
export declare const downloadTemplateFileUser: () => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -4,3 +4,4 @@ export declare const getById: (id: number) => Promise<import("axios").AxiosRespo
|
|
|
4
4
|
export declare const create: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
5
|
export declare const update: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
6
6
|
export declare const remove: (id: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
7
|
+
export declare const getTinyMCEKeyApi: () => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -1,10 +1,28 @@
|
|
|
1
|
-
import { Filter } from "../types/Filter";
|
|
1
|
+
import { Filter, UserRosterFilter } from "../types/Filter";
|
|
2
|
+
import { ResetPasswordDto } from "../types/user";
|
|
3
|
+
import { AssignStudentDto, StudentFilter, UserFilter, UserFilterField } from "../containers/User/constants/types";
|
|
2
4
|
export declare const get: (filter: Filter) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
|
+
export declare const getRosterUser: (filter: UserFilter) => Promise<import("axios").AxiosResponse<any>>;
|
|
6
|
+
export declare const getFilterRosterUser: (filter: UserFilterField) => Promise<import("axios").AxiosResponse<any>>;
|
|
7
|
+
export declare const getStudentFilter: (filter: UserFilterField) => Promise<import("axios").AxiosResponse<any>>;
|
|
8
|
+
export declare const getRosterUserExport: (filter: UserFilter) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
9
|
export declare const getById: (id: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
4
10
|
export declare const create: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
5
11
|
export declare const update: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
12
|
+
export declare const updateStatusAll: (ids: string[]) => Promise<import("axios").AxiosResponse<any>>;
|
|
6
13
|
export declare const remove: (id: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
7
14
|
export declare const getAllStudent: (filter?: Filter | undefined) => Promise<import("axios").AxiosResponse<any>>;
|
|
8
15
|
export declare const changePassword: (formData: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
9
16
|
export declare const forgotChangePassword: (data: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
10
17
|
export declare const switchAccountUser: (id: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
18
|
+
export declare const getRosterUsersApi: (filter: UserRosterFilter) => Promise<import("axios").AxiosResponse<any>>;
|
|
19
|
+
export declare const getRosterUserBySourcedIdApi: (sourcedId: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
20
|
+
export declare const syncRosterUsersApi: () => Promise<import("axios").AxiosResponse<any>>;
|
|
21
|
+
export declare const resetPasswordForAdmin: (data: ResetPasswordDto) => Promise<import("axios").AxiosResponse<any>>;
|
|
22
|
+
export declare const getAssignStudentApi: (filter: StudentFilter) => Promise<import("axios").AxiosResponse<any>>;
|
|
23
|
+
export declare const getCounselors: () => Promise<import("axios").AxiosResponse<any>>;
|
|
24
|
+
export declare const getAssistants: () => Promise<import("axios").AxiosResponse<any>>;
|
|
25
|
+
export declare const getSecondaryTeachers: () => Promise<import("axios").AxiosResponse<any>>;
|
|
26
|
+
export declare const getTeachers: (filters: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
27
|
+
export declare const assignStudentsApi: (data?: AssignStudentDto[] | undefined) => Promise<import("axios").AxiosResponse<any>>;
|
|
28
|
+
export declare const userRoleHasData: (userId: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getWeeklyQuestsApi: () => Promise<import("axios").AxiosResponse<any>>;
|
package/dist/types/Filter.d.ts
CHANGED
package/dist/types/Payload.d.ts
CHANGED
|
@@ -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
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Filter } from "../types/Filter";
|
|
2
|
-
|
|
2
|
+
import { Language } from "../types/Language";
|
|
3
|
+
export declare const TINY_MCE_API_KEY = "htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk";
|
|
3
4
|
export declare const GOOGLE_RECAPTCHA_KEY = "6LfNtLUaAAAAAL24lbBV11jS-gBtt1mhtxb4NXs0";
|
|
4
5
|
export declare const INIT_AMPLITUDE_KEY_PROD = "860fa99c52ae79d98e904b4c862ddaac";
|
|
5
|
-
export declare const INIT_AMPLITUDE_KEY_STAGE = "
|
|
6
|
+
export declare const INIT_AMPLITUDE_KEY_STAGE = "adf89d0ed9b0d5fcc0d1bcfd535345dc";
|
|
6
7
|
export declare const ACCESS_TOKEN = "ACCESS_TOKEN";
|
|
8
|
+
export declare const IS_USER_SESSION_BROWSER = "IS_USER_SESSION_BROWSER";
|
|
7
9
|
export declare const DEFAULT_PAGE_SIZE_VALUES: {
|
|
8
10
|
label: string;
|
|
9
11
|
value: number;
|
|
@@ -54,6 +56,7 @@ export declare const USER_ROLES: string[];
|
|
|
54
56
|
export declare const CHAT_CHANNEL = "chat-channel";
|
|
55
57
|
export declare const NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
|
|
56
58
|
export declare const NEW_NOTIFICATION = "NEW_NOTIFICATION";
|
|
59
|
+
export declare const SANDBOX_NOTIFICATION = "SANDBOX_NOTIFICATION";
|
|
57
60
|
export declare const DEFAULT_IMAGE_URL = "https://tleliteracy.com/wp-content/uploads/2017/02/default-avatar.png";
|
|
58
61
|
export declare const EMOTIONS: string[];
|
|
59
62
|
export declare const TAB_COLORS: {
|
|
@@ -71,3 +74,9 @@ export declare const ROLES: {
|
|
|
71
74
|
SECONDARY_TEACHER: string;
|
|
72
75
|
};
|
|
73
76
|
export declare const NOTIFICATION_ALERT_KEY = "NOTIFICATION_ALERT_KEY";
|
|
77
|
+
export declare const handleUserRole: (userRoles: string[]) => string[];
|
|
78
|
+
export declare const MARIO_SUCCESS_BASE_URL = "https://www.mariosuccess.com";
|
|
79
|
+
export declare const LANGUAGES: Language[];
|
|
80
|
+
export declare const DEFAULT_LANGUAGE_CODE = "en-US";
|
|
81
|
+
export declare const SUPPORTED_LANGUAGES_CODE: string[];
|
|
82
|
+
export declare const screenWidth: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mario-core",
|
|
3
|
-
"version": "2.10.02-
|
|
3
|
+
"version": "2.10.02-release",
|
|
4
4
|
"description": "Contains core components && functions for Mario project",
|
|
5
5
|
"author": "brss",
|
|
6
6
|
"license": "MIT",
|
|
@@ -69,14 +69,16 @@
|
|
|
69
69
|
"dist"
|
|
70
70
|
],
|
|
71
71
|
"dependencies": {
|
|
72
|
+
"@azure/msal-browser": "2.30.0",
|
|
73
|
+
"@azure/msal-common": "14.6.0",
|
|
74
|
+
"@azure/msal-react": "2.0.2",
|
|
72
75
|
"@coreui/icons": "2.0.0-rc.0",
|
|
73
76
|
"@coreui/icons-react": "1.0.2",
|
|
74
77
|
"@coreui/react": "3.4.0",
|
|
75
78
|
"@reduxjs/toolkit": "^1.5.0",
|
|
76
79
|
"@tinymce/tinymce-react": "^3.9.0",
|
|
77
|
-
"@types/amplitude-js": "^8.16.2",
|
|
78
80
|
"@types/react-notifications-component": "2.4.0",
|
|
79
|
-
"amplitude-
|
|
81
|
+
"@amplitude/analytics-browser": "2.11.8",
|
|
80
82
|
"axios": "^0.21.1",
|
|
81
83
|
"bootstrap": "^4.6.0",
|
|
82
84
|
"date-fns": "^2.19.0",
|
|
@@ -89,12 +91,13 @@
|
|
|
89
91
|
"react-datepicker": "^3.6.0",
|
|
90
92
|
"react-google-login": "^5.2.2",
|
|
91
93
|
"react-google-recaptcha-v3": "^1.9.3",
|
|
92
|
-
"react-i18next": "
|
|
94
|
+
"react-i18next": "11.8.5",
|
|
93
95
|
"react-icons": "^4.2.0",
|
|
94
96
|
"react-notifications-component": "3.0.4",
|
|
95
97
|
"react-select": "^4.1.0",
|
|
96
98
|
"reactstrap": "^8.9.0",
|
|
97
99
|
"redux-thunk": "^2.3.0",
|
|
100
|
+
"symbol-observable": "^4.0.0",
|
|
98
101
|
"yup": "^0.32.9"
|
|
99
102
|
}
|
|
100
103
|
}
|