@kedataindo/docflow-core 0.0.31 → 0.0.32

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/dist/index.cjs CHANGED
@@ -188,9 +188,10 @@ function createCollaboration(options) {
188
188
  if (!enabled) {
189
189
  awareness.setLocalStateField("cursor", null);
190
190
  }
191
- awareness.setLocalStateField("present", enabled);
191
+ awareness.setLocalStateField("emitCursor", enabled);
192
192
  };
193
- awareness.setLocalStateField("present", emitCursor);
193
+ awareness.setLocalStateField("present", true);
194
+ awareness.setLocalStateField("emitCursor", emitCursor);
194
195
  let awarenessHandler;
195
196
  if (options.onAwarenessChange) {
196
197
  const notify = () => {
package/dist/index.js CHANGED
@@ -117,9 +117,10 @@ function createCollaboration(options) {
117
117
  if (!enabled) {
118
118
  awareness.setLocalStateField("cursor", null);
119
119
  }
120
- awareness.setLocalStateField("present", enabled);
120
+ awareness.setLocalStateField("emitCursor", enabled);
121
121
  };
122
- awareness.setLocalStateField("present", emitCursor);
122
+ awareness.setLocalStateField("present", true);
123
+ awareness.setLocalStateField("emitCursor", emitCursor);
123
124
  let awarenessHandler;
124
125
  if (options.onAwarenessChange) {
125
126
  const notify = () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kedataindo/docflow-core",
3
3
  "license": "UNLICENSED",
4
- "version": "0.0.31",
4
+ "version": "0.0.32",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",