@cocreate/cursors 1.12.7 → 1.12.8
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 +8 -0
- package/package.json +8 -8
- package/src/index.js +1 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.12.8](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.12.7...v1.12.8) (2022-11-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump dependencies ([c616935](https://github.com/CoCreate-app/CoCreate-cursors/commit/c616935f6a247aa18f1f8667b31ba5dc8a3d19e1))
|
|
7
|
+
* CoCreate.crud.default removed bug causing default object ([6c456ba](https://github.com/CoCreate-app/CoCreate-cursors/commit/6c456bafb8c3d64f6ceef5b0824adc52f865660d))
|
|
8
|
+
|
|
1
9
|
## [1.12.7](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.12.6...v1.12.7) (2022-11-24)
|
|
2
10
|
|
|
3
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/cursors",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.8",
|
|
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.
|
|
66
|
-
"@cocreate/docs": "^1.4.
|
|
67
|
-
"@cocreate/message-client": "^1.1.
|
|
68
|
-
"@cocreate/observer": "^1.5.
|
|
69
|
-
"@cocreate/random-color": "^1.2.
|
|
70
|
-
"@cocreate/selection": "^1.4.
|
|
71
|
-
"@cocreate/uuid": "^1.2.
|
|
65
|
+
"@cocreate/crud-client": "^1.15.1",
|
|
66
|
+
"@cocreate/docs": "^1.4.4",
|
|
67
|
+
"@cocreate/message-client": "^1.1.95",
|
|
68
|
+
"@cocreate/observer": "^1.5.27",
|
|
69
|
+
"@cocreate/random-color": "^1.2.43",
|
|
70
|
+
"@cocreate/selection": "^1.4.31",
|
|
71
|
+
"@cocreate/uuid": "^1.2.25"
|
|
72
72
|
}
|
|
73
73
|
}
|
package/src/index.js
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
/*globals localStorage, ResizeObserver*/
|
|
2
2
|
import observer from '@cocreate/observer';
|
|
3
|
-
import
|
|
3
|
+
import crud from '@cocreate/crud-client';
|
|
4
4
|
import message from '@cocreate/message-client';
|
|
5
5
|
import uuid from '@cocreate/uuid';
|
|
6
6
|
import { getElementPosition } from '@cocreate/selection';
|
|
7
7
|
import {randomColor} from '@cocreate/random-color';
|
|
8
8
|
import './index.css';
|
|
9
9
|
|
|
10
|
-
let crud
|
|
11
|
-
if (CRUD && CRUD.default)
|
|
12
|
-
crud = CRUD.default
|
|
13
|
-
else
|
|
14
|
-
crud = CRUD
|
|
15
|
-
|
|
16
10
|
const clientId = message.socket.clientId || uuid.generate(12);
|
|
17
11
|
const cursorBackground = randomColor();
|
|
18
12
|
|