@cocreate/unique 1.19.7 → 1.20.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,23 @@
1
+ # [1.20.0](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.19.8...v1.20.0) (2024-11-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * pretier.config.js and file formating ([11bc64f](https://github.com/CoCreate-app/CoCreate-unique/commit/11bc64f62609aabfac1486e1a647b9c768ca0004))
7
+
8
+
9
+ ### Features
10
+
11
+ * add prettier.config.js and format files ([76893fb](https://github.com/CoCreate-app/CoCreate-unique/commit/76893fbfe8edef1dd11ef1f3c76e32812f1c39d8))
12
+ * add prettier.config.js and format files ([b631510](https://github.com/CoCreate-app/CoCreate-unique/commit/b631510380825e3b25f84fbeaa718ccdad150549))
13
+
14
+ ## [1.19.8](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.19.7...v1.19.8) (2024-11-02)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * observer taget has been renamed to selector ([9433e72](https://github.com/CoCreate-app/CoCreate-unique/commit/9433e720658e242ee486b762315a3f948ff333fd))
20
+
1
21
  ## [1.19.7](https://github.com/CoCreate-app/CoCreate-unique/compare/v1.19.6...v1.19.7) (2024-06-23)
2
22
 
3
23
 
package/docs/index.html CHANGED
@@ -1,341 +1,336 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
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-unique 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/unique.png" />
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-unique Documentation | CoCreateJS</title>
8
+ <link
9
+ rel="icon"
10
+ type="image/png"
11
+ sizes="32x32"
12
+ href="https://cocreate.app/images/favicon.ico"
13
+ />
14
+ <meta
15
+ name="description"
16
+ content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable."
17
+ />
18
+ <meta
19
+ name="keywords"
20
+ content="helper classes, utility classes, css framework, css library, inline style classes"
21
+ />
22
+ <meta name="robots" content="index,follow" />
23
+ <meta
24
+ property="og:image"
25
+ content="https://cdn.cocreate.app/docs/unique.png"
26
+ />
23
27
 
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>
28
+ <link
29
+ rel="stylesheet"
30
+ href="../index.css"
31
+ array="files"
32
+ object="60888216117c640e7596303f"
33
+ key="src"
34
+ type="text/css"
35
+ save="true"
36
+ />
37
+ <link rel="manifest" href="/manifest.webmanifest" />
38
+ </head>
34
39
 
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-selector="[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-unique">
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-unique</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/unique.png"
77
- hover="display:block!important"
78
- hover-selector=".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-unique"
108
- target="_blank"
109
- class="margin-right:15px"
110
- ><i src="/assets/svg/github.svg"></i
111
- ></a>
112
- </div>
40
+ <body>
41
+ <!-- Navbar -->
42
+ <nav
43
+ class="width:100% display:flex align-items:center background:transparent padding-top:10px padding-bottom:10px"
44
+ content_id="content"
45
+ scroll="sticky-nav,"
46
+ scroll-up="5"
47
+ scroll-down="5"
48
+ path="../"
49
+ src="../components/navbar.html"
50
+ ></nav>
51
+ <sidenav
52
+ id="menuL"
53
+ class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
54
+ resizable
55
+ resize-selector="[content_id='content']"
56
+ resize-property="margin-left"
57
+ resize-value="width"
58
+ >
59
+ <menu array="files" object="603717b07de7fb350ae9fec8" key="src"></menu>
60
+ <div resize="right"></div>
61
+ </sidenav>
62
+ <main
63
+ class="padding-top:15px padding:15px@lg@xl"
64
+ content_id="content"
65
+ id="cocreate-unique"
66
+ >
67
+ <div
68
+ class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px"
69
+ >
70
+ <div class="display:flex align-items:center">
71
+ <h2>CoCreate-unique</h2>
72
+ </div>
73
+ <div
74
+ class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white"
75
+ >
76
+ <div
77
+ class="display:flex align-items:center transition:0.3s padding-left:10px"
78
+ share-network="true"
79
+ share-text="Enter decription here"
80
+ share-title="testing im a title"
81
+ share-height="600"
82
+ share-width="700"
83
+ share-media="https://cdn.cocreate.app/docs/unique.png"
84
+ hover="display:block!important"
85
+ hover-selector=".social-networks"
86
+ >
87
+ <div class="display:none social-networks">
88
+ <a
89
+ class="margin-right:15px"
90
+ share-network="twitter"
91
+ title="Share on twitter"
92
+ ><i src="/assets/svg/twitter.svg"></i
93
+ ></a>
94
+ <a
95
+ class="margin-right:15px"
96
+ share-network="facebook"
97
+ title="Share on Facebook"
98
+ ><i src="/assets/svg/facebook.svg"></i
99
+ ></a>
100
+ <a
101
+ class="margin-right:15px"
102
+ share-network="instagram"
103
+ title="Share on instagram"
104
+ ><i src="/assets/svg/instagram.svg"></i
105
+ ></a>
113
106
  </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="unique-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="unique-install"
124
- class="border-bottom:1px_solid_lightgrey"
125
- scroll
126
- scroll-intersect="color:dodgerblue"
127
- scroll-selector="#unique-install-section">
128
- <span
129
- class="display:flex align-items:center width:fit-content"
130
- hover="display:block!important"
131
- hover-selector="[href='#unique-install']">
132
- <h2 class="padding:5px_0px">Install</h2>
133
- <a
134
- class="margin-left:10px display:none"
135
- href="#unique-install"
136
- ><i src="/assets/svg/link.svg"></i
137
- ></a>
138
- </span>
139
- </div>
140
- <pre><code class="language-bash">npm i @cocreate/unique</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">&lt;script&gt;https://cdn.cocreate.app/unique/latest/CoCreate-unique.min.js&lt;/script&gt;</code></pre>
107
+ <a
108
+ class="margin-right:15px"
109
+ share-network="share"
110
+ title="Share on share"
111
+ ><i src="/assets/svg/share-alt.svg"></i
112
+ ></a>
113
+ </div>
114
+ <a
115
+ href="https://github.com/CoCreate-app/CoCreate-unique"
116
+ target="_blank"
117
+ class="margin-right:15px"
118
+ ><i src="/assets/svg/github.svg"></i
119
+ ></a>
120
+ </div>
121
+ </div>
122
+ <h1
123
+ class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100"
124
+ >
125
+ A headless vinilla javascript micro component. Easy configuration using
126
+ HTML5 attributes or Javscript api.
127
+ </h1>
128
+ <div id="unique-section" class="display:flex flex-wrap:wrap">
129
+ <div
130
+ class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px"
131
+ >
132
+ <div
133
+ id="unique-install"
134
+ class="border-bottom:1px_solid_lightgrey"
135
+ scroll
136
+ scroll-intersect="color:dodgerblue"
137
+ scroll-selector="#unique-install-section"
138
+ >
139
+ <span
140
+ class="display:flex align-items:center width:fit-content"
141
+ hover="display:block!important"
142
+ hover-selector="[href='#unique-install']"
143
+ >
144
+ <h2 class="padding:5px_0px">Install</h2>
145
+ <a class="margin-left:10px display:none" href="#unique-install"
146
+ ><i src="/assets/svg/link.svg"></i
147
+ ></a>
148
+ </span>
149
+ </div>
150
+ <pre><code class="language-bash">npm i @cocreate/unique</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">&lt;script&gt;https://cdn.cocreate.app/unique/latest/CoCreate-unique.min.js&lt;/script&gt;</code></pre>
145
155
 
146
- <div
147
- id="unique-usage"
148
- class="margin-top:80px border-bottom:1px_solid_lightgrey"
149
- scroll
150
- scroll-intersect="color:dodgerblue"
151
- scroll-selector="#unique-usage-section">
152
- <span
153
- class="display:flex align-items:center width:fit-content"
154
- hover="display:block!important"
155
- hover-selector="[href='#unique-usage']">
156
- <h2 class="padding:5px_0px">Usage</h2>
157
- <a
158
- class="margin-left:10px display:none"
159
- href="#unique-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 unique usage
167
- </p>
156
+ <div
157
+ id="unique-usage"
158
+ class="margin-top:80px border-bottom:1px_solid_lightgrey"
159
+ scroll
160
+ scroll-intersect="color:dodgerblue"
161
+ scroll-selector="#unique-usage-section"
162
+ >
163
+ <span
164
+ class="display:flex align-items:center width:fit-content"
165
+ hover="display:block!important"
166
+ hover-selector="[href='#unique-usage']"
167
+ >
168
+ <h2 class="padding:5px_0px">Usage</h2>
169
+ <a class="margin-left:10px display:none" href="#unique-usage"
170
+ ><i src="/assets/svg/link.svg"></i
171
+ ></a>
172
+ </span>
173
+ </div>
174
+ <div class="">
175
+ <p class="padding:10px_0px line-height:1.5">This is unique usage</p>
168
176
 
169
- <div class="flex-grow:1 min-width:300px width:100%">
170
- <pre><code class="language-html">&lt;div&gt;&lt;/div&gt;</code></pre>
171
- </div>
172
- <p class="padding:10px_0px line-height:1.5">
173
- This is unique usage
174
- </p>
175
- <p class="padding:10px_0px line-height:1.5">
176
- This is unique usage
177
- </p>
178
- </div>
179
- <div
180
- id="unique-attributes"
181
- class="margin-top:80px border-bottom:1px_solid_lightgrey"
182
- scroll
183
- scroll-intersect="color:dodgerblue"
184
- scroll-selector="#unique-attributes-section">
185
- <span
186
- class="display:flex align-items:center width:fit-content"
187
- hover="display:block!important"
188
- hover-selector="[href='#unique-attributes']">
189
- <h2 class="padding:5px_0px">Attributes</h2>
190
- <a
191
- class="margin-left:10px display:none"
192
- href="#unique-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>unique</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>unique-attribute</p>
210
- </li>
211
- <li
212
- class="padding:15px_0px border-bottom:1px_solid_lightgrey">
213
- <h4>
214
- <span>unique</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>unique-attribute</p>
223
- </li>
224
- </ul>
225
- </div>
177
+ <div class="flex-grow:1 min-width:300px width:100%">
178
+ <pre><code class="language-html">&lt;div&gt;&lt;/div&gt;</code></pre>
179
+ </div>
180
+ <p class="padding:10px_0px line-height:1.5">This is unique usage</p>
181
+ <p class="padding:10px_0px line-height:1.5">This is unique usage</p>
182
+ </div>
183
+ <div
184
+ id="unique-attributes"
185
+ class="margin-top:80px border-bottom:1px_solid_lightgrey"
186
+ scroll
187
+ scroll-intersect="color:dodgerblue"
188
+ scroll-selector="#unique-attributes-section"
189
+ >
190
+ <span
191
+ class="display:flex align-items:center width:fit-content"
192
+ hover="display:block!important"
193
+ hover-selector="[href='#unique-attributes']"
194
+ >
195
+ <h2 class="padding:5px_0px">Attributes</h2>
196
+ <a class="margin-left:10px display:none" href="#unique-attributes"
197
+ ><i src="/assets/svg/link.svg"></i
198
+ ></a>
199
+ </span>
200
+ </div>
201
+ <ul class="list-style-type:none">
202
+ <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
203
+ <h4>
204
+ <span>unique</span>
205
+ <span class="cocreate-badge success">string</span>
206
+ <span class="cocreate-badge warning">optional</span>
207
+ </h4>
208
+ <p>unique-attribute</p>
209
+ </li>
210
+ <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
211
+ <h4>
212
+ <span>unique</span>
213
+ <span class="cocreate-badge success">string</span>
214
+ <span class="cocreate-badge warning">optional</span>
215
+ </h4>
216
+ <p>unique-attribute</p>
217
+ </li>
218
+ </ul>
219
+ </div>
226
220
 
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="unique-demo"
232
- class="border-bottom:1px_solid_lightgrey"
233
- scroll
234
- scroll-intersect="color:dodgerblue"
235
- scroll-selector="#unique-demo-section">
236
- <span
237
- class="display:flex align-items:center width:fit-content"
238
- hover="display:block!important"
239
- hover-selector="[href='#unique-demo']">
240
- <h2 class="padding:5px_0px">Demo</h2>
241
- <a
242
- class="margin-left:10px display:none"
243
- href="#unique-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-selector=".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>
221
+ <div
222
+ class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey"
223
+ >
224
+ <!-- SandBox -->
225
+ <div
226
+ id="unique-demo"
227
+ class="border-bottom:1px_solid_lightgrey"
228
+ scroll
229
+ scroll-intersect="color:dodgerblue"
230
+ scroll-selector="#unique-demo-section"
231
+ >
232
+ <span
233
+ class="display:flex align-items:center width:fit-content"
234
+ hover="display:block!important"
235
+ hover-selector="[href='#unique-demo']"
236
+ >
237
+ <h2 class="padding:5px_0px">Demo</h2>
238
+ <a class="margin-left:10px display:none" href="#unique-demo"
239
+ ><i src="/assets/svg/link.svg"></i
240
+ ></a>
241
+ </span>
242
+ </div>
243
+ <div class="position:sticky top:0 padding:15px_0px height:100vh">
244
+ <!-- SandBox -->
245
+ <div
246
+ class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
247
+ id="playground"
248
+ >
249
+ <div
250
+ id="demo-code"
251
+ resizable
252
+ class="position:relative height:50%"
253
+ >
254
+ <textarea
255
+ type="code"
256
+ lang="html"
257
+ array="demos"
258
+ object=""
259
+ key="demo"
260
+ save="false"
261
+ id="demo"
262
+ input-selector=".demopreview"
263
+ input-attribute="value"
264
+ input-events="input, onload"
265
+ class="height:100% width:100% outline:none border:none resize:none padding:5px"
266
+ ></textarea>
267
+ <div resize="bottom" class="background:lightgrey"></div>
268
+ </div>
274
269
 
275
- <div
276
- id="demo-preview"
277
- class="position:relative overflow:auto background-color:white">
278
- <div class="demopreview padding:20px"></div>
279
- </div>
270
+ <div
271
+ id="demo-preview"
272
+ class="position:relative overflow:auto background-color:white"
273
+ >
274
+ <div class="demopreview padding:20px"></div>
275
+ </div>
280
276
 
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-selector="#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-selector="#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-selector="#playground"></a>
325
- </div>
326
- </div>
327
- <!-- End SandBox -->
328
- </div>
329
- </div>
277
+ <div
278
+ class="font-size:20px position:absolute top:10px right:10px opacity:0.6"
279
+ >
280
+ <a
281
+ class="margin-right:10px"
282
+ id="eye"
283
+ show="#eye-slash"
284
+ hide="#eye, #demo-preview"
285
+ toggle="code-height"
286
+ toggle-selector="#demo-code"
287
+ ><i class="height:18px" src="/assets/svg/eye.svg"></i
288
+ ></a>
289
+ <a
290
+ class="margin-right:10px"
291
+ hidden
292
+ id="eye-slash"
293
+ show="#eye, #demo-preview"
294
+ hide="#eye-slash"
295
+ toggle="code-height"
296
+ toggle-selector="#demo-code"
297
+ ><i src="/assets/svg/eye-slash.svg"></i
298
+ ></a>
299
+ <a
300
+ class="margin-right:10px"
301
+ id="code"
302
+ show="#code-slash"
303
+ hide="#code, #demo-code"
304
+ ><i src="/assets/svg/code.svg"></i
305
+ ></a>
306
+ <a
307
+ class="margin-right:10px"
308
+ hidden
309
+ id="code-slash"
310
+ show="#code, #demo-code"
311
+ hide="#code-slash"
312
+ ><i class="height:18px" src="/assets/svg/code.svg"></i
313
+ ></a>
314
+ <a
315
+ class="margin-right:5px"
316
+ fullscreen
317
+ fullscreen-selector="#playground"
318
+ ></a>
319
+ </div>
330
320
  </div>
331
- <button
332
- href="https://github.com/CoCreate-app/CoCreate-unique/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 class="height:20px" src="../assets/svg/pencil-alt.svg"></i>
336
- </button>
337
- </main>
321
+ <!-- End SandBox -->
322
+ </div>
323
+ </div>
324
+ </div>
325
+ <button
326
+ href="https://github.com/CoCreate-app/CoCreate-unique/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
327
+ target="_blank"
328
+ 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)"
329
+ >
330
+ <i src="../assets/svg/pencil-alt.svg"></i>
331
+ </button>
332
+ </main>
338
333
 
339
- <script src="https://CoCreate.app/dist/CoCreate.js"></script>
340
- </body>
334
+ <script src="https://CoCreate.app/dist/CoCreate.js"></script>
335
+ </body>
341
336
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/unique",
3
- "version": "1.19.7",
3
+ "version": "1.20.0",
4
4
  "description": "A simple unique component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "unique",
@@ -0,0 +1,16 @@
1
+ module.exports = {
2
+ tabWidth: 4,
3
+ semi: true,
4
+ trailingComma: "none",
5
+ bracketSameLine: true,
6
+ useTabs: true,
7
+ overrides: [
8
+ {
9
+ files: ["*.json", "*.yml", "*.yaml"],
10
+ options: {
11
+ tabWidth: 2,
12
+ useTabs: false
13
+ },
14
+ }
15
+ ],
16
+ };
package/src/client.js CHANGED
@@ -81,7 +81,7 @@ async function isUnique(element) {
81
81
  observer.init({
82
82
  name: 'CoCreateUnique',
83
83
  observe: ['addedNodes'],
84
- target: '[unique]',
84
+ selector: '[unique]',
85
85
  callback: mutation =>
86
86
  init(mutation.target)
87
87
  });