@cocreate/utils 1.21.16 → 1.23.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 +29 -0
- package/CoCreate.config.js +2 -2
- package/LICENSE +683 -21
- package/docs/index.html +28 -28
- package/package.json +3 -3
- package/src/index.js +616 -9
- package/webpack.config.js +79 -73
- package/src/archive.js +0 -495
- package/src/utils.js +0 -606
package/docs/index.html
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
sizes="32x32"
|
|
12
12
|
href="https://cocreate.app/images/favicon.ico" />
|
|
13
13
|
<meta
|
|
14
|
-
|
|
14
|
+
key="description"
|
|
15
15
|
content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
|
|
16
16
|
<meta
|
|
17
|
-
|
|
17
|
+
key="keywords"
|
|
18
18
|
content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
19
19
|
<meta name="robots" content="index,follow" />
|
|
20
20
|
<meta
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
<link
|
|
30
30
|
rel="stylesheet"
|
|
31
31
|
href="/docs/index.css"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
array="files"
|
|
33
|
+
object="60888216117c640e7596303f"
|
|
34
|
+
key="src"
|
|
35
35
|
type="text/css"
|
|
36
36
|
save="true" />
|
|
37
37
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
@@ -44,20 +44,20 @@
|
|
|
44
44
|
scroll="sticky-nav,hide-nav"
|
|
45
45
|
scroll-up="10"
|
|
46
46
|
scroll-down="10"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
array="files"
|
|
48
|
+
object="60395ef42b3ac232657040fd"
|
|
49
|
+
key="src"></nav>
|
|
50
50
|
<sidenav
|
|
51
51
|
id="menuL"
|
|
52
52
|
class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
|
|
53
53
|
resizable
|
|
54
|
-
resize-
|
|
54
|
+
resize-selector="[content_id='content']"
|
|
55
55
|
resize-property="margin-left"
|
|
56
56
|
resize-value="width">
|
|
57
57
|
<menu
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
array="files"
|
|
59
|
+
object="603717b07de7fb350ae9fec8"
|
|
60
|
+
key="src"></menu>
|
|
61
61
|
<div resize="right"></div>
|
|
62
62
|
</sidenav>
|
|
63
63
|
<main
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
share-width="700"
|
|
81
81
|
share-media="https://cdn.cocreate.app/docs/utils.png"
|
|
82
82
|
hover="display:block!important"
|
|
83
|
-
hover-
|
|
83
|
+
hover-selector=".social-networks">
|
|
84
84
|
<div class="display:none social-networks">
|
|
85
85
|
<a
|
|
86
86
|
class="margin-right:15px"
|
|
@@ -139,11 +139,11 @@
|
|
|
139
139
|
class="border-bottom:1px_solid_lightgrey"
|
|
140
140
|
scroll
|
|
141
141
|
scroll-intersect="color:dodgerblue"
|
|
142
|
-
scroll-
|
|
142
|
+
scroll-selector="#utils-install-section">
|
|
143
143
|
<span
|
|
144
144
|
class="display:flex align-items:center width:fit-content"
|
|
145
145
|
hover="display:block!important"
|
|
146
|
-
hover-
|
|
146
|
+
hover-selector="[href='#utils-install']">
|
|
147
147
|
<h2 class="padding:5px_0px">Install</h2>
|
|
148
148
|
<a
|
|
149
149
|
class="margin-left:10px display:none"
|
|
@@ -166,11 +166,11 @@
|
|
|
166
166
|
class="margin-top:80px border-bottom:1px_solid_lightgrey"
|
|
167
167
|
scroll
|
|
168
168
|
scroll-intersect="color:dodgerblue"
|
|
169
|
-
scroll-
|
|
169
|
+
scroll-selector="#utils-usage-section">
|
|
170
170
|
<span
|
|
171
171
|
class="display:flex align-items:center width:fit-content"
|
|
172
172
|
hover="display:block!important"
|
|
173
|
-
hover-
|
|
173
|
+
hover-selector="[href='#utils-usage']">
|
|
174
174
|
<h2 class="padding:5px_0px">Usage</h2>
|
|
175
175
|
<a
|
|
176
176
|
class="margin-left:10px display:none"
|
|
@@ -191,11 +191,11 @@
|
|
|
191
191
|
class="margin-top:80px border-bottom:1px_solid_lightgrey"
|
|
192
192
|
scroll
|
|
193
193
|
scroll-intersect="color:dodgerblue"
|
|
194
|
-
scroll-
|
|
194
|
+
scroll-selector="#utils-attributes-section">
|
|
195
195
|
<span
|
|
196
196
|
class="display:flex align-items:center width:fit-content"
|
|
197
197
|
hover="display:block!important"
|
|
198
|
-
hover-
|
|
198
|
+
hover-selector="[href='#utils-attributes']">
|
|
199
199
|
<h2 class="padding:5px_0px">Attributes</h2>
|
|
200
200
|
<a
|
|
201
201
|
class="margin-left:10px display:none"
|
|
@@ -244,11 +244,11 @@
|
|
|
244
244
|
class="border-bottom:1px_solid_lightgrey"
|
|
245
245
|
scroll
|
|
246
246
|
scroll-intersect="color:dodgerblue"
|
|
247
|
-
scroll-
|
|
247
|
+
scroll-selector="#utils-demo-section">
|
|
248
248
|
<span
|
|
249
249
|
class="display:flex align-items:center width:fit-content"
|
|
250
250
|
hover="display:block!important"
|
|
251
|
-
hover-
|
|
251
|
+
hover-selector="[href='#utils-demo']">
|
|
252
252
|
<h2 class="padding:5px_0px">Demo</h2>
|
|
253
253
|
<a
|
|
254
254
|
class="margin-left:10px display:none"
|
|
@@ -272,12 +272,12 @@
|
|
|
272
272
|
<textarea
|
|
273
273
|
type="code"
|
|
274
274
|
lang="html"
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
275
|
+
array="demos"
|
|
276
|
+
object=""
|
|
277
|
+
key="demo"
|
|
278
278
|
save="false"
|
|
279
279
|
id="demo"
|
|
280
|
-
input-
|
|
280
|
+
input-selector=".demopreview"
|
|
281
281
|
input-attribute="value"
|
|
282
282
|
input-events="input, onload"
|
|
283
283
|
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
show="#eye-slash"
|
|
301
301
|
hide="#eye, #demo-preview"
|
|
302
302
|
toggle="code-height"
|
|
303
|
-
toggle-
|
|
303
|
+
toggle-selector="#demo-code"
|
|
304
304
|
><i
|
|
305
305
|
class="height:18px fill:#505050"
|
|
306
306
|
src="/assets/svg/eye.svg"></i
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
show="#eye, #demo-preview"
|
|
313
313
|
hide="#eye-slash"
|
|
314
314
|
toggle="code-height"
|
|
315
|
-
toggle-
|
|
315
|
+
toggle-selector="#demo-code"
|
|
316
316
|
><i
|
|
317
317
|
class="height:20px fill:#505050"
|
|
318
318
|
src="/assets/svg/eye-slash.svg"></i
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
<a
|
|
340
340
|
class="margin-right:5px"
|
|
341
341
|
fullscreen
|
|
342
|
-
fullscreen-
|
|
342
|
+
fullscreen-selector="#playground"></a>
|
|
343
343
|
</div>
|
|
344
344
|
</div>
|
|
345
345
|
<!-- End SandBox -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"description": "A simple utils component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"utils",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"start": "npx webpack --config webpack.config.js",
|
|
28
|
-
"build": "
|
|
28
|
+
"build": "npx webpack --mode=production --config webpack.config.js",
|
|
29
29
|
"dev": "npx webpack --config webpack.config.js --watch",
|
|
30
30
|
"postinstall": "node -e \"const { execSync } = require('child_process'); try { execSync('coc --version', { stdio: 'ignore' }); } catch (error) { try { execSync('npm install -g @cocreate/cli', { stdio: 'inherit' }); console.log('Installed \"@cocreate/cli\" globally.'); } catch (error) { console.error('Failed to install \"@cocreate/cli\" globally:', error); } }\""
|
|
31
31
|
},
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"url": "git+https://github.com/CoCreate-app/CoCreate-utils.git"
|
|
35
35
|
},
|
|
36
36
|
"author": "CoCreate LLC",
|
|
37
|
-
"license": "
|
|
37
|
+
"license": "AGPL-3.0",
|
|
38
38
|
"bugs": {
|
|
39
39
|
"url": "https://github.com/CoCreate-app/CoCreate-utils/issues"
|
|
40
40
|
},
|