@liveblocks/yjs
Advanced tools
Comparing version 1.1.0-yjs1 to 1.1.0-yjs2
@@ -161,6 +161,2 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var __defProp = Object.defineProperty; | ||
setLocalState(state) { | ||
const self = this.room.getSelf(); | ||
if (!self) { | ||
return; | ||
} | ||
this.room.updatePresence({ __yjs: __spreadValues({}, state || {}) }); | ||
@@ -177,6 +173,10 @@ } | ||
if (currentValue.connectionId) { | ||
acc.set(currentValue.connectionId, currentValue.presence["__yjs"]); | ||
acc.set( | ||
currentValue.connectionId, | ||
currentValue.presence["__yjs"] || {} | ||
); | ||
} | ||
return acc; | ||
}, /* @__PURE__ */ new Map()); | ||
console.log(states); | ||
return states; | ||
@@ -183,0 +183,0 @@ } |
{ | ||
"name": "@liveblocks/yjs", | ||
"version": "1.1.0-yjs1", | ||
"version": "1.1.0-yjs2", | ||
"description": "An integration with . Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.", | ||
@@ -29,4 +29,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@liveblocks/client": "1.1.0-yjs1", | ||
"@liveblocks/core": "1.1.0-yjs1", | ||
"@liveblocks/client": "1.1.0-yjs2", | ||
"@liveblocks/core": "1.1.0-yjs2", | ||
"js-base64": "^3.7.5" | ||
@@ -33,0 +33,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20749
+ Added@liveblocks/client@1.1.0-yjs2(transitive)
+ Added@liveblocks/core@1.1.0-yjs2(transitive)
- Removed@liveblocks/client@1.1.0-yjs1(transitive)
- Removed@liveblocks/core@1.1.0-yjs1(transitive)
Updated@liveblocks/core@1.1.0-yjs2