@cocreate/cursors 1.20.4 → 1.20.5

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,11 @@
1
+ ## [1.20.5](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.20.4...v1.20.5) (2023-10-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add missing socketId ([bc855f8](https://github.com/CoCreate-app/CoCreate-cursors/commit/bc855f8458084899a74d89f15994e3e767675850))
7
+ * bump dependencies ([53cbfe3](https://github.com/CoCreate-app/CoCreate-cursors/commit/53cbfe387f8d682ad3c03748d2582fd79ce79aad))
8
+
1
9
  ## [1.20.4](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.20.3...v1.20.4) (2023-10-09)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/cursors",
3
- "version": "1.20.4",
3
+ "version": "1.20.5",
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.10.4",
63
- "@cocreate/message-client": "^1.8.2",
64
- "@cocreate/observer": "^1.11.4",
62
+ "@cocreate/local-storage": "^1.10.5",
63
+ "@cocreate/message-client": "^1.8.3",
64
+ "@cocreate/observer": "^1.11.5",
65
65
  "@cocreate/random-color": "^1.7.2",
66
- "@cocreate/selection": "^1.9.3",
67
- "@cocreate/utils": "^1.25.2",
66
+ "@cocreate/selection": "^1.9.4",
67
+ "@cocreate/utils": "^1.25.3",
68
68
  "@cocreate/uuid": "^1.7.2"
69
69
  }
70
70
  }
package/src/index.js CHANGED
@@ -343,7 +343,6 @@ function initResizeObserver(element) {
343
343
  function sendPosition(info) {
344
344
  try {
345
345
  message.send({
346
- room: "",
347
346
  message: "cursor",
348
347
  data: {
349
348
  array: info.array,
@@ -368,6 +367,7 @@ function sendPosition(info) {
368
367
  message.listen('cursor', function (response) {
369
368
  // if (message.socket.has(selection.socketId)) return;
370
369
  let selection = response.data
370
+ selection.socketId = response.socketId
371
371
  if (selection.start != null && selection.end != null)
372
372
  drawCursors(selection);
373
373
  else