@liveblocks/core 2.0.0-alpha5 → 2.0.2
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 +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1122,6 +1122,7 @@ declare enum ServerMsgCode {
|
|
|
1122
1122
|
REJECT_STORAGE_OP = 299,
|
|
1123
1123
|
UPDATE_YDOC = 300,
|
|
1124
1124
|
THREAD_CREATED = 400,
|
|
1125
|
+
THREAD_DELETED = 407,
|
|
1125
1126
|
THREAD_METADATA_UPDATED = 401,
|
|
1126
1127
|
COMMENT_CREATED = 402,
|
|
1127
1128
|
COMMENT_EDITED = 403,
|
|
@@ -1133,11 +1134,15 @@ declare enum ServerMsgCode {
|
|
|
1133
1134
|
* Messages that can be sent from the server to the client.
|
|
1134
1135
|
*/
|
|
1135
1136
|
declare type ServerMsg<P extends JsonObject, U extends BaseUserMeta, E extends Json> = UpdatePresenceServerMsg<P> | UserJoinServerMsg<U> | UserLeftServerMsg | BroadcastedEventServerMsg<E> | RoomStateServerMsg<U> | InitialDocumentStateServerMsg | UpdateStorageServerMsg | RejectedStorageOpServerMsg | YDocUpdateServerMsg | CommentsEventServerMsg;
|
|
1136
|
-
declare type CommentsEventServerMsg = ThreadCreatedEvent | ThreadMetadataUpdatedEvent | CommentCreatedEvent | CommentEditedEvent | CommentDeletedEvent | CommentReactionAdded | CommentReactionRemoved;
|
|
1137
|
+
declare type CommentsEventServerMsg = ThreadCreatedEvent | ThreadDeletedEvent | ThreadMetadataUpdatedEvent | CommentCreatedEvent | CommentEditedEvent | CommentDeletedEvent | CommentReactionAdded | CommentReactionRemoved;
|
|
1137
1138
|
declare type ThreadCreatedEvent = {
|
|
1138
1139
|
type: ServerMsgCode.THREAD_CREATED;
|
|
1139
1140
|
threadId: string;
|
|
1140
1141
|
};
|
|
1142
|
+
declare type ThreadDeletedEvent = {
|
|
1143
|
+
type: ServerMsgCode.THREAD_DELETED;
|
|
1144
|
+
threadId: string;
|
|
1145
|
+
};
|
|
1141
1146
|
declare type ThreadMetadataUpdatedEvent = {
|
|
1142
1147
|
type: ServerMsgCode.THREAD_METADATA_UPDATED;
|
|
1143
1148
|
threadId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1122,6 +1122,7 @@ declare enum ServerMsgCode {
|
|
|
1122
1122
|
REJECT_STORAGE_OP = 299,
|
|
1123
1123
|
UPDATE_YDOC = 300,
|
|
1124
1124
|
THREAD_CREATED = 400,
|
|
1125
|
+
THREAD_DELETED = 407,
|
|
1125
1126
|
THREAD_METADATA_UPDATED = 401,
|
|
1126
1127
|
COMMENT_CREATED = 402,
|
|
1127
1128
|
COMMENT_EDITED = 403,
|
|
@@ -1133,11 +1134,15 @@ declare enum ServerMsgCode {
|
|
|
1133
1134
|
* Messages that can be sent from the server to the client.
|
|
1134
1135
|
*/
|
|
1135
1136
|
declare type ServerMsg<P extends JsonObject, U extends BaseUserMeta, E extends Json> = UpdatePresenceServerMsg<P> | UserJoinServerMsg<U> | UserLeftServerMsg | BroadcastedEventServerMsg<E> | RoomStateServerMsg<U> | InitialDocumentStateServerMsg | UpdateStorageServerMsg | RejectedStorageOpServerMsg | YDocUpdateServerMsg | CommentsEventServerMsg;
|
|
1136
|
-
declare type CommentsEventServerMsg = ThreadCreatedEvent | ThreadMetadataUpdatedEvent | CommentCreatedEvent | CommentEditedEvent | CommentDeletedEvent | CommentReactionAdded | CommentReactionRemoved;
|
|
1137
|
+
declare type CommentsEventServerMsg = ThreadCreatedEvent | ThreadDeletedEvent | ThreadMetadataUpdatedEvent | CommentCreatedEvent | CommentEditedEvent | CommentDeletedEvent | CommentReactionAdded | CommentReactionRemoved;
|
|
1137
1138
|
declare type ThreadCreatedEvent = {
|
|
1138
1139
|
type: ServerMsgCode.THREAD_CREATED;
|
|
1139
1140
|
threadId: string;
|
|
1140
1141
|
};
|
|
1142
|
+
declare type ThreadDeletedEvent = {
|
|
1143
|
+
type: ServerMsgCode.THREAD_DELETED;
|
|
1144
|
+
threadId: string;
|
|
1145
|
+
};
|
|
1141
1146
|
declare type ThreadMetadataUpdatedEvent = {
|
|
1142
1147
|
type: ServerMsgCode.THREAD_METADATA_UPDATED;
|
|
1143
1148
|
threadId: string;
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
|
|
7
7
|
// src/version.ts
|
|
8
8
|
var PKG_NAME = "@liveblocks/core";
|
|
9
|
-
var PKG_VERSION = "2.0.
|
|
9
|
+
var PKG_VERSION = "2.0.2";
|
|
10
10
|
var PKG_FORMAT = "cjs";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -647,6 +647,7 @@ var ServerMsgCode = /* @__PURE__ */ ((ServerMsgCode2) => {
|
|
|
647
647
|
ServerMsgCode2[ServerMsgCode2["REJECT_STORAGE_OP"] = 299] = "REJECT_STORAGE_OP";
|
|
648
648
|
ServerMsgCode2[ServerMsgCode2["UPDATE_YDOC"] = 300] = "UPDATE_YDOC";
|
|
649
649
|
ServerMsgCode2[ServerMsgCode2["THREAD_CREATED"] = 400] = "THREAD_CREATED";
|
|
650
|
+
ServerMsgCode2[ServerMsgCode2["THREAD_DELETED"] = 407] = "THREAD_DELETED";
|
|
650
651
|
ServerMsgCode2[ServerMsgCode2["THREAD_METADATA_UPDATED"] = 401] = "THREAD_METADATA_UPDATED";
|
|
651
652
|
ServerMsgCode2[ServerMsgCode2["COMMENT_CREATED"] = 402] = "COMMENT_CREATED";
|
|
652
653
|
ServerMsgCode2[ServerMsgCode2["COMMENT_EDITED"] = 403] = "COMMENT_EDITED";
|
|
@@ -6146,6 +6147,7 @@ ${Array.from(traces).join("\n\n")}`
|
|
|
6146
6147
|
break;
|
|
6147
6148
|
}
|
|
6148
6149
|
case 400 /* THREAD_CREATED */:
|
|
6150
|
+
case 407 /* THREAD_DELETED */:
|
|
6149
6151
|
case 401 /* THREAD_METADATA_UPDATED */:
|
|
6150
6152
|
case 405 /* COMMENT_REACTION_ADDED */:
|
|
6151
6153
|
case 406 /* COMMENT_REACTION_REMOVED */:
|