@cocreate/state 1.22.1 → 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 CHANGED
@@ -1,3 +1,25 @@
1
+ # [1.23.0](https://github.com/CoCreate-app/CoCreate-state/compare/v1.22.2...v1.23.0) (2024-11-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * observer taget has been renamed to selector ([4dcda48](https://github.com/CoCreate-app/CoCreate-state/commit/4dcda482405c2ec3cf39cca80f419b1715b3abef))
7
+ * pretier.config.js and file formating ([b1a9249](https://github.com/CoCreate-app/CoCreate-state/commit/b1a9249d198fbb90e0259771ea76489b950ab7e7))
8
+
9
+
10
+ ### Features
11
+
12
+ * add prettier.config.js and format files ([c171ae1](https://github.com/CoCreate-app/CoCreate-state/commit/c171ae1b706a187ea6a728f766d85bf159df7819))
13
+ * add prettier.config.js and format files ([db433e5](https://github.com/CoCreate-app/CoCreate-state/commit/db433e5982a558775ccb74a4b111cfbe2f429875))
14
+
15
+ ## [1.22.2](https://github.com/CoCreate-app/CoCreate-state/compare/v1.22.1...v1.22.2) (2024-06-12)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * bump cocreate dependencies ([789df84](https://github.com/CoCreate-app/CoCreate-state/commit/789df844610cffa93ddb889d52a3560b153fb1bb))
21
+ * svg icon class ([bf92741](https://github.com/CoCreate-app/CoCreate-state/commit/bf92741f5fda1674a67ae248cadf822657493853))
22
+
1
23
  ## [1.22.1](https://github.com/CoCreate-app/CoCreate-state/compare/v1.22.0...v1.22.1) (2024-04-29)
2
24
 
3
25
 
package/docs/index.html CHANGED
@@ -1,361 +1,334 @@
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-state 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="Data attributes which can be used for components in CoCreate framework combined as a group of attributes that dynamically change attributes &amp; fetch custom data" />
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/state.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-state 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="Data attributes which can be used for components in CoCreate framework combined as a group of attributes that dynamically change attributes &amp; fetch custom data"
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/state.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-state">
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-state</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="Data attributes which can be used for components in CoCreate framework combined as a group of attributes that dynamically change attributes &amp; fetch custom data"
73
- share-title="CoCreate-state"
74
- share-height="600"
75
- share-width="700"
76
- share-media="https://cdn.cocreate.app/docs/state.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
85
- class="height:20px fill:#505050"
86
- src="/assets/svg/twitter.svg"></i
87
- ></a>
88
- <a
89
- class="margin-right:15px"
90
- share-network="facebook"
91
- title="Share on Facebook"
92
- ><i
93
- class="height:20px fill:#505050"
94
- src="/assets/svg/facebook.svg"></i
95
- ></a>
96
- <a
97
- class="margin-right:15px"
98
- share-network="instagram"
99
- title="Share on instagram"
100
- ><i
101
- class="height:20px fill:#505050"
102
- src="/assets/svg/instagram.svg"></i
103
- ></a>
104
- </div>
105
- <a
106
- class="margin-right:15px"
107
- share-network="share"
108
- title="Share on share"
109
- ><i
110
- class="height:20px fill:#505050"
111
- src="/assets/svg/share-alt.svg"></i
112
- ></a>
113
- </div>
114
- <a
115
- href="https://github.com/CoCreate-app/CoCreate-state"
116
- target="_blank"
117
- class="margin-right:15px"
118
- ><i
119
- class="height:20px fill:#505050"
120
- src="/assets/svg/github.svg"></i
121
- ></a>
122
- </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-state"
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-state</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="Data attributes which can be used for components in CoCreate framework combined as a group of attributes that dynamically change attributes &amp; fetch custom data"
80
+ share-title="CoCreate-state"
81
+ share-height="600"
82
+ share-width="700"
83
+ share-media="https://cdn.cocreate.app/docs/state.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>
123
106
  </div>
124
- <h1
125
- class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">
126
- Data attributes which can be used for components in CoCreate
127
- framework combined as a group of attributes that dynamically
128
- change attributes &amp; fetch custom data.
129
- </h1>
130
- <div id="state-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
- <div
134
- id="state-install"
135
- class="border-bottom:1px_solid_lightgrey"
136
- scroll
137
- scroll-intersect="color:dodgerblue"
138
- scroll-selector="#state-install-section">
139
- <span
140
- class="display:flex align-items:center width:fit-content"
141
- hover="display:block!important"
142
- hover-selector="[href='#state-install']">
143
- <h2 class="padding:5px_0px">Install</h2>
144
- <a
145
- class="margin-left:10px display:none"
146
- href="#state-install"
147
- ><i
148
- class="height:20px fill:#505050"
149
- src="/assets/svg/link.svg"></i
150
- ></a>
151
- </span>
152
- </div>
153
- <pre><code class="language-bash">npm i @cocreate/state</code></pre>
154
- <p class="padding:10px_0px line-height:1.5">
155
- Or you can use cdn link:
156
- </p>
157
- <pre><code class="language-html">&lt;script&gt;https://cdn.cocreate.app/state/latest/CoCreate-state.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-state"
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
+ Data attributes which can be used for components in CoCreate framework
126
+ combined as a group of attributes that dynamically change attributes
127
+ &amp; fetch custom data.
128
+ </h1>
129
+ <div id="state-section" class="display:flex flex-wrap:wrap">
130
+ <div
131
+ class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px"
132
+ >
133
+ <div
134
+ id="state-install"
135
+ class="border-bottom:1px_solid_lightgrey"
136
+ scroll
137
+ scroll-intersect="color:dodgerblue"
138
+ scroll-selector="#state-install-section"
139
+ >
140
+ <span
141
+ class="display:flex align-items:center width:fit-content"
142
+ hover="display:block!important"
143
+ hover-selector="[href='#state-install']"
144
+ >
145
+ <h2 class="padding:5px_0px">Install</h2>
146
+ <a class="margin-left:10px display:none" href="#state-install"
147
+ ><i src="/assets/svg/link.svg"></i
148
+ ></a>
149
+ </span>
150
+ </div>
151
+ <pre><code class="language-bash">npm i @cocreate/state</code></pre>
152
+ <p class="padding:10px_0px line-height:1.5">
153
+ Or you can use cdn link:
154
+ </p>
155
+ <pre><code class="language-html">&lt;script&gt;https://cdn.cocreate.app/state/latest/CoCreate-state.min.js&lt;/script&gt;</code></pre>
158
156
 
159
- <div
160
- id="state-usage"
161
- class="margin-top:80px border-bottom:1px_solid_lightgrey"
162
- scroll
163
- scroll-intersect="color:dodgerblue"
164
- scroll-selector="#state-usage-section">
165
- <span
166
- class="display:flex align-items:center width:fit-content"
167
- hover="display:block!important"
168
- hover-selector="[href='#state-usage']">
169
- <h2 class="padding:5px_0px">Usage</h2>
170
- <a
171
- class="margin-left:10px display:none"
172
- href="#state-usage"
173
- ><i
174
- class="height:20px fill:#505050"
175
- src="/assets/svg/link.svg"></i
176
- ></a>
177
- </span>
178
- </div>
179
- <div class="">
180
- <p class="padding:10px_0px line-height:1.5">
181
- This is state usage
182
- </p>
157
+ <div
158
+ id="state-usage"
159
+ class="margin-top:80px border-bottom:1px_solid_lightgrey"
160
+ scroll
161
+ scroll-intersect="color:dodgerblue"
162
+ scroll-selector="#state-usage-section"
163
+ >
164
+ <span
165
+ class="display:flex align-items:center width:fit-content"
166
+ hover="display:block!important"
167
+ hover-selector="[href='#state-usage']"
168
+ >
169
+ <h2 class="padding:5px_0px">Usage</h2>
170
+ <a class="margin-left:10px display:none" href="#state-usage"
171
+ ><i src="/assets/svg/link.svg"></i
172
+ ></a>
173
+ </span>
174
+ </div>
175
+ <div class="">
176
+ <p class="padding:10px_0px line-height:1.5">This is state usage</p>
183
177
 
184
- <div class="flex-grow:1 min-width:300px width:100%">
185
- <pre><code class="language-html">&lt;div&gt;&lt;/div&gt;</code></pre>
186
- </div>
187
- <p class="padding:10px_0px line-height:1.5">
188
- This is state usage
189
- </p>
190
- <p class="padding:10px_0px line-height:1.5">
191
- This is state usage
192
- </p>
193
- </div>
194
- <div
195
- id="state-attributes"
196
- class="margin-top:80px border-bottom:1px_solid_lightgrey"
197
- scroll
198
- scroll-intersect="color:dodgerblue"
199
- scroll-selector="#state-attributes-section">
200
- <span
201
- class="display:flex align-items:center width:fit-content"
202
- hover="display:block!important"
203
- hover-selector="[href='#state-attributes']">
204
- <h2 class="padding:5px_0px">Attributes</h2>
205
- <a
206
- class="margin-left:10px display:none"
207
- href="#state-attributes"
208
- ><i
209
- class="height:20px fill:#505050"
210
- src="/assets/svg/link.svg"></i
211
- ></a>
212
- </span>
213
- </div>
214
- <ul class="list-style-type:none">
215
- <li
216
- class="padding:15px_0px border-bottom:1px_solid_lightgrey">
217
- <h4>
218
- <span>state</span>
219
- <span class="cocreate-badge success"
220
- >string</span
221
- >
222
- <span class="cocreate-badge warning"
223
- >optional</span
224
- >
225
- </h4>
226
- <p>state-attribute</p>
227
- </li>
228
- <li
229
- class="padding:15px_0px border-bottom:1px_solid_lightgrey">
230
- <h4>
231
- <span>state</span>
232
- <span class="cocreate-badge success"
233
- >string</span
234
- >
235
- <span class="cocreate-badge warning"
236
- >optional</span
237
- >
238
- </h4>
239
- <p>state-attribute</p>
240
- </li>
241
- </ul>
242
- </div>
178
+ <div class="flex-grow:1 min-width:300px width:100%">
179
+ <pre><code class="language-html">&lt;div&gt;&lt;/div&gt;</code></pre>
180
+ </div>
181
+ <p class="padding:10px_0px line-height:1.5">This is state usage</p>
182
+ <p class="padding:10px_0px line-height:1.5">This is state usage</p>
183
+ </div>
184
+ <div
185
+ id="state-attributes"
186
+ class="margin-top:80px border-bottom:1px_solid_lightgrey"
187
+ scroll
188
+ scroll-intersect="color:dodgerblue"
189
+ scroll-selector="#state-attributes-section"
190
+ >
191
+ <span
192
+ class="display:flex align-items:center width:fit-content"
193
+ hover="display:block!important"
194
+ hover-selector="[href='#state-attributes']"
195
+ >
196
+ <h2 class="padding:5px_0px">Attributes</h2>
197
+ <a class="margin-left:10px display:none" href="#state-attributes"
198
+ ><i src="/assets/svg/link.svg"></i
199
+ ></a>
200
+ </span>
201
+ </div>
202
+ <ul class="list-style-type:none">
203
+ <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
204
+ <h4>
205
+ <span>state</span>
206
+ <span class="cocreate-badge success">string</span>
207
+ <span class="cocreate-badge warning">optional</span>
208
+ </h4>
209
+ <p>state-attribute</p>
210
+ </li>
211
+ <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
212
+ <h4>
213
+ <span>state</span>
214
+ <span class="cocreate-badge success">string</span>
215
+ <span class="cocreate-badge warning">optional</span>
216
+ </h4>
217
+ <p>state-attribute</p>
218
+ </li>
219
+ </ul>
220
+ </div>
243
221
 
244
- <div
245
- class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey">
246
- <!-- SandBox -->
247
- <div
248
- id="state-demo"
249
- class="border-bottom:1px_solid_lightgrey"
250
- scroll
251
- scroll-intersect="color:dodgerblue"
252
- scroll-selector="#state-demo-section">
253
- <span
254
- class="display:flex align-items:center width:fit-content"
255
- hover="display:block!important"
256
- hover-selector="[href='#state-demo']">
257
- <h2 class="padding:5px_0px">Demo</h2>
258
- <a
259
- class="margin-left:10px display:none"
260
- href="#state-demo"
261
- ><i
262
- class="height:20px fill:#505050"
263
- src="/assets/svg/link.svg"></i
264
- ></a>
265
- </span>
266
- </div>
267
- <div
268
- class="position:sticky top:0 padding:15px_0px height:100vh">
269
- <!-- SandBox -->
270
- <div
271
- class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
272
- id="playground">
273
- <div
274
- id="demo-code"
275
- resizable
276
- class="position:relative height:50%">
277
- <textarea
278
- type="code"
279
- lang="html"
280
- array="demos"
281
- object=""
282
- key="demo"
283
- save="false"
284
- id="demo"
285
- class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
286
- <div
287
- resize="bottom"
288
- class="background:lightgrey"></div>
289
- </div>
222
+ <div
223
+ class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey"
224
+ >
225
+ <!-- SandBox -->
226
+ <div
227
+ id="state-demo"
228
+ class="border-bottom:1px_solid_lightgrey"
229
+ scroll
230
+ scroll-intersect="color:dodgerblue"
231
+ scroll-selector="#state-demo-section"
232
+ >
233
+ <span
234
+ class="display:flex align-items:center width:fit-content"
235
+ hover="display:block!important"
236
+ hover-selector="[href='#state-demo']"
237
+ >
238
+ <h2 class="padding:5px_0px">Demo</h2>
239
+ <a class="margin-left:10px display:none" href="#state-demo"
240
+ ><i src="/assets/svg/link.svg"></i
241
+ ></a>
242
+ </span>
243
+ </div>
244
+ <div class="position:sticky top:0 padding:15px_0px height:100vh">
245
+ <!-- SandBox -->
246
+ <div
247
+ class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
248
+ id="playground"
249
+ >
250
+ <div
251
+ id="demo-code"
252
+ resizable
253
+ class="position:relative height:50%"
254
+ >
255
+ <textarea
256
+ type="code"
257
+ lang="html"
258
+ array="demos"
259
+ object=""
260
+ key="demo"
261
+ save="false"
262
+ id="demo"
263
+ class="height:100% width:100% outline:none border:none resize:none padding:5px"
264
+ ></textarea>
265
+ <div resize="bottom" class="background:lightgrey"></div>
266
+ </div>
290
267
 
291
- <div
292
- id="demo-preview"
293
- class="position:relative overflow:auto background-color:white">
294
- <div class="demopreview padding:20px"></div>
295
- </div>
268
+ <div
269
+ id="demo-preview"
270
+ class="position:relative overflow:auto background-color:white"
271
+ >
272
+ <div class="demopreview padding:20px"></div>
273
+ </div>
296
274
 
297
- <div
298
- class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
299
- <a
300
- class="margin-right:10px"
301
- id="eye"
302
- show="#eye-slash"
303
- hide="#eye, #demo-preview"
304
- toggle="code-height"
305
- toggle-selector="#demo-code"
306
- ><i
307
- class="height:18px fill:#505050"
308
- src="/assets/svg/eye.svg"></i
309
- ></a>
310
- <a
311
- class="margin-right:10px"
312
- hidden
313
- id="eye-slash"
314
- show="#eye, #demo-preview"
315
- hide="#eye-slash"
316
- toggle="code-height"
317
- toggle-selector="#demo-code"
318
- ><i
319
- class="height:20px fill:#505050"
320
- src="/assets/svg/eye-slash.svg"></i
321
- ></a>
322
- <a
323
- class="margin-right:10px"
324
- id="code"
325
- show="#code-slash"
326
- hide="#code, #demo-code"
327
- ><i
328
- class="height:20px fill:#505050"
329
- src="/assets/svg/code.svg"></i
330
- ></a>
331
- <a
332
- class="margin-right:10px"
333
- hidden
334
- id="code-slash"
335
- show="#code, #demo-code"
336
- hide="#code-slash"
337
- ><i
338
- class="display:flex height:18px fill:#505050"
339
- src="/assets/svg/code.svg"></i
340
- ></a>
341
- <a
342
- class="margin-right:5px"
343
- fullscreen
344
- fullscreen-selector="#playground"></a>
345
- </div>
346
- </div>
347
- <!-- End SandBox -->
348
- </div>
349
- </div>
275
+ <div
276
+ class="font-size:20px position:absolute top:10px right:10px opacity:0.6"
277
+ >
278
+ <a
279
+ class="margin-right:10px"
280
+ id="eye"
281
+ show="#eye-slash"
282
+ hide="#eye, #demo-preview"
283
+ toggle="code-height"
284
+ toggle-selector="#demo-code"
285
+ ><i class="height:18px" src="/assets/svg/eye.svg"></i
286
+ ></a>
287
+ <a
288
+ class="margin-right:10px"
289
+ hidden
290
+ id="eye-slash"
291
+ show="#eye, #demo-preview"
292
+ hide="#eye-slash"
293
+ toggle="code-height"
294
+ toggle-selector="#demo-code"
295
+ ><i src="/assets/svg/eye-slash.svg"></i
296
+ ></a>
297
+ <a
298
+ class="margin-right:10px"
299
+ id="code"
300
+ show="#code-slash"
301
+ hide="#code, #demo-code"
302
+ ><i src="/assets/svg/code.svg"></i
303
+ ></a>
304
+ <a
305
+ class="margin-right:10px"
306
+ hidden
307
+ id="code-slash"
308
+ show="#code, #demo-code"
309
+ hide="#code-slash"
310
+ ><i class="height:18px" src="/assets/svg/code.svg"></i
311
+ ></a>
312
+ <a
313
+ class="margin-right:5px"
314
+ fullscreen
315
+ fullscreen-selector="#playground"
316
+ ></a>
317
+ </div>
350
318
  </div>
351
- <button
352
- href="https://github.com/CoCreate-app/CoCreate-state/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
353
- target="_blank"
354
- 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)">
355
- <i class="height:20px" src="../assets/svg/pencil-alt.svg"></i>
356
- </button>
357
- </main>
319
+ <!-- End SandBox -->
320
+ </div>
321
+ </div>
322
+ </div>
323
+ <button
324
+ href="https://github.com/CoCreate-app/CoCreate-state/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
325
+ target="_blank"
326
+ 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)"
327
+ >
328
+ <i src="../assets/svg/pencil-alt.svg"></i>
329
+ </button>
330
+ </main>
358
331
 
359
- <script src="https://CoCreate.app/dist/CoCreate.js"></script>
360
- </body>
332
+ <script src="https://CoCreate.app/dist/CoCreate.js"></script>
333
+ </body>
361
334
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/state",
3
- "version": "1.22.1",
3
+ "version": "1.23.0",
4
4
  "description": "Data attributes which can be used for components in CoCreate framework combined as a group of attributes that dynamically change attributes & fetch custom data.",
5
5
  "keywords": [
6
6
  "state",
@@ -58,11 +58,11 @@
58
58
  "webpack-log": "^3.0.1"
59
59
  },
60
60
  "dependencies": {
61
- "@cocreate/actions": "^1.18.1",
62
- "@cocreate/crud-client": "^1.33.8",
63
- "@cocreate/element-prototype": "^1.22.2",
64
- "@cocreate/local-storage": "^1.14.3",
65
- "@cocreate/observer": "^1.16.0",
66
- "@cocreate/uuid": "^1.11.1"
61
+ "@cocreate/actions": "^1.18.2",
62
+ "@cocreate/crud-client": "^1.33.9",
63
+ "@cocreate/element-prototype": "^1.23.0",
64
+ "@cocreate/local-storage": "^1.15.0",
65
+ "@cocreate/observer": "^1.16.1",
66
+ "@cocreate/uuid": "^1.11.2"
67
67
  }
68
68
  }
@@ -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
@@ -188,7 +188,7 @@ window.addEventListener('popstate', function (event) {
188
188
  observer.init({
189
189
  name: 'CoCreateState',
190
190
  observe: ['addedNodes'],
191
- target: '[state_id]',
191
+ selector: '[state_id]',
192
192
  callback: function (mutation) {
193
193
  initElement(mutation.target);
194
194
  }