@cocreate/text 1.15.2 → 1.15.6

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.6](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.5...v1.15.6) (2022-02-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * updated crdt dependency ([5855a68](https://github.com/CoCreate-app/CoCreate-text/commit/5855a68d664d157d5548c8067abd1e95dd5b9a93))
7
+ * value duplication resolved ([11727ae](https://github.com/CoCreate-app/CoCreate-text/commit/11727ae539988db062136fbd8bcf05619dd818d2))
8
+
9
+ ## [1.15.5](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.4...v1.15.5) (2022-02-07)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * bump dependency versions ([ca743e0](https://github.com/CoCreate-app/CoCreate-text/commit/ca743e06acade91cac3ac08d2906c72209116e39))
15
+
16
+ ## [1.15.4](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.3...v1.15.4) (2022-02-03)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * replaced show and hide class hidden with attribute hidden ([1249d5d](https://github.com/CoCreate-app/CoCreate-text/commit/1249d5d188f285db365f6bc31e8fedf2dfee263b))
22
+
23
+ ## [1.15.3](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.2...v1.15.3) (2022-02-01)
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * update dependency versions ([4079711](https://github.com/CoCreate-app/CoCreate-text/commit/407971197a1fc21dbefdc4419ca836afb369bcad))
29
+
1
30
  ## [1.15.2](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.1...v1.15.2) (2022-01-31)
2
31
 
3
32
 
package/docs/index.html CHANGED
@@ -74,7 +74,7 @@
74
74
  <div class="container svColumn overflow:hidden card position:relative border-radius:2px width:auto height:100%" id="sandbox">
75
75
  <div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
76
76
  <a class="margin-right:10px" id="code" show="#preview" hide="#code, #view"><i class="far fa-eye"></i></a>
77
- <a class="margin-right:10px hidden" id="preview" show="#code, #view" hide="#preview"><i class="fas fa-code"></i></a>
77
+ <a class="margin-right:10px" id="preview" show="#code, #view" hide="#preview" hidden><i class="fas fa-code"></i></a>
78
78
  <a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
79
79
  </div>
80
80
  <div class="svRow">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/text",
3
- "version": "1.15.2",
3
+ "version": "1.15.6",
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.25",
65
- "@cocreate/crdt": "^1.8.28",
66
- "@cocreate/crud-client": "^1.4.40",
67
- "@cocreate/cursors": "^1.11.0",
68
- "@cocreate/docs": "^1.2.62",
69
- "@cocreate/hosting": "^1.2.58",
70
- "@cocreate/observer": "^1.3.54",
71
- "@cocreate/selection": "^1.3.1",
72
- "@cocreate/uuid": "^1.1.51"
64
+ "@cocreate/actions": "^1.3.30",
65
+ "@cocreate/crdt": "^1.9.5",
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"
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')){