@liveblocks/core 1.4.1-test1 → 1.4.1-test3

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.mjs 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 = "1.4.1-test1";
9
+ var PKG_VERSION = "1.4.1-test3";
10
10
  var PKG_FORMAT = "esm";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -642,6 +642,8 @@ var ServerMsgCode = /* @__PURE__ */ ((ServerMsgCode2) => {
642
642
  ServerMsgCode2[ServerMsgCode2["COMMENT_CREATED"] = 402] = "COMMENT_CREATED";
643
643
  ServerMsgCode2[ServerMsgCode2["COMMENT_EDITED"] = 403] = "COMMENT_EDITED";
644
644
  ServerMsgCode2[ServerMsgCode2["COMMENT_DELETED"] = 404] = "COMMENT_DELETED";
645
+ ServerMsgCode2[ServerMsgCode2["COMMENT_REACTION_ADDED"] = 405] = "COMMENT_REACTION_ADDED";
646
+ ServerMsgCode2[ServerMsgCode2["COMMENT_REACTION_REMOVED"] = 406] = "COMMENT_REACTION_REMOVED";
645
647
  return ServerMsgCode2;
646
648
  })(ServerMsgCode || {});
647
649
 
@@ -2341,7 +2343,15 @@ var LiveList = class _LiveList extends AbstractCrdt {
2341
2343
  }
2342
2344
  return list;
2343
2345
  }
2344
- /** @internal */
2346
+ /**
2347
+ * @internal
2348
+ * This function assumes that the resulting ops will be sent to the server if they have an 'opId'
2349
+ * so we mutate _unacknowledgedSets to avoid potential flickering
2350
+ * https://github.com/liveblocks/liveblocks/pull/1177
2351
+ *
2352
+ * This is quite unintuitive and should disappear as soon as
2353
+ * we introduce an explicit LiveList.Set operation
2354
+ */
2345
2355
  _toOps(parentId, parentKey, pool) {
2346
2356
  if (this._id === void 0) {
2347
2357
  throw new Error("Cannot serialize item is not attached");