@cocreate/crdt 1.18.11 → 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,105 +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 rel="icon" type="image/png" sizes="32x32" href="https://cocreate.app/images/favicon.ico">
9
- <meta name="description" content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
10
- <meta name="keywords" content="helper classes, utility classes, css framework, css library, inline style classes" />
11
- <meta name="robots" content="index,follow" />
12
-
13
- <!-- CoCreate CSS -->
14
- <link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
15
-
16
-
17
- <link rel="manifest" href="/manifest.webmanifest" />
18
- </head>
19
-
20
- <body>
21
- <nav class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px" content_id="content" scroll="sticky-nav,hide-nav" scroll-up="10" scroll-down="10" collection="files" document_id="60395ef42b3ac232657040fd" name="src">
22
- </nav>
23
- <sidenav id="menuL" class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl" resizable resize-target="[content_id='content']" resize-property="margin-left" resize-value="width">
24
- <menu collection="files" document_id="603717b07de7fb350ae9fec8" name="src"></menu>
25
- <div resize="right"></div>
26
- </sidenav>
27
- <main class="padding-top:15px padding:15px@lg@xl" content_id="content" id="cocreate-crdt">
28
- <div class="display:flex flex-wrap:wrap justify-content:space-between margin:10px">
29
- <div class="display:flex align-items:center">
30
- <h2>CoCreate-crdt</h2>
31
- </div>
32
- <div class="display:flex align-items:center font-size:20px" share-height="600" share-width="500" share-media="https://via.placeholder.com/300/09f/fff.png">
33
- <a href="https://github.com/CoCreate-app/CoCreate-crdt" target="_blank" class="margin-right:15px"><i class="height:20px fill:#505050" src="/assets/svg/github.svg"></i></a>
34
- <a class="margin-right:15px share" share-network='twitter' title="Share on twitter"><i class="height:20px fill:#505050" src="/assets/svg/twitter.svg"></i></a>
35
- <a class="margin-right:15px share" share-network='facebook' title="Share on Facebook"><i class="height:20px fill:#505050" src="/assets/svg/facebook.svg"></i></a>
36
- <a class="margin-right:15px share" share-network='instagram' title="Share on instagram"><i class="height:20px fill:#505050" src="/assets/svg/instagram.svg"></i></a>
37
- <a class="margin-right:15px share" share-network='share' title="Share on share"><i class="height:20px fill:#505050" src="/assets/svg/share-alt.svg"></i></a>
38
- </div>
39
- </div>
40
- <p class="max-width:500px margin:20px_10px">A headless vinilla javascript micro component. Easy configuration using HTML5 attributes or Javscript api.</p>
41
- <div id="crdt-section" class="display:flex flex-wrap:wrap">
42
- <div class="flex-grow:1 width:300px padding:20px_10px">
43
- <h2 class="border-bottom:1px_solid_lightgrey padding:5px_0px">Install</h2>
44
- <pre class="margin-top:15px"><code class="language-javascript">npm install cocreate-crdt</code></pre>
45
- <p class="padding:10px_0px">Or you can use cdn link:</p>
46
- <pre><code class="language-javascript">https://cdn.cocreate.app/js/CoCreate-crdt.min.js</code></pre>
47
-
48
- <h2 class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">Usage</h2>
49
- <p class="padding:10px_0px">crdt usage content</p>
50
- <pre><code class="language-html">&lt;div&gt;&lt;/div&gt;</code></pre>
51
-
52
- <h2 class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">Reference</h2>
53
- <p class="padding:10px_0px">This is crdt reference content</p>
54
- <pre><code class="language-javascript">&lt;div&gt;&lt;/div&gt;</code></pre>
55
- <p class="padding:10px_0px">This is crdt reference content</p>
56
-
57
- <h2 class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">Attributes</h2>
58
- <ul class="list-style-type:none ">
59
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
60
- <h4><span>crdt</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
61
- <p>crdt-attribute</p>
62
- </li>
63
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
64
- <h4><span>crdt</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
65
- <p>crdt-attribute</p>
66
- </li>
67
- </ul>
68
- </div>
69
-
70
- <div class="flex-grow:1 width:300px padding:0px_10px margin:20px_0px border-bottom:1px_solid_lightgrey">
71
- <!-- SandBox -->
72
- <h2 class="border-bottom:1px_solid_lightgrey padding:5px_0px">Demo</h2>
73
- <div class="position:sticky top:0 padding:10px_0px height:100vh">
74
- <!-- SandBox -->
75
- <div class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
76
-
77
- <div id="demo-code" resizable class="position:relative height:50%">
78
- <textarea type="code" lang="html" collection="demos" document_id="" name="demo" save="false" id="demo" class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
79
- <div resize="bottom" class="background:lightgrey"></div>
80
- </div>
81
-
82
- <div id="demo-preview" class="position:relative overflow:auto background-color:white">
83
- <div class="demopreview" class="padding:20px"></div>
84
- </div>
85
-
86
- <div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
87
- <a class="margin-right:10px" id="eye" show="#eye-slash" hide="#eye, #demo-preview" toggle="code-height" toggle-target="#demo-code"><i class="height:18px fill:#505050" src="/assets/svg/eye.svg"></i></a>
88
- <a class="margin-right:10px" hidden id="eye-slash" show="#eye, #demo-preview" hide="#eye-slash" toggle="code-height" toggle-target="#demo-code"><i class="height:20px fill:#505050" src="/assets/svg/eye-slash.svg"></i></a>
89
- <a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="height:20px fill:#505050" src="/assets/svg/code.svg"></i></a>
90
- <a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="display:flex height:18px fill:#505050" src="/assets/svg/code.svg"></i></a>
91
- <a class="margin-right:5px" fullscreen fullscreen-target="#playground"></a>
92
- </div>
93
-
94
- </div>
95
- <!-- End SandBox -->
96
- </div>
97
- </div>
98
-
99
- </div>
100
- </main>
101
-
102
- <script src="/apikey.js"></script>
103
- <script src="https://cdn.cocreate.app/latest/CoCreate.min.js" ></script>
104
- </body>
105
- </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>
package/package.json CHANGED
@@ -1,49 +1,49 @@
1
- {
2
- "name": "@cocreate/crdt",
3
- "version": "1.18.11",
4
- "description": "CoCreate crdt",
5
- "author": "CoCreate LLC",
6
- "license": "SEE LICENSE",
7
- "publishConfig": {
8
- "access": "public"
9
- },
10
- "scripts": {
11
- "start": "npx webpack --config webpack.config.js",
12
- "build": "NODE_ENV=production npx webpack --config webpack.config.js",
13
- "dev": "npx webpack --config webpack.config.js --watch",
14
- "docs": "node ./node_modules/@cocreate/docs/src/index.js",
15
- "hosting": "node ./node_modules/@cocreate/hosting/src/index.js"
16
- },
17
- "repository": {
18
- "type": "git",
19
- "url": "git+https://github.com/CoCreate-app/CoCreate-crdt.git"
20
- },
21
- "bugs": {
22
- "url": "https://github.com/CoCreate-app/CoCreate-crdt/issues"
23
- },
24
- "homepage": "https://cocreate.app/docs/crdt",
25
- "funding": {
26
- "type": "GitHub Sponsors ❤",
27
- "url": "https://github.com/sponsors/CoCreate-app"
28
- },
29
- "main": "./src/index.js",
30
- "devDependencies": {
31
- "@babel/core": "^7.9.6",
32
- "@babel/preset-env": "^7.9.6",
33
- "babel-loader": "^8.1.0",
34
- "clean-webpack-plugin": "^3.0.0",
35
- "file-loader": "^6.2.0",
36
- "mini-css-extract-plugin": "^1.5.0",
37
- "style-loader": "^3.3.1",
38
- "terser-webpack-plugin": "^5.1.1",
39
- "webpack": "^5.24.4",
40
- "webpack-cli": "^4.5.0",
41
- "webpack-log": "^3.0.1"
42
- },
43
- "dependencies": {
44
- "@cocreate/crud-client": "^1.21.4",
45
- "@cocreate/local-storage": "^1.7.2",
46
- "@cocreate/message-client": "^1.3.10",
47
- "@cocreate/utils": "^1.20.9"
48
- }
49
- }
1
+ {
2
+ "name": "@cocreate/crdt",
3
+ "version": "1.18.13",
4
+ "description": "CoCreate crdt",
5
+ "author": "CoCreate LLC",
6
+ "license": "SEE LICENSE",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "scripts": {
11
+ "start": "npx webpack --config webpack.config.js",
12
+ "build": "NODE_ENV=production npx webpack --config webpack.config.js",
13
+ "dev": "npx webpack --config webpack.config.js --watch",
14
+ "docs": "node ./node_modules/@cocreate/docs/src/index.js",
15
+ "hosting": "node ./node_modules/@cocreate/hosting/src/index.js"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/CoCreate-app/CoCreate-crdt.git"
20
+ },
21
+ "bugs": {
22
+ "url": "https://github.com/CoCreate-app/CoCreate-crdt/issues"
23
+ },
24
+ "homepage": "https://cocreate.app/docs/crdt",
25
+ "funding": {
26
+ "type": "GitHub Sponsors ❤",
27
+ "url": "https://github.com/sponsors/CoCreate-app"
28
+ },
29
+ "main": "./src/index.js",
30
+ "devDependencies": {
31
+ "@babel/core": "^7.9.6",
32
+ "@babel/preset-env": "^7.9.6",
33
+ "babel-loader": "^8.1.0",
34
+ "clean-webpack-plugin": "^3.0.0",
35
+ "file-loader": "^6.2.0",
36
+ "mini-css-extract-plugin": "^1.5.0",
37
+ "style-loader": "^3.3.1",
38
+ "terser-webpack-plugin": "^5.1.1",
39
+ "webpack": "^5.24.4",
40
+ "webpack-cli": "^4.5.0",
41
+ "webpack-log": "^3.0.1"
42
+ },
43
+ "dependencies": {
44
+ "@cocreate/crud-client": "^1.21.5",
45
+ "@cocreate/local-storage": "^1.7.3",
46
+ "@cocreate/message-client": "^1.3.11",
47
+ "@cocreate/utils": "^1.20.10"
48
+ }
49
+ }
package/release.config.js CHANGED
@@ -1,22 +1,22 @@
1
- module.exports = {
2
- dryRun: false,
3
- branches: ["master"],
4
- plugins: [
5
- "@semantic-release/commit-analyzer",
6
- "@semantic-release/release-notes-generator",
7
- [
8
- "@semantic-release/changelog",
9
- {
10
- changelogFile: "CHANGELOG.md",
11
- },
12
- ],
13
- "@semantic-release/npm",
14
- "@semantic-release/github",
15
- [
16
- "@semantic-release/git",
17
- {
18
- assets: ["CHANGELOG.md", "package.json"],
19
- },
20
- ],
21
- ],
1
+ module.exports = {
2
+ dryRun: false,
3
+ branches: ["master"],
4
+ plugins: [
5
+ "@semantic-release/commit-analyzer",
6
+ "@semantic-release/release-notes-generator",
7
+ [
8
+ "@semantic-release/changelog",
9
+ {
10
+ changelogFile: "CHANGELOG.md",
11
+ },
12
+ ],
13
+ "@semantic-release/npm",
14
+ "@semantic-release/github",
15
+ [
16
+ "@semantic-release/git",
17
+ {
18
+ assets: ["CHANGELOG.md", "package.json"],
19
+ },
20
+ ],
21
+ ],
22
22
  };