@liveblocks/client 2.0.0-alpha1 → 2.0.0-alpha3

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.d.mts CHANGED
@@ -1,15 +1 @@
1
- export { BaseMetadata, BaseUserMeta, BroadcastOptions, Client, ClientOptions, CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyLinkElementArgs, CommentBodyMention, CommentBodyMentionElementArgs, CommentBodyParagraph, CommentBodyParagraphElementArgs, CommentBodyText, CommentBodyTextElementArgs, CommentData, History, IUserInfo, Immutable, InboxNotificationData, Json, JsonArray, JsonObject, JsonScalar, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, OthersEvent, PlainLsonObject, ResolveMentionSuggestionsArgs, ResolveRoomsInfoArgs, ResolveUsersArgs, Room, RoomNotificationSettings, Status, StorageStatus, StorageUpdate, StringifyCommentBodyElements, StringifyCommentBodyOptions, ThreadData, User, createClient, getMentionedIdsFromCommentBody, shallow, stringifyCommentBody, toPlainLson } from '@liveblocks/core';
2
-
3
- /**
4
- * Helper type to help users adopt to Lson types from interface definitions.
5
- * You should only use this to wrap interfaces you don't control. For more
6
- * information, see
7
- * https://liveblocks.io/docs/guides/limits#lson-constraint-and-interfaces
8
- */
9
- declare type EnsureJson<T> = [
10
- unknown
11
- ] extends [T] ? T : T extends (...args: unknown[]) => unknown ? T : {
12
- [K in keyof T]: EnsureJson<T[K]>;
13
- };
14
-
15
- export type { EnsureJson };
1
+ export { BaseMetadata, BaseUserMeta, BroadcastOptions, Client, ClientOptions, CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyLinkElementArgs, CommentBodyMention, CommentBodyMentionElementArgs, CommentBodyParagraph, CommentBodyParagraphElementArgs, CommentBodyText, CommentBodyTextElementArgs, CommentData, EnsureJson, History, IUserInfo, Immutable, InboxNotificationData, Json, JsonArray, JsonObject, JsonScalar, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, OthersEvent, PlainLsonObject, ResolveMentionSuggestionsArgs, ResolveRoomsInfoArgs, ResolveUsersArgs, Room, RoomNotificationSettings, Status, StorageStatus, StorageUpdate, StringifyCommentBodyElements, StringifyCommentBodyOptions, ThreadData, User, createClient, getMentionedIdsFromCommentBody, shallow, stringifyCommentBody, toPlainLson } from '@liveblocks/core';
package/dist/index.d.ts CHANGED
@@ -1,15 +1 @@
1
- export { BaseMetadata, BaseUserMeta, BroadcastOptions, Client, ClientOptions, CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyLinkElementArgs, CommentBodyMention, CommentBodyMentionElementArgs, CommentBodyParagraph, CommentBodyParagraphElementArgs, CommentBodyText, CommentBodyTextElementArgs, CommentData, History, IUserInfo, Immutable, InboxNotificationData, Json, JsonArray, JsonObject, JsonScalar, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, OthersEvent, PlainLsonObject, ResolveMentionSuggestionsArgs, ResolveRoomsInfoArgs, ResolveUsersArgs, Room, RoomNotificationSettings, Status, StorageStatus, StorageUpdate, StringifyCommentBodyElements, StringifyCommentBodyOptions, ThreadData, User, createClient, getMentionedIdsFromCommentBody, shallow, stringifyCommentBody, toPlainLson } from '@liveblocks/core';
2
-
3
- /**
4
- * Helper type to help users adopt to Lson types from interface definitions.
5
- * You should only use this to wrap interfaces you don't control. For more
6
- * information, see
7
- * https://liveblocks.io/docs/guides/limits#lson-constraint-and-interfaces
8
- */
9
- declare type EnsureJson<T> = [
10
- unknown
11
- ] extends [T] ? T : T extends (...args: unknown[]) => unknown ? T : {
12
- [K in keyof T]: EnsureJson<T[K]>;
13
- };
14
-
15
- export type { EnsureJson };
1
+ export { BaseMetadata, BaseUserMeta, BroadcastOptions, Client, ClientOptions, CommentBody, CommentBodyBlockElement, CommentBodyElement, CommentBodyInlineElement, CommentBodyLink, CommentBodyLinkElementArgs, CommentBodyMention, CommentBodyMentionElementArgs, CommentBodyParagraph, CommentBodyParagraphElementArgs, CommentBodyText, CommentBodyTextElementArgs, CommentData, EnsureJson, History, IUserInfo, Immutable, InboxNotificationData, Json, JsonArray, JsonObject, JsonScalar, LiveList, LiveListUpdate, LiveMap, LiveMapUpdate, LiveObject, LiveObjectUpdate, LiveStructure, LostConnectionEvent, Lson, LsonObject, OthersEvent, PlainLsonObject, ResolveMentionSuggestionsArgs, ResolveRoomsInfoArgs, ResolveUsersArgs, Room, RoomNotificationSettings, Status, StorageStatus, StorageUpdate, StringifyCommentBodyElements, StringifyCommentBodyOptions, ThreadData, User, createClient, getMentionedIdsFromCommentBody, shallow, stringifyCommentBody, toPlainLson } from '@liveblocks/core';
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ var _core = require('@liveblocks/core');
3
3
 
