@cocreate/text 1.15.4 → 1.15.8

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,32 @@
1
+ ## [1.15.8](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.7...v1.15.8) (2022-02-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update action param to name ([7d81a12](https://github.com/CoCreate-app/CoCreate-text/commit/7d81a12b56956592bb48aaa1ad94af4d3464b1ce))
7
+
8
+ ## [1.15.7](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.6...v1.15.7) (2022-02-10)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump dependencies ([991f3a5](https://github.com/CoCreate-app/CoCreate-text/commit/991f3a56c00e1895324a7a94b92a0a42f9f0892d))
14
+
15
+ ## [1.15.6](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.5...v1.15.6) (2022-02-08)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * updated crdt dependency ([5855a68](https://github.com/CoCreate-app/CoCreate-text/commit/5855a68d664d157d5548c8067abd1e95dd5b9a93))
21
+ * value duplication resolved ([11727ae](https://github.com/CoCreate-app/CoCreate-text/commit/11727ae539988db062136fbd8bcf05619dd818d2))
22
+
23
+ ## [1.15.5](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.4...v1.15.5) (2022-02-07)
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * bump dependency versions ([ca743e0](https://github.com/CoCreate-app/CoCreate-text/commit/ca743e06acade91cac3ac08d2906c72209116e39))
29
+
1
30
  ## [1.15.4](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.3...v1.15.4) (2022-02-03)
2
31
 
3
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/text",
3
- "version": "1.15.4",
3
+ "version": "1.15.8",
4
4
  "description": "A simple text component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "text",
@@ -61,14 +61,14 @@
61
61
  "webpack-log": "^3.0.1"
62
62
  },
63
63
  "dependencies": {
64
- "@cocreate/actions": "^1.3.28",
65
- "@cocreate/crdt": "^1.9.0",
66
- "@cocreate/crud-client": "^1.4.43",
67
- "@cocreate/cursors": "^1.11.9",
68
- "@cocreate/docs": "^1.2.65",
69
- "@cocreate/hosting": "^1.2.60",
70
- "@cocreate/observer": "^1.4.0",
71
- "@cocreate/selection": "^1.4.0",
72
- "@cocreate/uuid": "^1.1.55"
64
+ "@cocreate/actions": "^1.3.31",
65
+ "@cocreate/crdt": "^1.9.5",
66
+ "@cocreate/crud-client": "^1.4.46",
67
+ "@cocreate/cursors": "^1.11.12",
68
+ "@cocreate/docs": "^1.2.68",
69
+ "@cocreate/hosting": "^1.2.63",
70
+ "@cocreate/observer": "^1.4.3",
71
+ "@cocreate/selection": "^1.4.3",
72
+ "@cocreate/uuid": "^1.1.58"
73
73
  }
74
74
  }
package/src/index.js CHANGED
@@ -47,6 +47,8 @@ function initElement (element) {
47
47
  element.setAttribute('crdt', 'true');
48
48
  element.crdt = {init: true};
49
49
  crdt.getText({ collection, document_id, name, crud: isCrud, save: isSave, read: isRead }).then(response => {
50
+ if(response === undefined)
51
+ return;
50
52
  if (!response){
51
53
  let value;
52
54
  if (element.hasAttribute('contenteditable')){
@@ -24,7 +24,7 @@ function save(btn){
24
24
  }
25
25
 
26
26
  action.init({
27
- action: "saveDomText",
27
+ name: "saveDomText",
28
28
  endEvent: "savedDomText",
29
29
  callback: (btn, data) => {
30
30
  save(btn);