@campxdev/campx-web-utils 0.5.8 → 0.6.0
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/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@campxdev/campx-web-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"main": "./export.ts",
|
|
5
5
|
"private": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@campxdev/react-blueprint": ">=1.9.
|
|
7
|
+
"@campxdev/react-blueprint": ">=1.9.5",
|
|
8
8
|
"@emotion/react": ">=^11.13.3",
|
|
9
9
|
"@emotion/styled": ">=^11.13.0",
|
|
10
10
|
"@mui/icons-material": ">=6.1.5",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"react-redux": "=>9.1.2"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@campxdev/react-blueprint": "1.9.
|
|
17
|
+
"@campxdev/react-blueprint": "1.9.5",
|
|
18
18
|
"@hookform/resolvers": "2.9.10",
|
|
19
19
|
"@mui/x-date-pickers": "^7.22.1",
|
|
20
20
|
"axios": "^1.7.2",
|
package/src/config/axios.ts
CHANGED
|
@@ -27,11 +27,16 @@ axios.interceptors.request.use(
|
|
|
27
27
|
|
|
28
28
|
const sessionKey = Cookies.get('campx_session_key');
|
|
29
29
|
const openPaymentsKey = Cookies.get('campx_open_payments_key');
|
|
30
|
+
const studentSessionKey = Cookies.get('campx_student_key');
|
|
30
31
|
|
|
31
32
|
if (isDevelopment && sessionKey) {
|
|
32
33
|
config.headers.set('campx_session_key', sessionKey);
|
|
33
34
|
}
|
|
34
35
|
|
|
36
|
+
if (isDevelopment && studentSessionKey) {
|
|
37
|
+
config.headers.set('campx_student_key', studentSessionKey);
|
|
38
|
+
}
|
|
39
|
+
|
|
35
40
|
if (openPaymentsKey) {
|
|
36
41
|
config.headers.set('campx_open_payments_key', openPaymentsKey);
|
|
37
42
|
}
|
|
@@ -50,6 +50,17 @@ export type ApplicationStoreType = {
|
|
|
50
50
|
admissionId?: string;
|
|
51
51
|
mStudentId?: string;
|
|
52
52
|
};
|
|
53
|
+
institution?: {
|
|
54
|
+
institutions: [];
|
|
55
|
+
loading: false;
|
|
56
|
+
error: null;
|
|
57
|
+
current: null;
|
|
58
|
+
};
|
|
59
|
+
asset?: {
|
|
60
|
+
favIcon: null;
|
|
61
|
+
institutionLogo: null;
|
|
62
|
+
institutionName: null;
|
|
63
|
+
};
|
|
53
64
|
};
|
|
54
65
|
|
|
55
66
|
export const initialApplicationState: ApplicationStoreType = {
|
|
@@ -68,6 +79,8 @@ export const initialApplicationState: ApplicationStoreType = {
|
|
|
68
79
|
type: 'confirm',
|
|
69
80
|
},
|
|
70
81
|
user: undefined,
|
|
82
|
+
institution: undefined,
|
|
83
|
+
asset: undefined,
|
|
71
84
|
};
|
|
72
85
|
export const ApplicationStore = new Store<ApplicationStoreType>(
|
|
73
86
|
initialApplicationState,
|