@cocreate/crdt 1.18.12 → 1.18.13

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
@@ -1,273 +1,273 @@
1
- <!DOCTYPE html>
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-crdt 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
-
21
- <!-- CoCreate CSS -->
22
- <link
23
- rel="stylesheet"
24
- href="https://cdn.cocreate.app/latest/CoCreate.min.css"
25
- type="text/css" />
26
-
27
- <link rel="manifest" href="/manifest.webmanifest" />
28
- </head>
29
-
30
- <body>
31
- <nav
32
- class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px"
33
- content_id="content"
34
- scroll="sticky-nav,hide-nav"
35
- scroll-up="10"
36
- scroll-down="10"
37
- collection="files"
38
- document_id="60395ef42b3ac232657040fd"
39
- name="src"></nav>
40
- <sidenav
41
- id="menuL"
42
- class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
43
- resizable
44
- resize-target="[content_id='content']"
45
- resize-property="margin-left"
46
- resize-value="width">
47
- <menu
48
- collection="files"
49
- document_id="603717b07de7fb350ae9fec8"
50
- name="src"></menu>
51
- <div resize="right"></div>
52
- </sidenav>
53
- <main
54
- class="padding-top:15px padding:15px@lg@xl"
55
- content_id="content"
56
- id="cocreate-crdt">
57
- <div
58
- class="display:flex flex-wrap:wrap justify-content:space-between margin:10px">
59
- <div class="display:flex align-items:center">
60
- <h2>CoCreate-crdt</h2>
61
- </div>
62
- <div
63
- class="display:flex align-items:center font-size:20px"
64
- share-height="600"
65
- share-width="500"
66
- share-media="https://via.placeholder.com/300/09f/fff.png">
67
- <a
68
- href="https://github.com/CoCreate-app/CoCreate-crdt"
69
- target="_blank"
70
- class="margin-right:15px"
71
- ><i
72
- class="height:20px fill:#505050"
73
- src="/assets/svg/github.svg"></i
74
- ></a>
75
- <a
76
- class="margin-right:15px share"
77
- share-network="twitter"
78
- title="Share on twitter"
79
- ><i
80
- class="height:20px fill:#505050"
81
- src="/assets/svg/twitter.svg"></i
82
- ></a>
83
- <a
84
- class="margin-right:15px share"
85
- share-network="facebook"
86
- title="Share on Facebook"
87
- ><i
88
- class="height:20px fill:#505050"
89
- src="/assets/svg/facebook.svg"></i
90
- ></a>
91
- <a
92
- class="margin-right:15px share"
93
- share-network="instagram"
94
- title="Share on instagram"
95
- ><i
96
- class="height:20px fill:#505050"
97
- src="/assets/svg/instagram.svg"></i
98
- ></a>
99
- <a
100
- class="margin-right:15px share"
101
- share-network="share"
102
- title="Share on share"
103
- ><i
104
- class="height:20px fill:#505050"
105
- src="/assets/svg/share-alt.svg"></i
106
- ></a>
107
- </div>
108
- </div>
109
- <p class="max-width:500px margin:20px_10px">
110
- A headless vinilla javascript micro component. Easy
111
- configuration using HTML5 attributes or Javscript api.
112
- </p>
113
- <div id="crdt-section" class="display:flex flex-wrap:wrap">
114
- <div class="flex-grow:1 width:300px padding:20px_10px">
115
- <h2
116
- class="border-bottom:1px_solid_lightgrey padding:5px_0px">
117
- Install
118
- </h2>
119
- <pre
120
- class="margin-top:15px"><code class="language-javascript">npm install cocreate-crdt</code></pre>
121
- <p class="padding:10px_0px">Or you can use cdn link:</p>
122
- <pre><code class="language-javascript">https://cdn.cocreate.app/js/CoCreate-crdt.min.js</code></pre>
123
-
124
- <h2
125
- class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
126
- Usage
127
- </h2>
128
- <p class="padding:10px_0px">crdt usage content</p>
129
- <pre><code class="language-html">&lt;div&gt;&lt;/div&gt;</code></pre>
130
-
131
- <h2
132
- class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
133
- Reference
134
- </h2>
135
- <p class="padding:10px_0px">
136
- This is crdt reference content
137
- </p>
138
- <pre><code class="language-javascript">&lt;div&gt;&lt;/div&gt;</code></pre>
139
- <p class="padding:10px_0px">
140
- This is crdt reference content
141
- </p>
142
-
143
- <h2
144
- class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
145
- Attributes
146
- </h2>
147
- <ul class="list-style-type:none">
148
- <li
149
- class="padding:15px_0px border-bottom:1px_solid_lightgrey">
150
- <h4>
151
- <span>crdt</span>
152
- <span class="cocreate-badge success"
153
- >string</span
154
- >
155
- <span class="cocreate-badge warning"
156
- >optional</span
157
- >
158
- </h4>
159
- <p>crdt-attribute</p>
160
- </li>
161
- <li
162
- class="padding:15px_0px border-bottom:1px_solid_lightgrey">
163
- <h4>
164
- <span>crdt</span>
165
- <span class="cocreate-badge success"
166
- >string</span
167
- >
168
- <span class="cocreate-badge warning"
169
- >optional</span
170
- >
171
- </h4>
172
- <p>crdt-attribute</p>
173
- </li>
174
- </ul>
175
- </div>
176
-
177
- <div
178
- class="flex-grow:1 width:300px padding:0px_10px margin:20px_0px border-bottom:1px_solid_lightgrey">
179
- <!-- SandBox -->
180
- <h2
181
- class="border-bottom:1px_solid_lightgrey padding:5px_0px">
182
- Demo
183
- </h2>
184
- <div
185
- class="position:sticky top:0 padding:10px_0px height:100vh">
186
- <!-- SandBox -->
187
- <div
188
- class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
189
- id="playground">
190
- <div
191
- id="demo-code"
192
- resizable
193
- class="position:relative height:50%">
194
- <textarea
195
- type="code"
196
- lang="html"
197
- collection="demos"
198
- document_id=""
199
- name="demo"
200
- save="false"
201
- id="demo"
202
- class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
203
- <div
204
- resize="bottom"
205
- class="background:lightgrey"></div>
206
- </div>
207
-
208
- <div
209
- id="demo-preview"
210
- class="position:relative overflow:auto background-color:white">
211
- <div class="demopreview padding:20px"></div>
212
- </div>
213
-
214
- <div
215
- class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
216
- <a
217
- class="margin-right:10px"
218
- id="eye"
219
- show="#eye-slash"
220
- hide="#eye, #demo-preview"
221
- toggle="code-height"
222
- toggle-target="#demo-code"
223
- ><i
224
- class="height:18px fill:#505050"
225
- src="/assets/svg/eye.svg"></i
226
- ></a>
227
- <a
228
- class="margin-right:10px"
229
- hidden
230
- id="eye-slash"
231
- show="#eye, #demo-preview"
232
- hide="#eye-slash"
233
- toggle="code-height"
234
- toggle-target="#demo-code"
235
- ><i
236
- class="height:20px fill:#505050"
237
- src="/assets/svg/eye-slash.svg"></i
238
- ></a>
239
- <a
240
- class="margin-right:10px"
241
- id="code"
242
- show="#code-slash"
243
- hide="#code, #demo-code"
244
- ><i
245
- class="height:20px fill:#505050"
246
- src="/assets/svg/code.svg"></i
247
- ></a>
248
- <a
249
- class="margin-right:10px"
250
- hidden
251
- id="code-slash"
252
- show="#code, #demo-code"
253
- hide="#code-slash"
254
- ><i
255
- class="display:flex height:18px fill:#505050"
256
- src="/assets/svg/code.svg"></i
257
- ></a>
258
- <a
259
- class="margin-right:5px"
260
- fullscreen
261
- fullscreen-target="#playground"></a>
262
- </div>
263
- </div>
264
- <!-- End SandBox -->
265
- </div>
266
- </div>
267
- </div>
268
- </main>
269
-
270
- <script src="/apikey.js"></script>
271
- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
272
- </body>
273
- </html>
1
+ <!DOCTYPE html>
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-crdt 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
+
21
+ <!-- CoCreate CSS -->
22
+ <link
23
+ rel="stylesheet"
24
+ href="https://cdn.cocreate.app/latest/CoCreate.min.css"
25
+ type="text/css" />
26
+
27
+ <link rel="manifest" href="/manifest.webmanifest" />
28
+ </head>
29
+
30
+ <body>
31
+ <nav
32
+ class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px"
33
+ content_id="content"
34
+ scroll="sticky-nav,hide-nav"
35
+ scroll-up="10"
36
+ scroll-down="10"
37
+ collection="files"
38
+ document_id="60395ef42b3ac232657040fd"
39
+ name="src"></nav>
40
+ <sidenav
41
+ id="menuL"
42
+ class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
43
+ resizable
44
+ resize-target="[content_id='content']"
45
+ resize-property="margin-left"
46
+ resize-value="width">
47
+ <menu
48
+ collection="files"
49
+ document_id="603717b07de7fb350ae9fec8"
50
+ name="src"></menu>
51
+ <div resize="right"></div>
52
+ </sidenav>
53
+ <main
54
+ class="padding-top:15px padding:15px@lg@xl"
55
+ content_id="content"
56
+ id="cocreate-crdt">
57
+ <div
58
+ class="display:flex flex-wrap:wrap justify-content:space-between margin:10px">
59
+ <div class="display:flex align-items:center">
60
+ <h2>CoCreate-crdt</h2>
61
+ </div>
62
+ <div
63
+ class="display:flex align-items:center font-size:20px"
64
+ share-height="600"
65
+ share-width="500"
66
+ share-media="https://via.placeholder.com/300/09f/fff.png">
67
+ <a
68
+ href="https://github.com/CoCreate-app/CoCreate-crdt"
69
+ target="_blank"
70
+ class="margin-right:15px"
71
+ ><i
72
+ class="height:20px fill:#505050"
73
+ src="/assets/svg/github.svg"></i
74
+ ></a>
75
+ <a
76
+ class="margin-right:15px share"
77
+ share-network="twitter"
78
+ title="Share on twitter"
79
+ ><i
80
+ class="height:20px fill:#505050"
81
+ src="/assets/svg/twitter.svg"></i
82
+ ></a>
83
+ <a
84
+ class="margin-right:15px share"
85
+ share-network="facebook"
86
+ title="Share on Facebook"
87
+ ><i
88
+ class="height:20px fill:#505050"
89
+ src="/assets/svg/facebook.svg"></i
90
+ ></a>
91
+ <a
92
+ class="margin-right:15px share"
93
+ share-network="instagram"
94
+ title="Share on instagram"
95
+ ><i
96
+ class="height:20px fill:#505050"
97
+ src="/assets/svg/instagram.svg"></i
98
+ ></a>
99
+ <a
100
+ class="margin-right:15px share"
101
+ share-network="share"
102
+ title="Share on share"
103
+ ><i
104
+ class="height:20px fill:#505050"
105
+ src="/assets/svg/share-alt.svg"></i
106
+ ></a>
107
+ </div>
108
+ </div>
109
+ <p class="max-width:500px margin:20px_10px">
110
+ A headless vinilla javascript micro component. Easy
111
+ configuration using HTML5 attributes or Javscript api.
112
+ </p>
113
+ <div id="crdt-section" class="display:flex flex-wrap:wrap">
114
+ <div class="flex-grow:1 width:300px padding:20px_10px">
115
+ <h2
116
+ class="border-bottom:1px_solid_lightgrey padding:5px_0px">
117
+ Install
118
+ </h2>
119
+ <pre
120
+ class="margin-top:15px"><code class="language-javascript">npm install cocreate-crdt</code></pre>
121
+ <p class="padding:10px_0px">Or you can use cdn link:</p>
122
+ <pre><code class="language-javascript">https://cdn.cocreate.app/js/CoCreate-crdt.min.js</code></pre>
123
+
124
+ <h2
125
+ class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
126
+ Usage
127
+ </h2>
128
+ <p class="padding:10px_0px">crdt usage content</p>
129
+ <pre><code class="language-html">&lt;div&gt;&lt;/div&gt;</code></pre>
130
+
131
+ <h2
132
+ class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
133
+ Reference
134
+ </h2>
135
+ <p class="padding:10px_0px">
136
+ This is crdt reference content
137
+ </p>
138
+ <pre><code class="language-javascript">&lt;div&gt;&lt;/div&gt;</code></pre>
139
+ <p class="padding:10px_0px">
140
+ This is crdt reference content
141
+ </p>
142
+
143
+ <h2
144
+ class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
145
+ Attributes
146
+ </h2>
147
+ <ul class="list-style-type:none">
148
+ <li
149
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
150
+ <h4>
151
+ <span>crdt</span>
152
+ <span class="cocreate-badge success"
153
+ >string</span
154
+ >
155
+ <span class="cocreate-badge warning"
156
+ >optional</span
157
+ >
158
+ </h4>
159
+ <p>crdt-attribute</p>
160
+ </li>
161
+ <li
162
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
163
+ <h4>
164
+ <span>crdt</span>
165
+ <span class="cocreate-badge success"
166
+ >string</span
167
+ >
168
+ <span class="cocreate-badge warning"
169
+ >optional</span
170
+ >
171
+ </h4>
172
+ <p>crdt-attribute</p>
173
+ </li>
174
+ </ul>
175
+ </div>
176
+
177
+ <div
178
+ class="flex-grow:1 width:300px padding:0px_10px margin:20px_0px border-bottom:1px_solid_lightgrey">
179
+ <!-- SandBox -->
180
+ <h2
181
+ class="border-bottom:1px_solid_lightgrey padding:5px_0px">
182
+ Demo
183
+ </h2>
184
+ <div
185
+ class="position:sticky top:0 padding:10px_0px height:100vh">
186
+ <!-- SandBox -->
187
+ <div
188
+ class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
189
+ id="playground">
190
+ <div
191
+ id="demo-code"
192
+ resizable
193
+ class="position:relative height:50%">
194
+ <textarea
195
+ type="code"
196
+ lang="html"
197
+ collection="demos"
198
+ document_id=""
199
+ name="demo"
200
+ save="false"
201
+ id="demo"
202
+ class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
203
+ <div
204
+ resize="bottom"
205
+ class="background:lightgrey"></div>
206
+ </div>
207
+
208
+ <div
209
+ id="demo-preview"
210
+ class="position:relative overflow:auto background-color:white">
211
+ <div class="demopreview padding:20px"></div>
212
+ </div>
213
+
214
+ <div
215
+ class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
216
+ <a
217
+ class="margin-right:10px"
218
+ id="eye"
219
+ show="#eye-slash"
220
+ hide="#eye, #demo-preview"
221
+ toggle="code-height"
222
+ toggle-target="#demo-code"
223
+ ><i
224
+ class="height:18px fill:#505050"
225
+ src="/assets/svg/eye.svg"></i
226
+ ></a>
227
+ <a
228
+ class="margin-right:10px"
229
+ hidden
230
+ id="eye-slash"
231
+ show="#eye, #demo-preview"
232
+ hide="#eye-slash"
233
+ toggle="code-height"
234
+ toggle-target="#demo-code"
235
+ ><i
236
+ class="height:20px fill:#505050"
237
+ src="/assets/svg/eye-slash.svg"></i
238
+ ></a>
239
+ <a
240
+ class="margin-right:10px"
241
+ id="code"
242
+ show="#code-slash"
243
+ hide="#code, #demo-code"
244
+ ><i
245
+ class="height:20px fill:#505050"
246
+ src="/assets/svg/code.svg"></i
247
+ ></a>
248
+ <a
249
+ class="margin-right:10px"
250
+ hidden
251
+ id="code-slash"
252
+ show="#code, #demo-code"
253
+ hide="#code-slash"
254
+ ><i
255
+ class="display:flex height:18px fill:#505050"
256
+ src="/assets/svg/code.svg"></i
257
+ ></a>
258
+ <a
259
+ class="margin-right:5px"
260
+ fullscreen
261
+ fullscreen-target="#playground"></a>
262
+ </div>
263
+ </div>
264
+ <!-- End SandBox -->
265
+ </div>
266
+ </div>
267
+ </div>
268
+ </main>
269
+
270
+ <script src="/apikey.js"></script>
271
+ <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
272
+ </body>
273
+ </html>