@liveblocks/core 2.7.0 → 2.7.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.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 = "2.7.0";
9
+ var PKG_VERSION = "2.7.2";
10
10
  var PKG_FORMAT = "esm";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -1952,7 +1952,6 @@ function createStore(initialState) {
1952
1952
  }
1953
1953
  function subscribe(callback) {
1954
1954
  subscribers.add(callback);
1955
- callback(state);
1956
1955
  return () => {
1957
1956
  subscribers.delete(callback);
1958
1957
  };
@@ -7204,7 +7203,7 @@ function createDevelopmentWarning(condition, ...args) {
7204
7203
 
7205
7204
  // src/comments/comment-body.ts
7206
7205
  function isCommentBodyParagraph(element) {
7207
- return "type" in element && element.type === "mention";
7206
+ return "type" in element && element.type === "paragraph";
7208
7207
  }
7209
7208
  function isCommentBodyText(element) {
7210
7209
  return !("type" in element) && "text" in element && typeof element.text === "string";
@@ -7977,7 +7976,7 @@ function shallowArray(xs, ys) {
7977
7976
  return true;
7978
7977
  }
7979
7978
  function shallowObj(objA, objB) {
7980
- if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null || Object.prototype.toString.call(objA) !== "[object Object]" || Object.prototype.toString.call(objB) !== "[object Object]") {
7979
+ if (!isPlainObject(objA) || !isPlainObject(objB)) {
7981
7980
  return false;
7982
7981
  }
7983
7982
  const keysA = Object.keys(objA);
@@ -8022,6 +8021,7 @@ export {
8022
8021
  assertNever,
8023
8022
  b64decode,
8024
8023
  cloneLson,
8024
+ compactObject,
8025
8025
  fancy_console_exports as console,
8026
8026
  convertToCommentData,
8027
8027
  convertToCommentUserReaction,