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