@cocreate/users 1.14.0 → 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 +14 -0
- package/demo/signin.html +2 -2
- package/demo/signout.html +1 -1
- package/demo/signup.html +2 -2
- package/docs/index.html +2 -2
- package/package.json +6 -6
- package/src/client.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [1.14.1](https://github.com/CoCreate-app/CoCreate-users/compare/v1.14.0...v1.14.1) (2023-01-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* docs sanbox overflow ([8475ec8](https://github.com/CoCreate-app/CoCreate-users/commit/8475ec8592e426b5b7cf7cb2c03a5d907eecd4cd))
|
|
14
|
+
|
|
1
15
|
# [1.14.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.13.2...v1.14.0) (2022-12-31)
|
|
2
16
|
|
|
3
17
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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/docs/index.html
CHANGED
|
@@ -96,14 +96,14 @@
|
|
|
96
96
|
</div>
|
|
97
97
|
<div class="position:sticky top:0 padding:15px_0px height:100vh">
|
|
98
98
|
<!-- SandBox -->
|
|
99
|
-
<div class="position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
|
|
99
|
+
<div class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
|
|
100
100
|
|
|
101
101
|
<div id="demo-code" resizable class="position:relative height:50%">
|
|
102
102
|
<textarea type="code" lang="html" collection="demos" document_id="" name="demo" save="false" id="demo" class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
|
|
103
103
|
<div resize="bottom" class="background:lightgrey"></div>
|
|
104
104
|
</div>
|
|
105
105
|
|
|
106
|
-
<div id="demo-preview" class="position:relative
|
|
106
|
+
<div id="demo-preview" class="position:relative overflow:auto background-color:white">
|
|
107
107
|
<div get-value="#demo" class="padding:20px"></div>
|
|
108
108
|
</div>
|
|
109
109
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/users",
|
|
3
|
-
"version": "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",
|
|
@@ -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.17.
|
|
65
|
-
"@cocreate/docs": "^1.5.
|
|
66
|
-
"@cocreate/element-prototype": "^1.2.
|
|
67
|
-
"@cocreate/render": "^1.
|
|
63
|
+
"@cocreate/actions": "^1.5.48",
|
|
64
|
+
"@cocreate/crud-client": "^1.17.9",
|
|
65
|
+
"@cocreate/docs": "^1.5.2",
|
|
66
|
+
"@cocreate/element-prototype": "^1.2.21",
|
|
67
|
+
"@cocreate/render": "^1.18.0"
|
|
68
68
|
}
|
|
69
69
|
}
|
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: "[
|
|
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: "[
|
|
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: "[
|
|
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: "[
|
|
180
|
+
selector: "[template='signUp']",
|
|
181
181
|
data: {
|
|
182
182
|
type: 'signUp',
|
|
183
183
|
message: 'Succesfully Signed Up',
|