@cocreate/cursors 1.23.2 → 1.23.4
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 +14 -0
- package/package.json +8 -8
- package/src/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.23.4](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.23.3...v1.23.4) (2024-04-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump cocreate dependencies ([37f33c0](https://github.com/CoCreate-app/CoCreate-cursors/commit/37f33c0564ef76c476d811f17a8678aad8f8dcc8))
|
|
7
|
+
|
|
8
|
+
## [1.23.3](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.23.2...v1.23.3) (2024-02-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* realtime defaults to false ([4f85854](https://github.com/CoCreate-app/CoCreate-cursors/commit/4f8585465739ba3a6910d3acf298a1f983dffad8))
|
|
14
|
+
|
|
1
15
|
## [1.23.2](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.23.1...v1.23.2) (2024-02-05)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/cursors",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.4",
|
|
4
4
|
"description": "Collaborative user cursor position for inputs, textarea's and contenteditable elements.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cursors",
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"webpack-log": "^3.0.1"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@cocreate/local-storage": "^1.
|
|
63
|
-
"@cocreate/observer": "^1.
|
|
64
|
-
"@cocreate/random-color": "^1.
|
|
65
|
-
"@cocreate/selection": "^1.
|
|
66
|
-
"@cocreate/socket-client": "^1.
|
|
67
|
-
"@cocreate/utils": "^1.
|
|
68
|
-
"@cocreate/uuid": "^1.
|
|
62
|
+
"@cocreate/local-storage": "^1.14.3",
|
|
63
|
+
"@cocreate/observer": "^1.16.0",
|
|
64
|
+
"@cocreate/random-color": "^1.10.0",
|
|
65
|
+
"@cocreate/selection": "^1.12.1",
|
|
66
|
+
"@cocreate/socket-client": "^1.39.0",
|
|
67
|
+
"@cocreate/utils": "^1.33.6",
|
|
68
|
+
"@cocreate/uuid": "^1.11.1"
|
|
69
69
|
}
|
|
70
70
|
}
|
package/src/index.js
CHANGED
|
@@ -50,7 +50,7 @@ function initElements(elements) {
|
|
|
50
50
|
function initElement(element) {
|
|
51
51
|
let realtime = element.getAttribute('realtime');
|
|
52
52
|
let cursors = element.getAttribute('cursors');
|
|
53
|
-
if (realtime
|
|
53
|
+
if (!realtime || realtime === 'false' || cursors === 'false') return;
|
|
54
54
|
if (element.hasAttribute('actions')) return;
|
|
55
55
|
if (element.cursor) return;
|
|
56
56
|
element.cursor = true;
|
|
@@ -98,7 +98,7 @@ function drawCursors(selection) {
|
|
|
98
98
|
let realtime = element.getAttribute('realtime');
|
|
99
99
|
let cursors = element.getAttribute('cursors');
|
|
100
100
|
let contenteditable = element.getAttribute('contenteditable');
|
|
101
|
-
if (realtime == 'false' || cursors == 'false') continue;
|
|
101
|
+
if (!realtime || realtime == 'false' || cursors == 'false') continue;
|
|
102
102
|
if (element.tagName != 'INPUT' && element.tagName != 'TEXTAREA')
|
|
103
103
|
if (contenteditable == 'false' || contenteditable == null)
|
|
104
104
|
if (cursors != 'true') continue;
|