@cocreate/cursors 1.25.1 → 1.26.0

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.
@@ -3,7 +3,7 @@ name: Automated Workflow
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - master
6
+ - main
7
7
 
8
8
  jobs:
9
9
  about:
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.25.2](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.25.1...v1.25.2) (2026-07-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * set default branch to main ([b0569a9](https://github.com/CoCreate-app/CoCreate-cursors/commit/b0569a9028aaf957e9f75b81ed15b87bd0f3ac4c))
7
+
1
8
  ## [1.25.1](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.25.0...v1.25.1) (2026-07-17)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/cursors",
3
- "version": "1.25.1",
3
+ "version": "1.26.0",
4
4
  "description": "Collaborative user cursor position for inputs, textarea's and contenteditable elements.",
5
5
  "keywords": [
6
6
  "cursors",
@@ -37,16 +37,15 @@
37
37
  },
38
38
  "main": "./src/index.js",
39
39
  "dependencies": {
40
- "@cocreate/local-storage": "^1.17.0",
41
- "@cocreate/observer": "^1.20.0",
42
- "@cocreate/random-color": "^1.13.0",
43
- "@cocreate/selection": "^1.15.0",
44
- "@cocreate/socket-client": "^1.41.0",
45
- "@cocreate/utils": "^1.44.0",
46
- "@cocreate/uuid": "^1.12.4"
40
+ "@cocreate/local-storage": "^1.17.2",
41
+ "@cocreate/observer": "^1.20.2",
42
+ "@cocreate/random-color": "^1.13.2",
43
+ "@cocreate/selection": "^1.15.2",
44
+ "@cocreate/socket-client": "^1.41.2",
45
+ "@cocreate/utils": "^1.44.3"
47
46
  },
48
47
  "devDependencies": {
49
- "@cocreate/webpack": "^1.6.0"
48
+ "@cocreate/webpack": "^1.6.2"
50
49
  },
51
50
  "allowScripts": {
52
51
  "@cocreate/actions@1.21.4": true,
@@ -65,7 +64,6 @@
65
64
  "@cocreate/selection@1.14.3": true,
66
65
  "@cocreate/socket-client@1.40.5": true,
67
66
  "@cocreate/utils@1.42.2": true,
68
- "@cocreate/uuid@1.12.4": true,
69
67
  "@cocreate/webpack@1.4.3": true
70
68
  }
71
- }
69
+ }
package/release.config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  dryRun: false,
3
- branches: ["master"],
3
+ branches: ["main"],
4
4
  plugins: [
5
5
  "@semantic-release/commit-analyzer",
6
6
  "@semantic-release/release-notes-generator",
package/src/index.js CHANGED
@@ -22,15 +22,14 @@
22
22
 
23
23
  /*globals ResizeObserver*/
24
24
  import observer from "@cocreate/observer";
25
- import { getAttributeNames } from "@cocreate/utils";
25
+ import { getAttributeNames, uuid } from "@cocreate/utils";
26
26
  import socket from "@cocreate/socket-client";
27
- import uuid from "@cocreate/uuid";
28
27
  import localStorage from "@cocreate/local-storage";
29
28
  import { getElementPosition } from "@cocreate/selection";
30
29
  import { randomColor } from "@cocreate/random-color";
31
30
  import "./index.css";
32
31
 
33
- const clientId = socket.clientId || uuid.generate(12);
32
+ const clientId = socket.clientId || uuid(12);
34
33
  const cursorBackground = randomColor();
35
34
 
36
35
  let environment_prod = true;
@@ -163,7 +162,7 @@ function drawCursors(selection) {
163
162
  let mirrorDiv;
164
163
  let id_mirror = element.getAttribute("mirror_id");
165
164
  if (!id_mirror) {
166
- id_mirror = uuid.generate(8);
165
+ id_mirror = uuid(8);
167
166
  element.setAttribute("mirror_id", id_mirror);
168
167
 
169
168
  mirrorDiv = document.createElement("cursor-container");