@college-africa/chat-ui 1.2.6 → 1.3.1
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.
|
@@ -3367,17 +3367,18 @@ var Zr = class {
|
|
|
3367
3367
|
this.isRefreshing = !1;
|
|
3368
3368
|
}
|
|
3369
3369
|
}
|
|
3370
|
-
async exchangeToken(e
|
|
3371
|
-
let
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3370
|
+
async exchangeToken(e) {
|
|
3371
|
+
let t = (await this.axiosInstance.post("/auth/token", { token: e })).data.token;
|
|
3372
|
+
return this.setAuthToken(t), t;
|
|
3373
|
+
}
|
|
3374
|
+
async registerPushToken(e, t) {
|
|
3375
|
+
await this.ensureAuthToken(), await this.axiosInstance.post("/auth/push", {
|
|
3376
|
+
token: e,
|
|
3377
|
+
platform: t
|
|
3378
|
+
});
|
|
3378
3379
|
}
|
|
3379
|
-
async
|
|
3380
|
-
await this.ensureAuthToken(), await this.axiosInstance.delete("/auth/
|
|
3380
|
+
async removePushToken(e) {
|
|
3381
|
+
await this.ensureAuthToken(), await this.axiosInstance.delete("/auth/push", { data: { token: e } });
|
|
3381
3382
|
}
|
|
3382
3383
|
async getMe() {
|
|
3383
3384
|
return await this.ensureAuthToken(), (await this.axiosInstance.get("/users/me")).data.user;
|
|
@@ -8132,4 +8133,4 @@ var bo = /* @__PURE__ */ s({
|
|
|
8132
8133
|
return await co.summaries.bulkPut(n), n;
|
|
8133
8134
|
};
|
|
8134
8135
|
//#endregion
|
|
8135
|
-
export {
|
|
8136
|
+
export { o as C, gr as S, gi as _, _o as a, di as b, po as c, co as d, Xa as f, zi as g, ra as h, vo as i, fo as l, oa as m, So as n, go as o, Ga as p, bo as r, yo as s, wo as t, uo as u, hi as v, l as w, Pr as x, fi as y };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@college-africa/chat-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "React chat UI component library for College Africa Chat",
|
|
@@ -38,12 +38,13 @@
|
|
|
38
38
|
"react-dom": "^17.0.0||^18.0.0||^19.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
+
"@college-africa/chat-sdk": "1.3.0",
|
|
41
42
|
"@mui/icons-material": "^7.0.0",
|
|
42
43
|
"dexie": "^4.4.2",
|
|
43
44
|
"dexie-react-hooks": "^4.4.0",
|
|
44
45
|
"formik": "^2.4.9",
|
|
45
46
|
"jose": "^6.2.2",
|
|
46
|
-
"
|
|
47
|
+
"lodash": "^4.18.1",
|
|
47
48
|
"yup": "^1.7.1"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
"@mui/material": "^7.0.0",
|
|
53
54
|
"@testing-library/jest-dom": "^6.9.1",
|
|
54
55
|
"@testing-library/react": "^16.3.2",
|
|
56
|
+
"@types/lodash": "^4.17.24",
|
|
55
57
|
"@types/react": "^19.2.14",
|
|
56
58
|
"@types/react-dom": "^19.2.3",
|
|
57
59
|
"@vitejs/plugin-react": "^6.0.1",
|