@cocreate/users 1.14.1 → 1.15.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,10 @@
1
+ # [1.15.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.14.1...v1.15.0) (2023-01-02)
2
+
3
+
4
+ ### Features
5
+
6
+ * class="template" template_id="id" replaced with template="id" ([84b59f7](https://github.com/CoCreate-app/CoCreate-users/commit/84b59f7a3c09c0d967399dd523f944d284383b9f))
7
+
1
8
  ## [1.14.1](https://github.com/CoCreate-app/CoCreate-users/compare/v1.14.0...v1.14.1) (2023-01-01)
2
9
 
3
10
 
package/demo/signin.html CHANGED
@@ -66,11 +66,11 @@
66
66
  </div>
67
67
 
68
68
  <div class="position:fixed!important bottom:15px right:15px">
69
- <div template_id="signIn" class="template card margin:5px padding:10px {{status}}">
69
+ <div template="signIn" class="card margin:5px padding:10px {{status}}">
70
70
  <span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
71
71
  </div>
72
72
 
73
- <div template_id="notification" class="template card position:fixed!important bottom:15px right:15px padding:10px {{status}}">
73
+ <div template="notification" class="card position:fixed!important bottom:15px right:15px padding:10px {{status}}">
74
74
  <span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
75
75
  </div>
76
76
  </div>
package/demo/signout.html CHANGED
@@ -27,7 +27,7 @@
27
27
  </div>
28
28
 
29
29
  <div class="position:fixed!important bottom:15px right:15px">
30
- <div template_id="notification" class="template card position:fixed!important bottom:15px right:15px padding:10px {{status}}">
30
+ <div template="notification" class="card position:fixed!important bottom:15px right:15px padding:10px {{status}}">
31
31
  <span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
32
32
  </div>
33
33
  </div>
package/demo/signup.html CHANGED
@@ -87,11 +87,11 @@
87
87
  </main>
88
88
 
89
89
  <div class="position:fixed!important bottom:15px right:15px">
90
- <div template_id="validate" class="template card margin:5px padding:10px {{status}}">
90
+ <div template="validate" class="card margin:5px padding:10px {{status}}">
91
91
  <span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
92
92
  </div>
93
93
 
94
- <div template_id="notification" class="template card margin:5px padding:10px {{status}}">
94
+ <div template="notification" class="card margin:5px padding:10px {{status}}">
95
95
  <span class="{{type}}">{{message}}</span><a actions="removeElement"> X</a>
96
96
  </div>
97
97
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.14.1",
3
+ "version": "1.15.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",
package/src/client.js CHANGED
@@ -19,7 +19,7 @@ const CoCreateUser = {
19
19
  self.setDocumentId('users', data.document[0]._id);
20
20
 
21
21
  render.data({
22
- selector: "[template_id='signUp']",
22
+ selector: "[template='signUp']",
23
23
  data: {
24
24
  type: 'signUp',
25
25
  message: 'Succesfully Signed Up',
@@ -104,7 +104,7 @@ const CoCreateUser = {
104
104
  message = "The email or password you entered is incorrect";
105
105
 
106
106
  render.data({
107
- selector: "[template_id='signIn']",
107
+ selector: "[template='signIn']",
108
108
  data: {
109
109
  type: 'signIn',
110
110
  status,
@@ -126,7 +126,7 @@ const CoCreateUser = {
126
126
  new Date(0).toUTCString();
127
127
 
128
128
  render.data({
129
- selector: "[template_id='signOut']",
129
+ selector: "[template='signOut']",
130
130
  data: {
131
131
  type: 'signOut',
132
132
  message: 'Succesfully logged out',
@@ -177,7 +177,7 @@ const CoCreateUser = {
177
177
  data.organization_id = org_id
178
178
  crud.createDocument(request).then((response) => {
179
179
  render.data({
180
- selector: "[template_id='signUp']",
180
+ selector: "[template='signUp']",
181
181
  data: {
182
182
  type: 'signUp',
183
183
  message: 'Succesfully Signed Up',