@cocreate/cursors 1.11.16 → 1.11.19

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,24 @@
1
+ ## [1.11.19](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.11.18...v1.11.19) (2022-05-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update document_id on link index.css ([f12a7a7](https://github.com/CoCreate-app/CoCreate-cursors/commit/f12a7a7247ebbfaf75ca044a8a063b91c2bafc2a))
7
+
8
+ ## [1.11.18](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.11.17...v1.11.18) (2022-05-06)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update config organization_Id to organization_id ([aea8b14](https://github.com/CoCreate-app/CoCreate-cursors/commit/aea8b146bafde0c2c181db5cdc30a31b4b0fcea9))
14
+
15
+ ## [1.11.17](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.11.16...v1.11.17) (2022-04-30)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * activeCursor element defined on window object ([c571c2d](https://github.com/CoCreate-app/CoCreate-cursors/commit/c571c2d707fc87d866c027753ffdbc9ea7eea498))
21
+
1
22
  ## [1.11.16](https://github.com/CoCreate-app/CoCreate-cursors/compare/v1.11.15...v1.11.16) (2022-03-22)
2
23
 
3
24
 
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  "config": {
3
3
  "apiKey": "2061acef-0451-4545-f754-60cf8160",
4
- "organization_Id": "5ff747727005da1c272740ab",
4
+ "organization_id": "5ff747727005da1c272740ab",
5
5
  "host": "general.cocreate.app"
6
6
  },
7
7
 
package/docs/index.html CHANGED
@@ -10,7 +10,7 @@
10
10
  <meta name="keywords" content="helper classes, utility classes, css framework, css library, inline style classes" />
11
11
  <meta name="robots" content="index,follow" />
12
12
  <meta property="og:image" content="https://cdn.cocreate.app/docs/boilerplate.png">
13
- <link rel="stylesheet" href="/docs/index.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" save="true"/>
13
+ <link rel="stylesheet" href="/docs/index.css" collection="files" document_id="62827d7e8082ce05b081430b" name="src" type="text/css" save="true"/>
14
14
  </head>
15
15
 
16
16
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/cursors",
3
- "version": "1.11.16",
3
+ "version": "1.11.19",
4
4
  "description": "Collaborative user cursor position for inputs, textarea's and contenteditable elements.",
5
5
  "keywords": [
6
6
  "cursors",
package/src/index.js CHANGED
@@ -58,8 +58,7 @@ function drawCursors(selection) {
58
58
  elements = document.querySelectorAll(selector);
59
59
  }
60
60
  for (let element of elements) {
61
- if (element.activeElement && selection.clientId == clientId) {
62
- // element.activeElement = '';
61
+ if (window.activeElement == element && selection.clientId == clientId) {
63
62
  continue;
64
63
  }
65
64
  let realtime = element.getAttribute('realtime');
@@ -73,8 +72,8 @@ function drawCursors(selection) {
73
72
  if (element.hasAttribute('contenteditable')) {
74
73
  let domTextEditor = element;
75
74
  if (element.tagName == 'IFRAME'){
76
- let frameClientId = element.contentDocument.defaultView.CoCreateSockets.clientId;
77
- if (frameClientId == selection.clientId) continue;
75
+ // let frameClientId = element.contentDocument.defaultView.CoCreateSockets.clientId;
76
+ // if (frameClientId == selection.clientId) continue;
78
77
  domTextEditor = element.contentDocument.documentElement;
79
78
  }
80
79
  let pos = getElementPosition(domTextEditor.htmlString, start, end);