@liveblocks/core 1.4.1-test1 → 1.4.1-test2
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 +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +4 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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-
|
|
9
|
+
var PKG_VERSION = "1.4.1-test2";
|
|
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
|
|
|
@@ -2356,16 +2358,7 @@ var LiveList = class _LiveList extends AbstractCrdt {
|
|
|
2356
2358
|
};
|
|
2357
2359
|
ops.push(op);
|
|
2358
2360
|
for (const item of this._items) {
|
|
2359
|
-
|
|
2360
|
-
const childOps = HACK_addIntentAndDeletedIdToOperation(
|
|
2361
|
-
item._toOps(this._id, parentKey2, pool),
|
|
2362
|
-
void 0
|
|
2363
|
-
);
|
|
2364
|
-
const childOpId = childOps[0].opId;
|
|
2365
|
-
if (childOpId !== void 0) {
|
|
2366
|
-
this._unacknowledgedSets.set(parentKey2, childOpId);
|
|
2367
|
-
}
|
|
2368
|
-
ops.push(...childOps);
|
|
2361
|
+
ops.push(...item._toOps(this._id, item._getParentKeyOrThrow(), pool));
|
|
2369
2362
|
}
|
|
2370
2363
|
return ops;
|
|
2371
2364
|
}
|