@cocreate/text 1.15.5 → 1.15.9

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.9](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.8...v1.15.9) (2022-02-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update dependencies ([708cc36](https://github.com/CoCreate-app/CoCreate-text/commit/708cc361908b8bed3b947c73e9b20d933c7aa77d))
7
+
8
+ ## [1.15.8](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.7...v1.15.8) (2022-02-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update action param to name ([7d81a12](https://github.com/CoCreate-app/CoCreate-text/commit/7d81a12b56956592bb48aaa1ad94af4d3464b1ce))
14
+
15
+ ## [1.15.7](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.6...v1.15.7) (2022-02-10)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * bump dependencies ([991f3a5](https://github.com/CoCreate-app/CoCreate-text/commit/991f3a56c00e1895324a7a94b92a0a42f9f0892d))
21
+
22
+ ## [1.15.6](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.5...v1.15.6) (2022-02-08)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * updated crdt dependency ([5855a68](https://github.com/CoCreate-app/CoCreate-text/commit/5855a68d664d157d5548c8067abd1e95dd5b9a93))
28
+ * value duplication resolved ([11727ae](https://github.com/CoCreate-app/CoCreate-text/commit/11727ae539988db062136fbd8bcf05619dd818d2))
29
+
1
30
  ## [1.15.5](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.4...v1.15.5) (2022-02-07)
2
31
 
3
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/text",
3
- "version": "1.15.5",
3
+ "version": "1.15.9",
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.30",
65
- "@cocreate/crdt": "^1.9.3",
66
- "@cocreate/crud-client": "^1.4.45",
67
- "@cocreate/cursors": "^1.11.11",
68
- "@cocreate/docs": "^1.2.67",
69
- "@cocreate/hosting": "^1.2.62",
70
- "@cocreate/observer": "^1.4.2",
71
- "@cocreate/selection": "^1.4.2",
72
- "@cocreate/uuid": "^1.1.57"
64
+ "@cocreate/actions": "^1.3.33",
65
+ "@cocreate/crdt": "^1.9.7",
66
+ "@cocreate/crud-client": "^1.4.47",
67
+ "@cocreate/cursors": "^1.11.13",
68
+ "@cocreate/docs": "^1.2.69",
69
+ "@cocreate/hosting": "^1.2.64",
70
+ "@cocreate/observer": "^1.4.4",
71
+ "@cocreate/selection": "^1.4.4",
72
+ "@cocreate/uuid": "^1.1.59"
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);