@cocreate/text 1.15.3 → 1.15.7
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 +29 -0
- package/docs/index.html +1 -1
- package/package.json +10 -10
- package/src/index.js +2 -0
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,32 @@
|
|
1
|
+
## [1.15.7](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.6...v1.15.7) (2022-02-10)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* bump dependencies ([991f3a5](https://github.com/CoCreate-app/CoCreate-text/commit/991f3a56c00e1895324a7a94b92a0a42f9f0892d))
|
7
|
+
|
8
|
+
## [1.15.6](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.5...v1.15.6) (2022-02-08)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* updated crdt dependency ([5855a68](https://github.com/CoCreate-app/CoCreate-text/commit/5855a68d664d157d5548c8067abd1e95dd5b9a93))
|
14
|
+
* value duplication resolved ([11727ae](https://github.com/CoCreate-app/CoCreate-text/commit/11727ae539988db062136fbd8bcf05619dd818d2))
|
15
|
+
|
16
|
+
## [1.15.5](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.4...v1.15.5) (2022-02-07)
|
17
|
+
|
18
|
+
|
19
|
+
### Bug Fixes
|
20
|
+
|
21
|
+
* bump dependency versions ([ca743e0](https://github.com/CoCreate-app/CoCreate-text/commit/ca743e06acade91cac3ac08d2906c72209116e39))
|
22
|
+
|
23
|
+
## [1.15.4](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.3...v1.15.4) (2022-02-03)
|
24
|
+
|
25
|
+
|
26
|
+
### Bug Fixes
|
27
|
+
|
28
|
+
* replaced show and hide class hidden with attribute hidden ([1249d5d](https://github.com/CoCreate-app/CoCreate-text/commit/1249d5d188f285db365f6bc31e8fedf2dfee263b))
|
29
|
+
|
1
30
|
## [1.15.3](https://github.com/CoCreate-app/CoCreate-text/compare/v1.15.2...v1.15.3) (2022-02-01)
|
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
|
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.
|
3
|
+
"version": "1.15.7",
|
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.
|
65
|
-
"@cocreate/crdt": "^1.9.
|
66
|
-
"@cocreate/crud-client": "^1.4.
|
67
|
-
"@cocreate/cursors": "^1.11.
|
68
|
-
"@cocreate/docs": "^1.2.
|
69
|
-
"@cocreate/hosting": "^1.2.
|
70
|
-
"@cocreate/observer": "^1.4.
|
71
|
-
"@cocreate/selection": "^1.4.
|
72
|
-
"@cocreate/uuid": "^1.1.
|
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')){
|