4
4
  // src/version.ts
5
5
  var PKG_NAME = "@liveblocks/client";
6
- var PKG_VERSION = "2.0.0-alpha1";
6
+ var PKG_VERSION = "2.0.0-alpha3";
7
7
  var PKG_FORMAT = "cjs";
8
8
 
9
9
  // src/index.ts
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/version.ts"],"names":[],"mappings":";AAAA,SAAS,mBAAmB;;;ACGrB,IAAM,WAAW;AACjB,IAAM,cAAiD;AACvD,IAAM,aAAgD;;;ADkD7D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AA5DP,YAAY,UAAU,aAAa,UAAU","sourcesContent":["import { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\n\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport type {\n BaseMetadata,\n BaseUserMeta,\n BroadcastOptions,\n Client,\n ClientOptions,\n CommentBody,\n CommentBodyBlockElement,\n CommentBodyElement,\n CommentBodyInlineElement,\n CommentBodyLink,\n CommentBodyLinkElementArgs,\n CommentBodyMention,\n CommentBodyMentionElementArgs,\n CommentBodyParagraph,\n CommentBodyParagraphElementArgs,\n CommentBodyText,\n CommentBodyTextElementArgs,\n CommentData,\n History,\n Immutable,\n InboxNotificationData,\n IUserInfo,\n Json,\n JsonArray,\n JsonObject,\n JsonScalar,\n LiveListUpdate,\n LiveMapUpdate,\n LiveObjectUpdate,\n LiveStructure,\n LostConnectionEvent,\n Lson,\n LsonObject,\n OthersEvent,\n PlainLsonObject,\n ResolveMentionSuggestionsArgs,\n ResolveRoomsInfoArgs,\n ResolveUsersArgs,\n Room,\n RoomNotificationSettings,\n Status,\n StorageStatus,\n StorageUpdate,\n StringifyCommentBodyElements,\n StringifyCommentBodyOptions,\n ThreadData,\n User,\n} from \"@liveblocks/core\";\nexport {\n createClient,\n getMentionedIdsFromCommentBody,\n LiveList,\n LiveMap,\n LiveObject,\n shallow,\n stringifyCommentBody,\n toPlainLson,\n} from \"@liveblocks/core\";\n\n/**\n * Helper type to help users adopt to Lson types from interface definitions.\n * You should only use this to wrap interfaces you don't control. For more\n * information, see\n * https://liveblocks.io/docs/guides/limits#lson-constraint-and-interfaces\n */\n// prettier-ignore\nexport type EnsureJson<T> =\n // Retain `unknown` fields\n [unknown] extends [T] ? T :\n // Retain functions\n T extends (...args: unknown[]) => unknown ? T :\n // Resolve all other values explicitly\n { [K in keyof T]: EnsureJson<T[K]> };\n","declare const __VERSION__: string;\ndeclare const TSUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/client\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof TSUP_FORMAT === \"string\" && TSUP_FORMAT;\n"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/version.ts"],"names":[],"mappings":";AAAA,SAAS,mBAAmB;;;ACGrB,IAAM,WAAW;AACjB,IAAM,cAAiD;AACvD,IAAM,aAAgD;;;ADmD7D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AA7DP,YAAY,UAAU,aAAa,UAAU","sourcesContent":["import { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\n\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport type {\n BaseMetadata,\n BaseUserMeta,\n BroadcastOptions,\n Client,\n ClientOptions,\n CommentBody,\n CommentBodyBlockElement,\n CommentBodyElement,\n CommentBodyInlineElement,\n CommentBodyLink,\n CommentBodyLinkElementArgs,\n CommentBodyMention,\n CommentBodyMentionElementArgs,\n CommentBodyParagraph,\n CommentBodyParagraphElementArgs,\n CommentBodyText,\n CommentBodyTextElementArgs,\n CommentData,\n EnsureJson,\n History,\n Immutable,\n InboxNotificationData,\n IUserInfo,\n Json,\n JsonArray,\n JsonObject,\n JsonScalar,\n LiveListUpdate,\n LiveMapUpdate,\n LiveObjectUpdate,\n LiveStructure,\n LostConnectionEvent,\n Lson,\n LsonObject,\n OthersEvent,\n PlainLsonObject,\n ResolveMentionSuggestionsArgs,\n ResolveRoomsInfoArgs,\n ResolveUsersArgs,\n Room,\n RoomNotificationSettings,\n Status,\n StorageStatus,\n StorageUpdate,\n StringifyCommentBodyElements,\n StringifyCommentBodyOptions,\n ThreadData,\n User,\n} from \"@liveblocks/core\";\nexport {\n createClient,\n getMentionedIdsFromCommentBody,\n LiveList,\n LiveMap,\n LiveObject,\n shallow,\n stringifyCommentBody,\n toPlainLson,\n} from \"@liveblocks/core\";\n","declare const __VERSION__: string;\ndeclare const TSUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/client\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof TSUP_FORMAT === \"string\" && TSUP_FORMAT;\n"]}
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { detectDupes } from "@liveblocks/core";
3
3
 
