@cocreate/users 1.38.2 → 1.38.3
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 +10 -0
- package/docs/index.html +330 -325
- package/package.json +10 -14
- package/webpack.config.js +65 -90
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [1.38.3](https://github.com/CoCreate-app/CoCreate-users/compare/v1.38.2...v1.38.3) (2025-04-30)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added css-loader ([b6e5bf6](https://github.com/CoCreate-app/CoCreate-users/commit/b6e5bf6cd7cffd6254c66b088d0380da9d4eaeb3))
|
|
7
|
+
* update query attributes ([1056fe2](https://github.com/CoCreate-app/CoCreate-users/commit/1056fe2f121baa75f448dfeaeffeef1ae8e76745))
|
|
8
|
+
* updated cocreate modules versions ([7e3b317](https://github.com/CoCreate-app/CoCreate-users/commit/7e3b31752e5cbbee1ece3a22853f7d4d0d4a6dfb))
|
|
9
|
+
* webpack.config and devdependencies ([d43be51](https://github.com/CoCreate-app/CoCreate-users/commit/d43be515840e33cf6d0d86ff3fc7afe8550460eb))
|
|
10
|
+
|
|
1
11
|
## [1.38.2](https://github.com/CoCreate-app/CoCreate-users/compare/v1.38.1...v1.38.2) (2025-04-11)
|
|
2
12
|
|
|
3
13
|
|
package/docs/index.html
CHANGED
|
@@ -1,336 +1,341 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<meta
|
|
24
|
-
property="og:image"
|
|
25
|
-
content="https://cdn.cocreate.app/docs/users.png"
|
|
26
|
-
/>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<title>CoCreate-users Documentation | CoCreateJS</title>
|
|
8
|
+
<link
|
|
9
|
+
rel="icon"
|
|
10
|
+
type="image/png"
|
|
11
|
+
sizes="32x32"
|
|
12
|
+
href="https://cocreate.app/images/favicon.ico" />
|
|
13
|
+
<meta
|
|
14
|
+
name="description"
|
|
15
|
+
content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
|
|
16
|
+
<meta
|
|
17
|
+
name="keywords"
|
|
18
|
+
content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
19
|
+
<meta name="robots" content="index,follow" />
|
|
20
|
+
<meta
|
|
21
|
+
property="og:image"
|
|
22
|
+
content="https://cdn.cocreate.app/docs/users.png" />
|
|
27
23
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</head>
|
|
24
|
+
<link
|
|
25
|
+
rel="stylesheet"
|
|
26
|
+
href="../index.css"
|
|
27
|
+
array="files"
|
|
28
|
+
object="60888216117c640e7596303f"
|
|
29
|
+
key="src"
|
|
30
|
+
type="text/css"
|
|
31
|
+
save="true" />
|
|
32
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
33
|
+
</head>
|
|
39
34
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
<pre><code class="language-bash">npm i @cocreate/users</code></pre>
|
|
151
|
-
<p class="padding:10px_0px line-height:1.5">
|
|
152
|
-
Or you can use cdn link:
|
|
153
|
-
</p>
|
|
154
|
-
<pre><code class="language-html"><script>https://cdn.cocreate.app/users/latest/CoCreate-users.min.js</script></code></pre>
|
|
35
|
+
<body>
|
|
36
|
+
<!-- Navbar -->
|
|
37
|
+
<nav
|
|
38
|
+
class="width:100% display:flex align-items:center background:transparent padding-top:10px padding-bottom:10px"
|
|
39
|
+
content_id="content"
|
|
40
|
+
scroll="sticky-nav,"
|
|
41
|
+
scroll-up="5"
|
|
42
|
+
scroll-down="5"
|
|
43
|
+
path="../"
|
|
44
|
+
src="../components/navbar.html"></nav>
|
|
45
|
+
<sidenav
|
|
46
|
+
id="menuL"
|
|
47
|
+
class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
|
|
48
|
+
resizable
|
|
49
|
+
resize-query="[content_id='content']"
|
|
50
|
+
resize-property="margin-left"
|
|
51
|
+
resize-value="width">
|
|
52
|
+
<menu
|
|
53
|
+
array="files"
|
|
54
|
+
object="603717b07de7fb350ae9fec8"
|
|
55
|
+
key="src"></menu>
|
|
56
|
+
<div resize="right"></div>
|
|
57
|
+
</sidenav>
|
|
58
|
+
<main
|
|
59
|
+
class="padding-top:15px padding:15px@lg@xl"
|
|
60
|
+
content_id="content"
|
|
61
|
+
id="cocreate-users">
|
|
62
|
+
<div
|
|
63
|
+
class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px">
|
|
64
|
+
<div class="display:flex align-items:center">
|
|
65
|
+
<h2>CoCreate-users</h2>
|
|
66
|
+
</div>
|
|
67
|
+
<div
|
|
68
|
+
class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
|
|
69
|
+
<div
|
|
70
|
+
class="display:flex align-items:center transition:0.3s padding-left:10px"
|
|
71
|
+
share-network="true"
|
|
72
|
+
share-text="Enter decription here"
|
|
73
|
+
share-title="testing im a title"
|
|
74
|
+
share-height="600"
|
|
75
|
+
share-width="700"
|
|
76
|
+
share-media="https://cdn.cocreate.app/docs/users.png"
|
|
77
|
+
hover="display:block!important"
|
|
78
|
+
hover-query=".social-networks">
|
|
79
|
+
<div class="display:none social-networks">
|
|
80
|
+
<a
|
|
81
|
+
class="margin-right:15px"
|
|
82
|
+
share-network="twitter"
|
|
83
|
+
title="Share on twitter"
|
|
84
|
+
><i src="/assets/svg/twitter.svg"></i
|
|
85
|
+
></a>
|
|
86
|
+
<a
|
|
87
|
+
class="margin-right:15px"
|
|
88
|
+
share-network="facebook"
|
|
89
|
+
title="Share on Facebook"
|
|
90
|
+
><i src="/assets/svg/facebook.svg"></i
|
|
91
|
+
></a>
|
|
92
|
+
<a
|
|
93
|
+
class="margin-right:15px"
|
|
94
|
+
share-network="instagram"
|
|
95
|
+
title="Share on instagram"
|
|
96
|
+
><i src="/assets/svg/instagram.svg"></i
|
|
97
|
+
></a>
|
|
98
|
+
</div>
|
|
99
|
+
<a
|
|
100
|
+
class="margin-right:15px"
|
|
101
|
+
share-network="share"
|
|
102
|
+
title="Share on share"
|
|
103
|
+
><i src="/assets/svg/share-alt.svg"></i
|
|
104
|
+
></a>
|
|
105
|
+
</div>
|
|
106
|
+
<a
|
|
107
|
+
href="https://github.com/CoCreate-app/CoCreate-users"
|
|
108
|
+
target="_blank"
|
|
109
|
+
class="margin-right:15px"
|
|
110
|
+
><i src="/assets/svg/github.svg"></i
|
|
111
|
+
></a>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
<h1
|
|
115
|
+
class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">
|
|
116
|
+
A headless vinilla javascript micro component. Easy
|
|
117
|
+
configuration using HTML5 attributes or Javscript api.
|
|
118
|
+
</h1>
|
|
119
|
+
<div id="users-section" class="display:flex flex-wrap:wrap">
|
|
120
|
+
<div
|
|
121
|
+
class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px">
|
|
122
|
+
<div
|
|
123
|
+
id="users-install"
|
|
124
|
+
class="border-bottom:1px_solid_lightgrey"
|
|
125
|
+
scroll
|
|
126
|
+
scroll-intersect="color:dodgerblue"
|
|
127
|
+
scroll-query="#users-install-section">
|
|
128
|
+
<span
|
|
129
|
+
class="display:flex align-items:center width:fit-content"
|
|
130
|
+
hover="display:block!important"
|
|
131
|
+
hover-query="[href='#users-install']">
|
|
132
|
+
<h2 class="padding:5px_0px">Install</h2>
|
|
133
|
+
<a
|
|
134
|
+
class="margin-left:10px display:none"
|
|
135
|
+
href="#users-install"
|
|
136
|
+
><i src="/assets/svg/link.svg"></i
|
|
137
|
+
></a>
|
|
138
|
+
</span>
|
|
139
|
+
</div>
|
|
140
|
+
<pre><code class="language-bash">npm i @cocreate/users</code></pre>
|
|
141
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
142
|
+
Or you can use cdn link:
|
|
143
|
+
</p>
|
|
144
|
+
<pre><code class="language-html"><script>https://cdn.cocreate.app/users/latest/CoCreate-users.min.js</script></code></pre>
|
|
155
145
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
146
|
+
<div
|
|
147
|
+
id="users-usage"
|
|
148
|
+
class="margin-top:80px border-bottom:1px_solid_lightgrey"
|
|
149
|
+
scroll
|
|
150
|
+
scroll-intersect="color:dodgerblue"
|
|
151
|
+
scroll-query="#users-usage-section">
|
|
152
|
+
<span
|
|
153
|
+
class="display:flex align-items:center width:fit-content"
|
|
154
|
+
hover="display:block!important"
|
|
155
|
+
hover-query="[href='#users-usage']">
|
|
156
|
+
<h2 class="padding:5px_0px">Usage</h2>
|
|
157
|
+
<a
|
|
158
|
+
class="margin-left:10px display:none"
|
|
159
|
+
href="#users-usage"
|
|
160
|
+
><i src="/assets/svg/link.svg"></i
|
|
161
|
+
></a>
|
|
162
|
+
</span>
|
|
163
|
+
</div>
|
|
164
|
+
<div class="">
|
|
165
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
166
|
+
This is users usage
|
|
167
|
+
</p>
|
|
176
168
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
169
|
+
<div class="flex-grow:1 min-width:300px width:100%">
|
|
170
|
+
<pre><code class="language-html"><div></div></code></pre>
|
|
171
|
+
</div>
|
|
172
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
173
|
+
This is users usage
|
|
174
|
+
</p>
|
|
175
|
+
<p class="padding:10px_0px line-height:1.5">
|
|
176
|
+
This is users usage
|
|
177
|
+
</p>
|
|
178
|
+
</div>
|
|
179
|
+
<div
|
|
180
|
+
id="users-attributes"
|
|
181
|
+
class="margin-top:80px border-bottom:1px_solid_lightgrey"
|
|
182
|
+
scroll
|
|
183
|
+
scroll-intersect="color:dodgerblue"
|
|
184
|
+
scroll-query="#users-attributes-section">
|
|
185
|
+
<span
|
|
186
|
+
class="display:flex align-items:center width:fit-content"
|
|
187
|
+
hover="display:block!important"
|
|
188
|
+
hover-query="[href='#users-attributes']">
|
|
189
|
+
<h2 class="padding:5px_0px">Attributes</h2>
|
|
190
|
+
<a
|
|
191
|
+
class="margin-left:10px display:none"
|
|
192
|
+
href="#users-attributes"
|
|
193
|
+
><i src="/assets/svg/link.svg"></i
|
|
194
|
+
></a>
|
|
195
|
+
</span>
|
|
196
|
+
</div>
|
|
197
|
+
<ul class="list-style-type:none">
|
|
198
|
+
<li
|
|
199
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
200
|
+
<h4>
|
|
201
|
+
<span>users</span>
|
|
202
|
+
<span class="cocreate-badge success"
|
|
203
|
+
>string</span
|
|
204
|
+
>
|
|
205
|
+
<span class="cocreate-badge warning"
|
|
206
|
+
>optional</span
|
|
207
|
+
>
|
|
208
|
+
</h4>
|
|
209
|
+
<p>users-attribute</p>
|
|
210
|
+
</li>
|
|
211
|
+
<li
|
|
212
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
213
|
+
<h4>
|
|
214
|
+
<span>users</span>
|
|
215
|
+
<span class="cocreate-badge success"
|
|
216
|
+
>string</span
|
|
217
|
+
>
|
|
218
|
+
<span class="cocreate-badge warning"
|
|
219
|
+
>optional</span
|
|
220
|
+
>
|
|
221
|
+
</h4>
|
|
222
|
+
<p>users-attribute</p>
|
|
223
|
+
</li>
|
|
224
|
+
</ul>
|
|
225
|
+
</div>
|
|
220
226
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
</div>
|
|
227
|
+
<div
|
|
228
|
+
class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey">
|
|
229
|
+
<!-- SandBox -->
|
|
230
|
+
<div
|
|
231
|
+
id="users-demo"
|
|
232
|
+
class="border-bottom:1px_solid_lightgrey"
|
|
233
|
+
scroll
|
|
234
|
+
scroll-intersect="color:dodgerblue"
|
|
235
|
+
scroll-query="#users-demo-section">
|
|
236
|
+
<span
|
|
237
|
+
class="display:flex align-items:center width:fit-content"
|
|
238
|
+
hover="display:block!important"
|
|
239
|
+
hover-query="[href='#users-demo']">
|
|
240
|
+
<h2 class="padding:5px_0px">Demo</h2>
|
|
241
|
+
<a
|
|
242
|
+
class="margin-left:10px display:none"
|
|
243
|
+
href="#users-demo"
|
|
244
|
+
><i src="/assets/svg/link.svg"></i
|
|
245
|
+
></a>
|
|
246
|
+
</span>
|
|
247
|
+
</div>
|
|
248
|
+
<div
|
|
249
|
+
class="position:sticky top:0 padding:15px_0px height:100vh">
|
|
250
|
+
<!-- SandBox -->
|
|
251
|
+
<div
|
|
252
|
+
class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
|
|
253
|
+
id="playground">
|
|
254
|
+
<div
|
|
255
|
+
id="demo-code"
|
|
256
|
+
resizable
|
|
257
|
+
class="position:relative height:50%">
|
|
258
|
+
<textarea
|
|
259
|
+
type="code"
|
|
260
|
+
lang="html"
|
|
261
|
+
array="demos"
|
|
262
|
+
object=""
|
|
263
|
+
key="demo"
|
|
264
|
+
save="false"
|
|
265
|
+
id="demo"
|
|
266
|
+
input-query=".demopreview"
|
|
267
|
+
input-attribute="value"
|
|
268
|
+
input-events="input, onload"
|
|
269
|
+
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
|
|
270
|
+
<div
|
|
271
|
+
resize="bottom"
|
|
272
|
+
class="background:lightgrey"></div>
|
|
273
|
+
</div>
|
|
269
274
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
</div>
|
|
275
|
+
<div
|
|
276
|
+
id="demo-preview"
|
|
277
|
+
class="position:relative overflow:auto background-color:white">
|
|
278
|
+
<div class="demopreview padding:20px"></div>
|
|
279
|
+
</div>
|
|
276
280
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
281
|
+
<div
|
|
282
|
+
class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
|
283
|
+
<a
|
|
284
|
+
class="margin-right:10px"
|
|
285
|
+
id="eye"
|
|
286
|
+
show="#eye-slash"
|
|
287
|
+
hide="#eye, #demo-preview"
|
|
288
|
+
toggle="code-height"
|
|
289
|
+
toggle-query="#demo-code"
|
|
290
|
+
><i
|
|
291
|
+
class="height:18px"
|
|
292
|
+
src="/assets/svg/eye.svg"></i
|
|
293
|
+
></a>
|
|
294
|
+
<a
|
|
295
|
+
class="margin-right:10px"
|
|
296
|
+
hidden
|
|
297
|
+
id="eye-slash"
|
|
298
|
+
show="#eye, #demo-preview"
|
|
299
|
+
hide="#eye-slash"
|
|
300
|
+
toggle="code-height"
|
|
301
|
+
toggle-query="#demo-code"
|
|
302
|
+
><i src="/assets/svg/eye-slash.svg"></i
|
|
303
|
+
></a>
|
|
304
|
+
<a
|
|
305
|
+
class="margin-right:10px"
|
|
306
|
+
id="code"
|
|
307
|
+
show="#code-slash"
|
|
308
|
+
hide="#code, #demo-code"
|
|
309
|
+
><i src="/assets/svg/code.svg"></i
|
|
310
|
+
></a>
|
|
311
|
+
<a
|
|
312
|
+
class="margin-right:10px"
|
|
313
|
+
hidden
|
|
314
|
+
id="code-slash"
|
|
315
|
+
show="#code, #demo-code"
|
|
316
|
+
hide="#code-slash"
|
|
317
|
+
><i
|
|
318
|
+
class="height:18px"
|
|
319
|
+
src="/assets/svg/code.svg"></i
|
|
320
|
+
></a>
|
|
321
|
+
<a
|
|
322
|
+
class="margin-right:5px"
|
|
323
|
+
fullscreen
|
|
324
|
+
fullscreen-query="#playground"></a>
|
|
325
|
+
</div>
|
|
326
|
+
</div>
|
|
327
|
+
<!-- End SandBox -->
|
|
328
|
+
</div>
|
|
329
|
+
</div>
|
|
330
|
+
</div>
|
|
331
|
+
<button
|
|
332
|
+
href="https://github.com/CoCreate-app/CoCreate-users/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
|
|
333
|
+
target="_blank"
|
|
334
|
+
class="display:flex justify-content:center align-items:center position:fixed bottom:15px right:15px height:50px width:50px border-radius:50% box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
|
|
335
|
+
<i src="../assets/svg/pencil-alt.svg"></i>
|
|
336
|
+
</button>
|
|
337
|
+
</main>
|
|
333
338
|
|
|
334
|
-
|
|
335
|
-
|
|
339
|
+
<script src="https://CoCreate.app/dist/CoCreate.js"></script>
|
|
340
|
+
</body>
|
|
336
341
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/users",
|
|
3
|
-
"version": "1.38.
|
|
3
|
+
"version": "1.38.3",
|
|
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",
|
|
@@ -45,24 +45,20 @@
|
|
|
45
45
|
},
|
|
46
46
|
"main": "./src/index.js",
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"clean-webpack-plugin": "^3.0.0",
|
|
52
|
-
"file-loader": "^6.2.0",
|
|
48
|
+
"css-loader": "^5.1.3",
|
|
49
|
+
"esbuild": "^0.25.2",
|
|
50
|
+
"esbuild-loader": "^4.3.0",
|
|
53
51
|
"mini-css-extract-plugin": "^1.5.0",
|
|
54
|
-
"style-loader": "^3.3.1",
|
|
55
|
-
"terser-webpack-plugin": "^5.1.1",
|
|
56
52
|
"webpack": "^5.24.4",
|
|
57
53
|
"webpack-cli": "^4.5.0",
|
|
58
54
|
"webpack-log": "^3.0.1"
|
|
59
55
|
},
|
|
60
56
|
"dependencies": {
|
|
61
|
-
"@cocreate/actions": "^1.
|
|
62
|
-
"@cocreate/crud-client": "^1.
|
|
63
|
-
"@cocreate/element-prototype": "^1.
|
|
64
|
-
"@cocreate/elements": "^1.
|
|
65
|
-
"@cocreate/local-storage": "^1.
|
|
66
|
-
"@cocreate/render": "^1.
|
|
57
|
+
"@cocreate/actions": "^1.21.0",
|
|
58
|
+
"@cocreate/crud-client": "^1.34.1",
|
|
59
|
+
"@cocreate/element-prototype": "^1.29.0",
|
|
60
|
+
"@cocreate/elements": "^1.42.0",
|
|
61
|
+
"@cocreate/local-storage": "^1.16.1",
|
|
62
|
+
"@cocreate/render": "^1.45.1"
|
|
67
63
|
}
|
|
68
64
|
}
|
package/webpack.config.js
CHANGED
|
@@ -1,90 +1,65 @@
|
|
|
1
|
-
const path = require("path")
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const {
|
|
5
|
-
|
|
6
|
-
module.exports = (env, argv) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
parallel: true,
|
|
67
|
-
// sourceMap: true, // Must be set to true if using source-maps in production
|
|
68
|
-
terserOptions: {
|
|
69
|
-
// https://github.com/webpack-contrib/terser-webpack-plugin#terseroptions
|
|
70
|
-
// extractComments: 'all',
|
|
71
|
-
compress: {
|
|
72
|
-
drop_console: true,
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
}),
|
|
76
|
-
],
|
|
77
|
-
splitChunks: {
|
|
78
|
-
chunks: "all",
|
|
79
|
-
minSize: 200,
|
|
80
|
-
// maxSize: 99999,
|
|
81
|
-
//minChunks: 1,
|
|
82
|
-
|
|
83
|
-
cacheGroups: {
|
|
84
|
-
defaultVendors: false,
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
}
|
|
89
|
-
return config
|
|
90
|
-
}
|
|
1
|
+
const path = require("path");
|
|
2
|
+
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
3
|
+
const { EsbuildPlugin } = require("esbuild-loader");
|
|
4
|
+
const { FileUploader } = require("@cocreate/webpack");
|
|
5
|
+
|
|
6
|
+
module.exports = async (env, argv) => {
|
|
7
|
+
const isProduction = argv && argv.mode === "production";
|
|
8
|
+
const config = {
|
|
9
|
+
entry: {
|
|
10
|
+
"CoCreate-users": "./src/index.js"
|
|
11
|
+
},
|
|
12
|
+
output: {
|
|
13
|
+
path: path.resolve(__dirname, "dist"),
|
|
14
|
+
filename: isProduction ? "[name].min.js" : "[name].js",
|
|
15
|
+
libraryExport: "default",
|
|
16
|
+
library: ["CoCreate", "users"],
|
|
17
|
+
clean: true
|
|
18
|
+
},
|
|
19
|
+
plugins: [
|
|
20
|
+
new MiniCssExtractPlugin({
|
|
21
|
+
filename: isProduction ? "[name].min.css" : "[name].css"
|
|
22
|
+
}),
|
|
23
|
+
new FileUploader(env, argv)
|
|
24
|
+
],
|
|
25
|
+
mode: isProduction ? "production" : "development",
|
|
26
|
+
devtool: isProduction ? "source-map" : "eval-source-map",
|
|
27
|
+
module: {
|
|
28
|
+
rules: [
|
|
29
|
+
{
|
|
30
|
+
test: /.js$/,
|
|
31
|
+
exclude: /node_modules/,
|
|
32
|
+
use: {
|
|
33
|
+
loader: "esbuild-loader",
|
|
34
|
+
options: {
|
|
35
|
+
loader: "js",
|
|
36
|
+
target: "es2017"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
test: /.css$/i,
|
|
42
|
+
use: [MiniCssExtractPlugin.loader, "css-loader"]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
optimization: {
|
|
47
|
+
minimize: isProduction,
|
|
48
|
+
minimizer: [
|
|
49
|
+
new EsbuildPlugin({
|
|
50
|
+
target: "es2017",
|
|
51
|
+
css: true
|
|
52
|
+
})
|
|
53
|
+
],
|
|
54
|
+
splitChunks: {
|
|
55
|
+
cacheGroups: {
|
|
56
|
+
defaultVendors: false
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
performance: {
|
|
61
|
+
hints: isProduction ? "warning" : false
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
return config;
|
|
65
|
+
};
|