@cocreate/crdt 1.18.28 → 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/demo/index.html CHANGED
@@ -6,29 +6,26 @@
6
6
  </head>
7
7
  <body>
8
8
  <textarea
9
- collection="apple"
10
- document_id="6193e3f6cbf74500119cfae8"
11
- name="test"
9
+ array="apple"
10
+ object="6193e3f6cbf74500119cfae8"
11
+ key="test"
12
12
  width="100%"
13
13
  height="300px"></textarea>
14
- <h1
15
- collection="apple"
16
- document_id="6193e3f6cbf74500119cfae8"
17
- name="test"></h1>
18
- <!-- <h5 collection="apple" document_id="6193e3f6cbf74500119cfae8" name='test' contenteditable></h5> -->
19
- <!--<iframe collection="apples" document_id="602c4dadb7fb6c9da35ca126" name='html' width="100%" height="300px"></iframe>-->
14
+ <h1 array="apple" object="6193e3f6cbf74500119cfae8" key="test"></h1>
15
+ <!-- <h5 array="apple" object="6193e3f6cbf74500119cfae8" key='test' contenteditable></h5> -->
16
+ <!--<iframe array="apples" object="602c4dadb7fb6c9da35ca126" key='html' width="100%" height="300px"></iframe>-->
20
17
 
21
18
  <br />
22
- CoCreate.crdt.replaceText({ collection: "apples", document_id:
19
+ CoCreate.crdt.replaceText({ array: "apples", object:
23
20
  "602c4dadb7fb6c9da35ca126", name: "test", value: 'testing new value' })
24
21
  <br />
25
- CoCreate.crdt.getText({ collection: 'apples', document_id:
22
+ CoCreate.crdt.getText({ array: 'apples', object:
26
23
  '602c4dadb7fb6c9da35ca126', name: 'html' })
27
24
  <br />
28
- CoCreate.crdt.insertText({ collection: 'apples', document_id:
25
+ CoCreate.crdt.insertText({ array: 'apples', object:
29
26
  '602c4dadb7fb6c9da35ca126', name: 'html' value:'t', position '0' })
30
27
  <br />
31
- CoCreate.crdt.deleteText({ collection: 'apples', document_id:
28
+ CoCreate.crdt.deleteText({ array: 'apples', object:
32
29
  '602c4dadb7fb6c9da35ca126', name: 'html', position: '0', length: 2 })
33
30
 
34
31
  <!--<script src="../dist/CoCreate-crdt.js"></script>-->
package/docs/index.html CHANGED
@@ -11,10 +11,10 @@
11
11
  sizes="32x32"
12
12
  href="https://cocreate.app/images/favicon.ico" />
13
13
  <meta
14
- name="description"
14
+ key="description"
15
15
  content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
16
16
  <meta
17
- name="keywords"
17
+ key="keywords"
18
18
  content="helper classes, utility classes, css framework, css library, inline style classes" />
19
19
  <meta name="robots" content="index,follow" />
20
20
 
@@ -34,20 +34,20 @@
34
34
  scroll="sticky-nav,hide-nav"
35
35
  scroll-up="10"
36
36
  scroll-down="10"
37
- collection="files"
38
- document_id="60395ef42b3ac232657040fd"
39
- name="src"></nav>
37
+ array="files"
38
+ object="60395ef42b3ac232657040fd"
39
+ key="src"></nav>
40
40
  <sidenav
41
41
  id="menuL"
42
42
  class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
43
43
  resizable
44
- resize-target="[content_id='content']"
44
+ resize-selector="[content_id='content']"
45
45
  resize-property="margin-left"
46
46
  resize-value="width">
47
47
  <menu
48
- collection="files"
49
- document_id="603717b07de7fb350ae9fec8"
50
- name="src"></menu>
48
+ array="files"
49
+ object="603717b07de7fb350ae9fec8"
50
+ key="src"></menu>
51
51
  <div resize="right"></div>
52
52
  </sidenav>
53
53
  <main
@@ -194,9 +194,9 @@
194
194
  <textarea
195
195
  type="code"
196
196
  lang="html"
197
- collection="demos"
198
- document_id=""
199
- name="demo"
197
+ array="demos"
198
+ object=""
199
+ key="demo"
200
200
  save="false"
201
201
  id="demo"
202
202
  class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
@@ -219,7 +219,7 @@
219
219
  show="#eye-slash"
220
220
  hide="#eye, #demo-preview"
221
221
  toggle="code-height"
222
- toggle-target="#demo-code"
222
+ toggle-selector="#demo-code"
223
223
  ><i
224
224
  class="height:18px fill:#505050"
225
225
  src="/assets/svg/eye.svg"></i
@@ -231,7 +231,7 @@
231
231
  show="#eye, #demo-preview"
232
232
  hide="#eye-slash"
233
233
  toggle="code-height"
234
- toggle-target="#demo-code"
234
+ toggle-selector="#demo-code"
235
235
  ><i
236
236
  class="height:20px fill:#505050"
237
237
  src="/assets/svg/eye-slash.svg"></i
@@ -258,7 +258,7 @@
258
258
  <a
259
259
  class="margin-right:5px"
260
260
  fullscreen
261
- fullscreen-target="#playground"></a>
261
+ fullscreen-selector="#playground"></a>
262
262
  </div>
263
263
  </div>
264
264
  <!-- End SandBox -->
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@cocreate/crdt",
3
- "version": "1.18.28",
3
+ "version": "1.20.0",
4
4
  "description": "CoCreate crdt",
5
5
  "author": "CoCreate LLC",
6
- "license": "SEE LICENSE",
6
+ "license": "AGPL-3.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
10
  "scripts": {
11
11
  "start": "npx webpack --config webpack.config.js",
12
- "build": "NODE_ENV=production npx webpack --config webpack.config.js",
12
+ "build": "npx webpack --mode=production --config webpack.config.js",
13
13
  "dev": "npx webpack --config webpack.config.js --watch",
14
14
  "postinstall": "node -e \"const { execSync } = require('child_process'); try { execSync('coc --version', { stdio: 'ignore' }); } catch (error) { try { execSync('npm install -g @cocreate/cli', { stdio: 'inherit' }); console.log('Installed \"@cocreate/cli\" globally.'); } catch (error) { console.error('Failed to install \"@cocreate/cli\" globally:', error); } }\""
15
15
  },
@@ -40,9 +40,9 @@
40
40
  "webpack-log": "^3.0.1"
41
41
  },
42
42
  "dependencies": {
43
- "@cocreate/crud-client": "^1.21.23",
44
- "@cocreate/local-storage": "^1.7.20",
45
- "@cocreate/message-client": "^1.3.28",
46
- "@cocreate/utils": "^1.21.15"
43
+ "@cocreate/crud-client": "^1.22.0",
44
+ "@cocreate/local-storage": "^1.8.0",
45
+ "@cocreate/message-client": "^1.4.0",
46
+ "@cocreate/utils": "^1.22.0"
47
47
  }
48
48
  }