@liveblocks/yjs 1.1.0-yjs2 → 1.1.0-yjs3
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.js +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -164,7 +164,7 @@ var Awareness = class extends Observable {
|
|
|
164
164
|
const update = { [field]: value };
|
|
165
165
|
this.room.updatePresence({ __yjs: update });
|
|
166
166
|
}
|
|
167
|
-
// Translate
|
|
167
|
+
// Translate liveblocks presence to yjs awareness
|
|
168
168
|
getStates() {
|
|
169
169
|
const others = this.room.getOthers();
|
|
170
170
|
const states = others.reduce((acc, currentValue) => {
|
|
@@ -176,7 +176,6 @@ var Awareness = class extends Observable {
|
|
|
176
176
|
}
|
|
177
177
|
return acc;
|
|
178
178
|
}, /* @__PURE__ */ new Map());
|
|
179
|
-
console.log(states);
|
|
180
179
|
return states;
|
|
181
180
|
}
|
|
182
181
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -164,7 +164,7 @@ var Awareness = class extends Observable {
|
|
|
164
164
|
const update = { [field]: value };
|
|
165
165
|
this.room.updatePresence({ __yjs: update });
|
|
166
166
|
}
|
|
167
|
-
// Translate
|
|
167
|
+
// Translate liveblocks presence to yjs awareness
|
|
168
168
|
getStates() {
|
|
169
169
|
const others = this.room.getOthers();
|
|
170
170
|
const states = others.reduce((acc, currentValue) => {
|
|
@@ -176,7 +176,6 @@ var Awareness = class extends Observable {
|
|
|
176
176
|
}
|
|
177
177
|
return acc;
|
|
178
178
|
}, /* @__PURE__ */ new Map());
|
|
179
|
-
console.log(states);
|
|
180
179
|
return states;
|
|
181
180
|
}
|
|
182
181
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/yjs",
|
|
3
|
-
"version": "1.1.0-
|
|
3
|
+
"version": "1.1.0-yjs3",
|
|
4
4
|
"description": "An integration with . Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@liveblocks/client": "1.1.0-
|
|
30
|
-
"@liveblocks/core": "1.1.0-
|
|
29
|
+
"@liveblocks/client": "1.1.0-yjs3",
|
|
30
|
+
"@liveblocks/core": "1.1.0-yjs3",
|
|
31
31
|
"js-base64": "^3.7.5"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|