@cocreate/users 1.11.7 → 1.12.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/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ # [1.12.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.11.8...v1.12.0) (2022-12-23)
2
+
3
+
4
+ ### Features
5
+
6
+ * render signout status message ([fd6ab4a](https://github.com/CoCreate-app/CoCreate-users/commit/fd6ab4a660479527bd2dcdbb3a38745215037b52))
7
+
8
+ ## [1.11.8](https://github.com/CoCreate-app/CoCreate-users/compare/v1.11.7...v1.11.8) (2022-12-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump dependencies ([fafebce](https://github.com/CoCreate-app/CoCreate-users/commit/fafebce38f4c9a833451128c6d3da389885fe3ae))
14
+ * update cdn ([9afb4d5](https://github.com/CoCreate-app/CoCreate-users/commit/9afb4d54b046a87b20dac956ed006d02e56934e8))
15
+
1
16
  ## [1.11.7](https://github.com/CoCreate-app/CoCreate-users/compare/v1.11.6...v1.11.7) (2022-12-22)
2
17
 
3
18
 
package/demo/signin.html CHANGED
@@ -76,8 +76,7 @@
76
76
  </div>
77
77
 
78
78
 
79
- <script src="https://cdn.cocreate.app/1.34.3/CoCreate.min.js"></script>
80
- <!-- <script src="../../../CoCreateJS/dist/CoCreate.js"></script> -->
79
+ <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
81
80
 
82
81
  </body>
83
82
  </html>
package/demo/signout.html CHANGED
@@ -32,8 +32,7 @@
32
32
  </div>
33
33
  </div>
34
34
 
35
- <script src="https://cdn.cocreate.app/1.34.3/CoCreate.min.js"></script>
36
- <!-- <script src="../../../CoCreateJS/dist/CoCreate.js"></script> -->
35
+ <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
37
36
 
38
37
  </body>
39
38
  </html>
package/demo/signup.html CHANGED
@@ -96,8 +96,7 @@
96
96
  </div>
97
97
  </div>
98
98
 
99
- <script src="https://cdn.cocreate.app/1.34.3/CoCreate.min.js"></script>
100
- <!-- <script src="../../../CoCreateJS/dist/CoCreate.js"></script> -->
101
-
99
+ <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
100
+
102
101
  </body>
103
102
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.11.7",
3
+ "version": "1.12.0",
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.40",
64
- "@cocreate/crud-client": "^1.16.19",
65
- "@cocreate/docs": "^1.4.22",
66
- "@cocreate/element-prototype": "^1.2.8",
67
- "@cocreate/render": "^1.17.6"
63
+ "@cocreate/actions": "^1.5.41",
64
+ "@cocreate/crud-client": "^1.16.20",
65
+ "@cocreate/docs": "^1.4.23",
66
+ "@cocreate/element-prototype": "^1.2.9",
67
+ "@cocreate/render": "^1.17.7"
68
68
  }
69
69
  }
package/src/client.js CHANGED
@@ -118,6 +118,15 @@ const CoCreateUser = {
118
118
  document.cookie = allCookies[i] + "=;expires=" +
119
119
  new Date(0).toUTCString();
120
120
 
121
+ render.data({
122
+ selector: "[template_id='signOut']",
123
+ data: {
124
+ type: 'signOut',
125
+ message: 'Succesfully logged out',
126
+ success: true
127
+ }
128
+ });
129
+
121
130
  // Todo: replace with Custom event system
122
131
  document.dispatchEvent(new CustomEvent('signOut'));
123
132
  },