@liveblocks/yjs
Advanced tools
Comparing version
import { JsonObject, LsonObject, BaseUserMeta, Json, BaseMetadata, Room, User } from '@liveblocks/client'; | ||
import { BaseMetadata as BaseMetadata$1 } from '@liveblocks/core'; | ||
import { DP, DS, DU, DE, BaseMetadata as BaseMetadata$1, DM } from '@liveblocks/core'; | ||
import { Observable } from 'lib0/observable'; | ||
@@ -59,3 +59,3 @@ import * as Y from 'yjs'; | ||
}; | ||
declare class LiveblocksYjsProvider<P extends JsonObject, S extends LsonObject, U extends BaseUserMeta, E extends Json, M extends BaseMetadata$1> extends Observable<unknown> { | ||
declare class LiveblocksYjsProvider<P extends JsonObject = DP, S extends LsonObject = DS, U extends BaseUserMeta = DU, E extends Json = DE, M extends BaseMetadata$1 = DM> extends Observable<unknown> { | ||
private room; | ||
@@ -62,0 +62,0 @@ private rootDoc; |
@@ -272,3 +272,3 @@ "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; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/index.ts | ||
var PKG_NAME = "@liveblocks/yjs"; | ||
var PKG_VERSION = "2.0.0-alpha2"; | ||
var PKG_VERSION = "2.0.0-alpha3"; | ||
var PKG_FORMAT = "cjs"; | ||
@@ -275,0 +275,0 @@ |
{ | ||
"name": "@liveblocks/yjs", | ||
"version": "2.0.0-alpha2", | ||
"version": "2.0.0-alpha3", | ||
"description": "An integration with . Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.", | ||
@@ -36,4 +36,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@liveblocks/client": "2.0.0-alpha2", | ||
"@liveblocks/core": "2.0.0-alpha2", | ||
"@liveblocks/client": "2.0.0-alpha3", | ||
"@liveblocks/core": "2.0.0-alpha3", | ||
"js-base64": "^3.7.5" | ||
@@ -40,0 +40,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
104534
0.17%+ Added
+ Added
- Removed
- Removed