@cocreate/cursors 1.12.5 → 1.12.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,10 @@
1
+ ## [1.12.6](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.12.5...v1.12.6) (2022-11-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bumped [@cocreate](https://github.com/cocreate) dependencies ([2315b2d](https://github.com/CoCreate-app/CoCreate-cursors/commit/2315b2d74ae3e44551cea25c1244434d1edee77c))
7
+
1
8
  ## [1.12.5](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.12.4...v1.12.5) (2022-11-22)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/cursors",
3
- "version": "1.12.5",
3
+ "version": "1.12.6",
4
4
  "description": "Collaborative user cursor position for inputs, textarea's and contenteditable elements.",
5
5
  "keywords": [
6
6
  "cursors",
@@ -62,12 +62,12 @@
62
62
  "webpack-log": "^3.0.1"
63
63
  },
64
64
  "dependencies": {
65
- "@cocreate/crud-client": "^1.13.6",
66
- "@cocreate/docs": "^1.4.1",
67
- "@cocreate/message-client": "^1.1.92",
68
- "@cocreate/observer": "^1.5.24",
69
- "@cocreate/random-color": "^1.2.40",
70
- "@cocreate/selection": "^1.4.28",
71
- "@cocreate/uuid": "^1.2.22"
65
+ "@cocreate/crud-client": "^1.14.0",
66
+ "@cocreate/docs": "^1.4.2",
67
+ "@cocreate/message-client": "^1.1.93",
68
+ "@cocreate/observer": "^1.5.25",
69
+ "@cocreate/random-color": "^1.2.41",
70
+ "@cocreate/selection": "^1.4.29",
71
+ "@cocreate/uuid": "^1.2.23"
72
72
  }
73
73
  }
package/src/index.js CHANGED
@@ -8,7 +8,7 @@ import {randomColor} from '@cocreate/random-color';
8
8
  import './index.css';
9
9
 
10
10
  let crud
11
- if(CRUD && CRUD.default)
11
+ if (CRUD && CRUD.default)
12
12
  crud = CRUD.default
13
13
  else
14
14
  crud = CRUD
@@ -85,7 +85,7 @@ function drawCursors(selection) {
85
85
  }
86
86
  let pos = getElementPosition(domTextEditor.htmlString, start, end);
87
87
  if (pos.start){
88
- if(pos.path)
88
+ if (pos.path)
89
89
  element = domTextEditor.querySelector(pos.path);
90
90
  let endPos = end - start;
91
91
  if (endPos > 0)
@@ -96,7 +96,7 @@ function drawCursors(selection) {
96
96
  }
97
97
  }
98
98
 
99
- if(!element) continue;
99
+ if (!element) continue;
100
100
  let document = element.ownerDocument;
101
101
  let mirrorDiv;
102
102
  let id_mirror = element.getAttribute('mirror_id');