@cocreate/users 1.12.0 → 1.12.2
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 +6 -6
- package/src/client.js +20 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.12.2](https://github.com/CoCreate-app/CoCreate-users/compare/v1.12.1...v1.12.2) (2022-12-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump dependnecies ([3b1d204](https://github.com/CoCreate-app/CoCreate-users/commit/3b1d204a1ac32829ded52b84bbc6e1259e544794))
|
|
7
|
+
|
|
8
|
+
## [1.12.1](https://github.com/CoCreate-app/CoCreate-users/compare/v1.12.0...v1.12.1) (2022-12-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* render signup notification ([d49ef36](https://github.com/CoCreate-app/CoCreate-users/commit/d49ef362b716e0a2952187bc1c6a350ca4d7d052))
|
|
14
|
+
|
|
1
15
|
# [1.12.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.11.8...v1.12.0) (2022-12-23)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/users",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.2",
|
|
4
4
|
"description": "A simple users component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"users",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"webpack-log": "^3.0.1"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@cocreate/actions": "^1.5.
|
|
64
|
-
"@cocreate/crud-client": "^1.16.
|
|
65
|
-
"@cocreate/docs": "^1.4.
|
|
66
|
-
"@cocreate/element-prototype": "^1.2.
|
|
67
|
-
"@cocreate/render": "^1.17.
|
|
63
|
+
"@cocreate/actions": "^1.5.42",
|
|
64
|
+
"@cocreate/crud-client": "^1.16.21",
|
|
65
|
+
"@cocreate/docs": "^1.4.24",
|
|
66
|
+
"@cocreate/element-prototype": "^1.2.10",
|
|
67
|
+
"@cocreate/render": "^1.17.8"
|
|
68
68
|
}
|
|
69
69
|
}
|
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
|
}));
|
|
@@ -294,7 +304,15 @@ const CoCreateUser = {
|
|
|
294
304
|
data.document['_id'] = response.document_id
|
|
295
305
|
data.organization_id = org_id
|
|
296
306
|
crud.createDocument(request).then((response) => {
|
|
297
|
-
|
|
307
|
+
render.data({
|
|
308
|
+
selector: "[template_id='signUp']",
|
|
309
|
+
data: {
|
|
310
|
+
type: 'signUp',
|
|
311
|
+
message: 'Succesfully Signed Up',
|
|
312
|
+
success: true
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
|
|
298
316
|
document.dispatchEvent(new CustomEvent('signUp', {
|
|
299
317
|
detail: response
|
|
300
318
|
}));
|
|
@@ -310,7 +328,7 @@ const CoCreateUser = {
|
|
|
310
328
|
broadcastBrowser: false
|
|
311
329
|
});
|
|
312
330
|
}
|
|
313
|
-
}
|
|
331
|
+
}
|
|
314
332
|
};
|
|
315
333
|
|
|
316
334
|
|