@liveblocks/yjs 1.1.0-yjs5 → 1.1.1-yjs1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -9,6 +9,12 @@ declare type MetaClientState = {
9
9
  clock: number;
10
10
  lastUpdated: number;
11
11
  };
12
+ /**
13
+ * This class will store YJS awareness in Liveblock's presence under the __yjs key
14
+ * IMPORTANT: The yjs awareness protocol uses ydoc.clientId to reference users
15
+ * to their respective documents. To avoid mapping yjs clientIds to liveblock's connectionId,
16
+ * we simply set the clientId of the doc to the connectionId. Then no further mapping is required
17
+ */
12
18
  declare class Awareness extends Observable<any> {
13
19
  private room;
14
20
  doc: Y.Doc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/yjs",
3
- "version": "1.1.0-yjs5",
3
+ "version": "1.1.1-yjs1",
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-yjs5",
30
- "@liveblocks/core": "1.1.0-yjs5",
29
+ "@liveblocks/client": "1.1.1-yjs1",
30
+ "@liveblocks/core": "1.1.1-yjs1",
31
31
  "js-base64": "^3.7.5"
32
32
  },
33
33
  "peerDependencies": {