mario-core 2.0.127-release → 2.0.128-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.
Files changed (34) hide show
  1. package/dist/Dashboard-Dn1Xl7SC.js +1 -0
  2. package/dist/Dashboard-DxrE_UdE.mjs +206 -0
  3. package/dist/EmailTemplateDetail-BxDmv_IB.mjs +443 -0
  4. package/dist/EmailTemplateDetail-c2h1KwyT.js +1 -0
  5. package/dist/EmailTemplateList-C6KbuCHO.mjs +170 -0
  6. package/dist/EmailTemplateList-Dk7gCfdy.js +1 -0
  7. package/dist/GalleryList-CG-GA7Go.mjs +329 -0
  8. package/dist/GalleryList-p6WP3Krc.js +1 -0
  9. package/dist/Login-BMRuV2H4.js +1 -0
  10. package/dist/Login-Ch1dKH9m.mjs +1700 -0
  11. package/dist/NotificationList-51yt2V-v.js +1 -0
  12. package/dist/NotificationList-bZsuTSkC.mjs +419 -0
  13. package/dist/SkillList-BQM2FIla.mjs +386 -0
  14. package/dist/SkillList-BxqOHumi.js +1 -0
  15. package/dist/TeacherSelector-CrH5Ji_R.mjs +30 -0
  16. package/dist/TeacherSelector-DYwwL8rL.js +1 -0
  17. package/dist/TheContent-B_P8fq4J.mjs +38 -0
  18. package/dist/TheContent-C5I2GeSi.js +1 -0
  19. package/dist/UserContainer-JB0zF0Be.js +5 -0
  20. package/dist/UserContainer-QmPiHlko.mjs +2698 -0
  21. package/dist/UserDetail-BuhWeZrj.mjs +913 -0
  22. package/dist/UserDetail-ClL8qEKG.js +1 -0
  23. package/dist/UserList-Crz4aLRP.mjs +1514 -0
  24. package/dist/UserList-DoZZeZzW.js +7 -0
  25. package/dist/constants-DF79sw6a.mjs +241 -0
  26. package/dist/constants-DSNqVx4Y.js +1 -0
  27. package/dist/index-CD8bO3wO.js +15 -0
  28. package/dist/index-CfBp3NrB.mjs +22670 -0
  29. package/dist/mailCategoryService-C9FSK6lv.js +1 -0
  30. package/dist/mailCategoryService-CRdM3FRx.mjs +11 -0
  31. package/dist/shared/gradeYear/ukYearCsv.d.ts +4 -0
  32. package/dist/userService-CDfW2VnH.js +1 -0
  33. package/dist/userService-CjQDQKT0.mjs +47 -0
  34. package/package.json +113 -113
