@cocreate/cursors
Advanced tools
Comparing version 1.20.5 to 1.20.6
{ | ||
"name": "@cocreate/cursors", | ||
"version": "1.20.5", | ||
"version": "1.20.6", | ||
"description": "Collaborative user cursor position for inputs, textarea's and contenteditable elements.", | ||
@@ -63,6 +63,6 @@ "keywords": [ | ||
"@cocreate/local-storage": "^1.10.5", | ||
"@cocreate/message-client": "^1.8.3", | ||
"@cocreate/observer": "^1.11.5", | ||
"@cocreate/random-color": "^1.7.2", | ||
"@cocreate/selection": "^1.9.4", | ||
"@cocreate/socket-client": "^1.31.0", | ||
"@cocreate/utils": "^1.25.3", | ||
@@ -69,0 +69,0 @@ "@cocreate/uuid": "^1.7.2" |
@@ -26,3 +26,3 @@ /******************************************************************************** | ||
import { getAttributeNames } from '@cocreate/utils'; | ||
import message from '@cocreate/message-client'; | ||
import socket from '@cocreate/socket-client'; | ||
import uuid from '@cocreate/uuid'; | ||
@@ -34,3 +34,3 @@ import localStorage from '@cocreate/local-storage'; | ||
const clientId = message.socket.clientId || uuid.generate(12); | ||
const clientId = socket.clientId || uuid.generate(12); | ||
const cursorBackground = randomColor(); | ||
@@ -97,3 +97,3 @@ | ||
for (let element of elements) { | ||
if (window.activeElement == element && message.socket.has(selection.socketId)) { | ||
if (window.activeElement == element && socket.has(selection.socketId)) { | ||
continue; | ||
@@ -348,4 +348,4 @@ } | ||
try { | ||
message.send({ | ||
message: "cursor", | ||
socket.send({ | ||
method: "cursor", | ||
data: { | ||
@@ -371,4 +371,4 @@ array: info.array, | ||
message.listen('cursor', function (response) { | ||
// if (message.socket.has(selection.socketId)) return; | ||
socket.listen('cursor', function (response) { | ||
// if (socket.has(selection.socketId)) return; | ||
let selection = response.data | ||
@@ -375,0 +375,0 @@ selection.socketId = response.socketId |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154797
+ Added@cocreate/config@1.13.0(transitive)
+ Added@cocreate/crud-client@1.34.0(transitive)
+ Added@cocreate/element-prototype@1.27.0(transitive)
+ Added@cocreate/elements@1.38.0(transitive)
+ Added@cocreate/filter@1.31.0(transitive)
+ Added@cocreate/indexeddb@1.23.0(transitive)
+ Added@cocreate/organizations@1.28.0(transitive)
+ Added@cocreate/render@1.43.0(transitive)
+ Added@cocreate/socket-client@1.40.0(transitive)
+ Addedws@7.5.10(transitive)
- Removed@cocreate/message-client@^1.8.3