4
4
  // src/version.ts
5
5
  var PKG_NAME = "@liveblocks/client";
6
- var PKG_VERSION = "2.0.0-alpha1";
6
+ var PKG_VERSION = "2.0.0-alpha3";
7
7
  var PKG_FORMAT = "esm";
8
8
 
9
9
  // src/index.ts
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/version.ts"],"sourcesContent":["import { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\n\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport type {\n BaseMetadata,\n BaseUserMeta,\n BroadcastOptions,\n Client,\n ClientOptions,\n CommentBody,\n CommentBodyBlockElement,\n CommentBodyElement,\n CommentBodyInlineElement,\n CommentBodyLink,\n CommentBodyLinkElementArgs,\n CommentBodyMention,\n CommentBodyMentionElementArgs,\n CommentBodyParagraph,\n CommentBodyParagraphElementArgs,\n CommentBodyText,\n CommentBodyTextElementArgs,\n CommentData,\n History,\n Immutable,\n InboxNotificationData,\n IUserInfo,\n Json,\n JsonArray,\n JsonObject,\n JsonScalar,\n LiveListUpdate,\n LiveMapUpdate,\n LiveObjectUpdate,\n LiveStructure,\n LostConnectionEvent,\n Lson,\n LsonObject,\n OthersEvent,\n PlainLsonObject,\n ResolveMentionSuggestionsArgs,\n ResolveRoomsInfoArgs,\n ResolveUsersArgs,\n Room,\n RoomNotificationSettings,\n Status,\n StorageStatus,\n StorageUpdate,\n StringifyCommentBodyElements,\n StringifyCommentBodyOptions,\n ThreadData,\n User,\n} from \"@liveblocks/core\";\nexport {\n createClient,\n getMentionedIdsFromCommentBody,\n LiveList,\n LiveMap,\n LiveObject,\n shallow,\n stringifyCommentBody,\n toPlainLson,\n} from \"@liveblocks/core\";\n\n/**\n * Helper type to help users adopt to Lson types from interface definitions.\n * You should only use this to wrap interfaces you don't control. For more\n * information, see\n * https://liveblocks.io/docs/guides/limits#lson-constraint-and-interfaces\n */\n// prettier-ignore\nexport type EnsureJson<T> =\n // Retain `unknown` fields\n [unknown] extends [T] ? T :\n // Retain functions\n T extends (...args: unknown[]) => unknown ? T :\n // Resolve all other values explicitly\n { [K in keyof T]: EnsureJson<T[K]> };\n","declare const __VERSION__: string;\ndeclare const TSUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/client\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof TSUP_FORMAT === \"string\" && TSUP_FORMAT;\n"],"mappings":";AAAA,SAAS,mBAAmB;;;ACGrB,IAAM,WAAW;AACjB,IAAM,cAAiD;AACvD,IAAM,aAAgD;;;ADkD7D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AA5DP,YAAY,UAAU,aAAa,UAAU;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts","../src/version.ts"],"sourcesContent":["import { detectDupes } from \"@liveblocks/core\";\n\nimport { PKG_FORMAT, PKG_NAME, PKG_VERSION } from \"./version\";\n\ndetectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT);\n\nexport type {\n BaseMetadata,\n BaseUserMeta,\n BroadcastOptions,\n Client,\n ClientOptions,\n CommentBody,\n CommentBodyBlockElement,\n CommentBodyElement,\n CommentBodyInlineElement,\n CommentBodyLink,\n CommentBodyLinkElementArgs,\n CommentBodyMention,\n CommentBodyMentionElementArgs,\n CommentBodyParagraph,\n CommentBodyParagraphElementArgs,\n CommentBodyText,\n CommentBodyTextElementArgs,\n CommentData,\n EnsureJson,\n History,\n Immutable,\n InboxNotificationData,\n IUserInfo,\n Json,\n JsonArray,\n JsonObject,\n JsonScalar,\n LiveListUpdate,\n LiveMapUpdate,\n LiveObjectUpdate,\n LiveStructure,\n LostConnectionEvent,\n Lson,\n LsonObject,\n OthersEvent,\n PlainLsonObject,\n ResolveMentionSuggestionsArgs,\n ResolveRoomsInfoArgs,\n ResolveUsersArgs,\n Room,\n RoomNotificationSettings,\n Status,\n StorageStatus,\n StorageUpdate,\n StringifyCommentBodyElements,\n StringifyCommentBodyOptions,\n ThreadData,\n User,\n} from \"@liveblocks/core\";\nexport {\n createClient,\n getMentionedIdsFromCommentBody,\n LiveList,\n LiveMap,\n LiveObject,\n shallow,\n stringifyCommentBody,\n toPlainLson,\n} from \"@liveblocks/core\";\n","declare const __VERSION__: string;\ndeclare const TSUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/client\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof TSUP_FORMAT === \"string\" && TSUP_FORMAT;\n"],"mappings":";AAAA,SAAS,mBAAmB;;;ACGrB,IAAM,WAAW;AACjB,IAAM,cAAiD;AACvD,IAAM,aAAgD;;;ADmD7D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AA7DP,YAAY,UAAU,aAAa,UAAU;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/client",
3
- "version": "2.0.0-alpha1",
3
+ "version": "2.0.0-alpha3",
4
4
  "description": "A client that lets you interact with Liveblocks servers. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "commonjs",
@@ -30,11 +30,11 @@
30
30
  "lint": "eslint src/",
31
31
  "lint:package": "publint --strict && attw --pack",
32
32
  "test": "jest --silent --verbose --color=always --passWithNoTests",
33
- "test:types": "tsd",
33
+ "test:types": "ls test-d/* | xargs -n1 tsd --files",
34
34
  "test:watch": "jest --silent --verbose --color=always --passWithNoTests --watch"
35
35
  },
36
36
  "dependencies": {
37
- "@liveblocks/core": "2.0.0-alpha1"
37
+ "@liveblocks/core": "2.0.0-alpha3"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@liveblocks/eslint-config": "*",