@@ -0,0 +1 @@
1
+ "use strict";const t=require("./index-CD8bO3wO.js"),a="/api/TinyMCEKey",i=`${t.BASE_URL}/api/emailtemplate`,p=e=>t.api.get(i,{params:e}),n=e=>t.api.get(`${i}/${e}`),o=e=>t.api.post(i,e),s=e=>t.api.put(`${i}/${e.id}`,e),c=e=>t.api.delete(`${i}/${e}`),g=()=>t.api.get(`${a}`),E=`${t.BASE_URL}/api/EmailTemplateCategory`,$=()=>t.api.get(E);exports.create=o;exports.get=p;exports.get$1=$;exports.getById=n;exports.getTinyMCEKeyApi=g;exports.remove=c;exports.update=s;
@@ -0,0 +1,11 @@
1
+ import { i as e, B as s } from "./index-CfBp3NrB.mjs";
2
+ const o = "/api/TinyMCEKey", a = `${s}/api/emailtemplate`, i = (t) => e.get(a, { params: t }), n = (t) => e.get(`${a}/${t}`), g = (t) => e.post(a, t), E = (t) => e.put(`${a}/${t.id}`, t), $ = (t) => e.delete(`${a}/${t}`), m = () => e.get(`${o}`), p = `${s}/api/EmailTemplateCategory`, r = () => e.get(p);
3
+ export {
4
+ r as a,
5
+ n as b,
6
+ g as c,
7
+ m as d,
8
+ i as g,
9
+ $ as r,
10
+ E as u
11
+ };
@@ -0,0 +1,4 @@
1
+ export declare const toUkTemplate: (content: string) => string;
2
+ export declare const ukYearToGrade: (year: string) => string;
3
+ export declare const ukYearRowsToGradeRows: (rows: string[][]) => boolean;
4
+ export declare const ukYearCsvToGradeCsv: (file: File) => Promise<File>;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./index-CD8bO3wO.js"),s=`${e.BASE_URL}/api/user`,i=`${e.BASE_URL}/api/Account/changePassword`,o=`${e.BASE_URL}/api/account`,r=`${e.BASE_URL}/api/User`,c=`${e.BASE_URL}/api/usersOneRoster`,n=`${e.BASE_URL}/api/mappingRosterUsers`,d=`${e.BASE_URL}/api/ImportRestApiRoster`,g=t=>e.api.get(`${n}`,{params:t}),u=t=>e.api.get(`${n}/filters`,{params:t}),R=t=>e.api.get(`${r}/student-filters`,{params:t}),S=t=>{const a={...t,pageSize:-1,currentPage:1};return e.api.get(`${n}/export`,{params:a})},l=t=>e.api.get(`${r}/export-csv`,{params:t}),$=t=>e.api.get(`${s}/detail-user/${t}`),A=t=>e.api.post(`${s}`,t),U=t=>e.api.put(`${s}/${t.id}`,t),h=t=>e.api.put(`${s}/update-status-all`,t),f=(t,a)=>e.api.delete(`${r}/${t}`,{params:a}),E=t=>e.api.post(i,t),_=t=>e.api.post(`${o}/forgotchangepassword`,t),m=t=>e.api.post(`${r}/switch-user/${t}`),O=t=>e.api.get(`${c}`,{params:t}),L=t=>e.api.get(`${c}/${t}`),B=()=>e.api.post(`${d}/trigger-all-sync`),T=t=>e.api.post(`${o}/reset-password-for-admin`,t),w=t=>e.api.get(`${e.BASE_URL}/api/users/students`,{params:t}),C=()=>e.api.get(`${e.BASE_URL}/api/staffs/educators`),P=t=>e.api.get(`${e.BASE_URL}/api/staffs/teachers`,{params:t}),y=t=>e.api.post(`${s}/student-assign-split`,t),v=t=>e.api.get(`${e.BASE_URL}/api/user/check-role-data/${t}`),x=(t,a,p)=>e.api.post(`${r}/change-grade-for-student`,{studentUserId:t,gradeLevel:a},p?{headers:{"X-School-Level":p.toLowerCase()}}:void 0),I=t=>e.api.put(`${s}/change-multi-teachers`,t),M=t=>e.api.put(`${s}/change-multi-counselors`,t),F=t=>e.api.put(`${s}/change-assistants`,t),G=t=>e.api.put(`${s}/change-secondary-teachers`,t),k=(t,a)=>e.api.put(`${s}/update-user-grade/${t}`,{gradeLevel:a}),D=t=>e.api.post(`${o}/re-send-welcome-mail`,t),N=t=>e.api.post(`${r}/remove-bulk-staff`,t);exports.addGradeToStudent=x;exports.assignStudentsApi=y;exports.changeAssistantOfStudents=F;exports.changeGradeOfStudents=k;exports.changeMultiCounselorsOfStudent=M;exports.changeMultiTeacherOfStudent=I;exports.changePassword=E;exports.changeSecondaryTeacherOfStudents=G;exports.create=A;exports.forgotChangePassword=_;exports.getAssignStudentApi=w;exports.getById=$;exports.getEducatorsOptionsApi=C;exports.getFilterRosterUser=u;exports.getRosterUser=g;exports.getRosterUserBySourcedIdApi=L;exports.getRosterUserExport=S;exports.getRosterUsersApi=O;exports.getStudentFilter=R;exports.getTeacherClassCodesExport=l;exports.getTeachers=P;exports.postRequestResendMail=D;exports.remove=f;exports.removeBulkStaff=N;exports.resetPasswordForAdmin=T;exports.switchAccountUser=m;exports.triggerAllRosterSyncApi=B;exports.update=U;exports.updateStatusAll=h;exports.userRoleHasData=v;
@@ -0,0 +1,47 @@
1
+ import { i as t, B as e } from "./index-CfBp3NrB.mjs";
2
+ const a = `${e}/api/user`, u = `${e}/api/Account/changePassword`, n = `${e}/api/account`, r = `${e}/api/User`, g = `${e}/api/usersOneRoster`, c = `${e}/api/mappingRosterUsers`, i = `${e}/api/ImportRestApiRoster`, $ = (s) => t.get(`${c}`, { params: s }), l = (s) => t.get(`${c}/filters`, { params: s }), R = (s) => t.get(`${r}/student-filters`, { params: s }), h = (s) => {
3
+ const o = { ...s, pageSize: -1, currentPage: 1 };
4
+ return t.get(`${c}/export`, { params: o });
5
+ }, S = (s) => t.get(`${r}/export-csv`, { params: s }), m = (s) => t.get(`${a}/detail-user/${s}`), U = (s) => t.post(`${a}`, s), f = (s) => t.put(`${a}/${s.id}`, s), A = (s) => t.put(`${a}/update-status-all`, s), E = (s, o) => t.delete(`${r}/${s}`, { params: o }), O = (s) => t.post(u, s), _ = (s) => t.post(`${n}/forgotchangepassword`, s), w = (s) => t.post(`${r}/switch-user/${s}`), T = (s) => t.get(`${g}`, {
6
+ params: s
7
+ }), C = (s) => t.get(`${g}/${s}`), L = () => t.post(`${i}/trigger-all-sync`), P = (s) => t.post(`${n}/reset-password-for-admin`, s), v = (s) => t.get(`${e}/api/users/students`, {
8
+ params: s
9
+ }), x = () => t.get(`${e}/api/staffs/educators`), y = (s) => t.get(`${e}/api/staffs/teachers`, {
10
+ params: s
11
+ }), B = (s) => t.post(`${a}/student-assign-split`, s), I = (s) => t.get(`${e}/api/user/check-role-data/${s}`), M = (s, o, p) => t.post(
12
+ `${r}/change-grade-for-student`,
13
+ { studentUserId: s, gradeLevel: o },
14
+ p ? { headers: { "X-School-Level": p.toLowerCase() } } : void 0
15
+ ), k = (s) => t.put(`${a}/change-multi-teachers`, s), D = (s) => t.put(`${a}/change-multi-counselors`, s), F = (s) => t.put(`${a}/change-assistants`, s), G = (s) => t.put(`${a}/change-secondary-teachers`, s), N = (s, o) => t.put(`${a}/update-user-grade/${s}`, { gradeLevel: o }), b = (s) => t.post(`${n}/re-send-welcome-mail`, s), q = (s) => t.post(`${r}/remove-bulk-staff`, s);
16
+ export {
17
+ P as A,
18
+ O as B,
19
+ T as C,
20
+ C as D,
21
+ B as a,
22
+ M as b,
23
+ k as c,
24
+ F as d,
25
+ D as e,
26
+ G as f,
27
+ v as g,
28
+ x as h,
29
+ $ as i,
30
+ E as j,
31
+ l as k,
32
+ R as l,
33
+ S as m,
34
+ h as n,
35
+ I as o,
36
+ b as p,
37
+ m as q,
38
+ q as r,
39
+ w as s,
40
+ L as t,
41
+ A as u,
42
+ y as v,
43
+ f as w,
44
+ U as x,
45
+ N as y,
46
+ _ as z
47
+ };
package/package.json CHANGED
@@ -1,113 +1,113 @@
1
- {
2
- "name": "mario-core",
3
- "version": "2.0.127-release",
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
- "style": "./dist/mario-core.css",
11
- "types": "./dist/index.d.ts",
12
- "exports": {
13
- ".": {
14
- "import": "./dist/index.modern.js",
15
- "require": "./dist/index.js",
16
- "types": "./dist/index.d.ts"
17
- },
18
- "./dist/mario-core.css": "./dist/mario-core.css"
19
- },
20
- "engines": {
21
- "node": ">=20"
22
- },
23
- "scripts": {
24
- "build": "tsc --emitDeclarationOnly && vite build --mode production",
25
- "start": "concurrently -k \"tsc --noEmit --watch\" \"vite build --watch --mode development\"",
26
- "prepare": "npm run build",
27
- "test": "npm run test:lint && npm run test:build",
28
- "test:build": "npm run build",
29
- "test:lint": "eslint .",
30
- "dev": "vite",
31
- "preview": "vite preview",
32
- "type-check": "tsc --noEmit",
33
- "test:unit": "vitest run"
34
- },
35
- "peerDependencies": {
36
- "react": "^18 || ^19",
37
- "react-dom": "^18 || ^19",
38
- "react-redux": "*",
39
- "react-router-dom": "^6.30.2"
40
- },
41
- "devDependencies": {
42
- "@babel/plugin-proposal-unicode-property-regex": "^7.18.6",
43
- "@eslint/js": "^9.39.2",
44
- "@rollup/plugin-commonjs": "29.0.0",
45
- "@testing-library/jest-dom": "^6.9.1",
46
- "@testing-library/react": "^16.3.1",
47
- "@testing-library/user-event": "^14.6.1",
48
- "@types/date-fns": "^2.6.0",
49
- "@types/jest": "^25.1.4",
50
- "@types/node": "^25.0.2",
51
- "@types/papaparse": "^5.3.16",
52
- "@types/react": "^18.3.27",
53
- "@types/react-datepicker": "^3.1.7",
54
- "@types/react-dom": "^18.3.7",
55
- "@types/react-notifications-component": "2.4.0",
56
- "@types/react-redux": "^7.1.34",
57
- "@vitejs/plugin-react": "^5.1.1",
58
- "cross-env": "^7.0.2",
59
- "eslint": "^9.39.2",
60
- "eslint-config-prettier": "^10.1.8",
61
- "eslint-plugin-import": "^2.32.0",
62
- "eslint-plugin-react": "^7.37.5",
63
- "eslint-plugin-react-hooks": "^7.0.1",
64
- "eslint-plugin-react-refresh": "^0.4.24",
65
- "globals": "^16.5.0",
66
- "jsdom": "^30.1.3",
67
- "npm-run-all": "^4.1.5",
68
- "prettier": "^3.7.4",
69
- "sass-embedded": "^1.97.2",
70
- "typescript": "^5.9.3",
71
- "typescript-eslint": "^8.50.0",
72
- "vite": "^7.3.1",
73
- "vite-plugin-checker": "^0.12.0",
74
- "vite-plugin-css-injected-by-js": "^3.5.2",
75
- "vitest": "^5.1.0"
76
- },
77
- "files": [
78
- "dist"
79
- ],
80
- "dependencies": {
81
- "@amplitude/analytics-browser": "2.11.8",
82
- "@azure/msal-browser": "4.27.0",
83
- "@azure/msal-common": "14.6.0",
84
- "@azure/msal-react": "3.0.23",
85
- "@coreui/icons": "^3.0.1",
86
- "@coreui/icons-react": "^2.3.0",
87
- "@coreui/react": "^5.0.0",
88
- "@react-oauth/google": "^0.12.2",
89
- "@reduxjs/toolkit": "^2.11.2",
90
- "@tinymce/tinymce-react": "6.3.0",
91
- "axios": "^1.13.2",
92
- "bootstrap": "^5.3.8",
93
- "concurrently": "9.2.1",
94
- "date-fns": "^2.30.0",
95
- "formik": "^2.2.6",
96
- "i18next": "^25.7.3",
97
- "moment": "^2.30.1",
98
- "papaparse": "^5.5.3",
99
- "pusher-js": "^7.0.3",
100
- "react-datepicker": "^9.1.0",
101
- "react-google-recaptcha-v3": "^1.9.3",
102
- "react-i18next": "15.4.0",
103
- "react-icons": "^4.2.0",
104
- "react-select": "^5.10.2",
105
- "reactstrap": "^9.2.3",
106
- "redux": "^5.0.1",
107
- "redux-thunk": "^3.1.0",
108
- "sass": "^1.96.0",
109
- "symbol-observable": "^4.0.0",
110
- "tinymce": "^8.3.1",
111
- "yup": "^1.7.1"
112
- }
113
- }
1
+ {
2
+ "name": "mario-core",
3
+ "version": "2.0.128-release",
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
+ "style": "./dist/mario-core.css",
11
+ "types": "./dist/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/index.modern.js",
15
+ "require": "./dist/index.js",
16
+ "types": "./dist/index.d.ts"
17
+ },
18
+ "./dist/mario-core.css": "./dist/mario-core.css"
19
+ },
20
+ "engines": {
21
+ "node": ">=20"
22
+ },
23
+ "scripts": {
24
+ "build": "tsc --emitDeclarationOnly && vite build --mode production",
25
+ "start": "concurrently -k \"tsc --noEmit --watch\" \"vite build --watch --mode development\"",
26
+ "prepare": "npm run build",
27
+ "test": "npm run test:lint && npm run test:build",
28
+ "test:build": "npm run build",
29
+ "test:lint": "eslint .",
30
+ "dev": "vite",
31
+ "preview": "vite preview",
32
+ "type-check": "tsc --noEmit",
33
+ "test:unit": "vitest run"
34
+ },
35
+ "peerDependencies": {
36
+ "react": "^18 || ^19",
37
+ "react-dom": "^18 || ^19",
38
+ "react-redux": "*",
39
+ "react-router-dom": "^6.30.2"
40
+ },
41
+ "devDependencies": {
42
+ "@babel/plugin-proposal-unicode-property-regex": "^7.18.6",
43
+ "@eslint/js": "^9.39.2",
44
+ "@rollup/plugin-commonjs": "29.0.0",
45
+ "@testing-library/jest-dom": "^6.9.1",
46
+ "@testing-library/react": "^16.3.1",
47
+ "@testing-library/user-event": "^14.6.1",
48
+ "@types/date-fns": "^2.6.0",
49
+ "@types/jest": "^25.1.4",
50
+ "@types/node": "^25.0.2",
51
+ "@types/papaparse": "^5.3.16",
52
+ "@types/react": "^18.3.27",
53
+ "@types/react-datepicker": "^3.1.7",
54
+ "@types/react-dom": "^18.3.7",
55
+ "@types/react-notifications-component": "2.4.0",
56
+ "@types/react-redux": "^7.1.34",
57
+ "@vitejs/plugin-react": "^5.1.1",
58
+ "cross-env": "^7.0.2",
59
+ "eslint": "^9.39.2",
60
+ "eslint-config-prettier": "^10.1.8",
61
+ "eslint-plugin-import": "^2.32.0",
62
+ "eslint-plugin-react": "^7.37.5",
63
+ "eslint-plugin-react-hooks": "^7.0.1",
64
+ "eslint-plugin-react-refresh": "^0.4.24",
65
+ "globals": "^16.5.0",
66
+ "jsdom": "^30.1.3",
67
+ "npm-run-all": "^4.1.5",
68
+ "prettier": "^3.7.4",
69
+ "sass-embedded": "^1.97.2",
70
+ "typescript": "^5.9.3",
71
+ "typescript-eslint": "^8.50.0",
72
+ "vite": "^7.3.1",
73
+ "vite-plugin-checker": "^0.12.0",
74
+ "vite-plugin-css-injected-by-js": "^3.5.2",
75
+ "vitest": "^5.1.0"
76
+ },
77
+ "files": [
78
+ "dist"
79
+ ],
80
+ "dependencies": {
81
+ "@amplitude/analytics-browser": "2.11.8",
82
+ "@azure/msal-browser": "4.27.0",
83
+ "@azure/msal-common": "14.6.0",
84
+ "@azure/msal-react": "3.0.23",
85
+ "@coreui/icons": "^3.0.1",
86
+ "@coreui/icons-react": "^2.3.0",
87
+ "@coreui/react": "^5.0.0",
88
+ "@react-oauth/google": "^0.12.2",
89
+ "@reduxjs/toolkit": "^2.11.2",
90
+ "@tinymce/tinymce-react": "6.3.0",
91
+ "axios": "^1.13.2",
92
+ "bootstrap": "^5.3.8",
93
+ "concurrently": "9.2.1",
94
+ "date-fns": "^2.30.0",
95
+ "formik": "^2.2.6",
96
+ "i18next": "^25.7.3",
97
+ "moment": "^2.30.1",
98
+ "papaparse": "^5.5.3",
99
+ "pusher-js": "^7.0.3",
100
+ "react-datepicker": "^9.1.0",
101
+ "react-google-recaptcha-v3": "^1.9.3",
102
+ "react-i18next": "15.4.0",
103
+ "react-icons": "^4.2.0",
104
+ "react-select": "^5.10.2",
105
+ "reactstrap": "^9.2.3",
106
+ "redux": "^5.0.1",
107
+ "redux-thunk": "^3.1.0",
108
+ "sass": "^1.96.0",
109
+ "symbol-observable": "^4.0.0",
110
+ "tinymce": "^8.3.1",
111
+ "yup": "^1.7.1"
112
+ }
113
+ }