@cocreate/users 1.11.8 → 1.12.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.
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/client.js +29 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.12.1](https://github.com/CoCreate-app/CoCreate-users/compare/v1.12.0...v1.12.1) (2022-12-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* render signup notification ([d49ef36](https://github.com/CoCreate-app/CoCreate-users/commit/d49ef362b716e0a2952187bc1c6a350ca4d7d052))
|
|
7
|
+
|
|
8
|
+
# [1.12.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.11.8...v1.12.0) (2022-12-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* render signout status message ([fd6ab4a](https://github.com/CoCreate-app/CoCreate-users/commit/fd6ab4a660479527bd2dcdbb3a38745215037b52))
|
|
14
|
+
|
|
1
15
|
## [1.11.8](https://github.com/CoCreate-app/CoCreate-users/compare/v1.11.7...v1.11.8) (2022-12-22)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -20,6 +20,16 @@ const CoCreateUser = {
|
|
|
20
20
|
const self = this;
|
|
21
21
|
crud.listen('signUp', function(data) {
|
|
22
22
|
self.setDocumentId('users', data.document[0]._id);
|
|
23
|
+
|
|
24
|
+
render.data({
|
|
25
|
+
selector: "[template_id='signUp']",
|
|
26
|
+
data: {
|
|
27
|
+
type: 'signUp',
|
|
28
|
+
message: 'Succesfully Signed Up',
|
|
29
|
+
success: true
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
23
33
|
document.dispatchEvent(new CustomEvent('signUp', {
|
|
24
34
|
detail: data
|
|
25
35
|
}));
|
|
@@ -118,6 +128,15 @@ const CoCreateUser = {
|
|
|
118
128
|
document.cookie = allCookies[i] + "=;expires=" +
|
|
119
129
|
new Date(0).toUTCString();
|
|
120
130
|
|
|
131
|
+
render.data({
|
|
132
|
+
selector: "[template_id='signOut']",
|
|
133
|
+
data: {
|
|
134
|
+
type: 'signOut',
|
|
135
|
+
message: 'Succesfully logged out',
|
|
136
|
+
success: true
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
|
|
121
140
|
// Todo: replace with Custom event system
|
|
122
141
|
document.dispatchEvent(new CustomEvent('signOut'));
|
|
123
142
|
},
|
|
@@ -285,7 +304,15 @@ const CoCreateUser = {
|
|
|
285
304
|
data.document['_id'] = response.document_id
|
|
286
305
|
data.organization_id = org_id
|
|
287
306
|
crud.createDocument(request).then((response) => {
|
|
288
|
-
|
|
307
|
+
render.data({
|
|
308
|
+
selector: "[template_id='signUp']",
|
|
309
|
+
data: {
|
|
310
|
+
type: 'signUp',
|
|
311
|
+
message: 'Succesfully Signed Up',
|
|
312
|
+
success: true
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
|
|
289
316
|
document.dispatchEvent(new CustomEvent('signUp', {
|
|
290
317
|
detail: response
|
|
291
318
|
}));
|
|
@@ -301,7 +328,7 @@ const CoCreateUser = {
|
|
|
301
328
|
broadcastBrowser: false
|
|
302
329
|
});
|
|
303
330
|
}
|
|
304
|
-
}
|
|
331
|
+
}
|
|
305
332
|
};
|
|
306
333
|
|
|
307
334
|
|