@cocreate/utils 1.21.15 → 1.22.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/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
- name="description"
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
- name="keywords"
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
- collection="files"
33
- document_id="60888216117c640e7596303f"
34
- name="src"
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
- collection="files"
48
- document_id="60395ef42b3ac232657040fd"
49
- name="src"></nav>
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-target="[content_id='content']"
54
+ resize-selector="[content_id='content']"
55
55
  resize-property="margin-left"
56
56
  resize-value="width">
57
57
  <menu
58
- collection="files"
59
- document_id="603717b07de7fb350ae9fec8"
60
- name="src"></menu>
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-target=".social-networks">
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-target="#utils-install-section">
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-target="[href='#utils-install']">
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-target="#utils-usage-section">
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-target="[href='#utils-usage']">
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-target="#utils-attributes-section">
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-target="[href='#utils-attributes']">
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-target="#utils-demo-section">
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-target="[href='#utils-demo']">
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
- collection="demos"
276
- document_id=""
277
- name="demo"
275
+ array="demos"
276
+ object=""
277
+ key="demo"
278
278
  save="false"
279
279
  id="demo"
280
- input-target=".demopreview"
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-target="#demo-code"
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-target="#demo-code"
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-target="#playground"></a>
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.21.15",
3
+ "version": "1.22.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": "NODE_ENV=production npx webpack --config webpack.config.js",
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": "MIT",
37
+ "license": "AGPL-3.0",
38
38
  "bugs": {
39
39
  "url": "https://github.com/CoCreate-app/CoCreate-utils/issues"
40
40
  },
@@ -56,8 +56,5 @@
56
56
  "webpack": "^5.24.4",
57
57
  "webpack-cli": "^4.5.0",
58
58
  "webpack-log": "^3.0.1"
59
- },
60
- "dependencies": {
61
- "@cocreate/cli": "^1.33.8"
62
59
  }
63
60
  }