@supernova-studio/client 0.55.2 → 0.55.3

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
@@ -6929,7 +6929,8 @@ var VersionRoomBaseYDoc = class {
6929
6929
  const map = this.documentationPageContentHashesYMap;
6930
6930
  const result = {};
6931
6931
  map.forEach((hash2, key) => {
6932
- result[key] = hash2;
6932
+ if (typeof hash2 === "string")
6933
+ result[key] = hash2;
6933
6934
  });
6934
6935
  return result;
6935
6936
  }
@@ -11459,6 +11460,13 @@ var BackendVersionRoomYDoc = class {
11459
11460
  transaction.pageApprovalIdsToDelete && yDoc.removeApprovalStates(transaction.pageApprovalIdsToDelete);
11460
11461
  });
11461
11462
  }
11463
+ getDocumentationPageContentHashes() {
11464
+ const versionDoc = new VersionRoomBaseYDoc(this.yDoc);
11465
+ const validHashes = Object.entries(versionDoc.getDocumentationPageContentHashes()).filter((e) => {
11466
+ return e[1].length < 100;
11467
+ });
11468
+ return Object.fromEntries(validHashes);
11469
+ }
11462
11470
  };
11463
11471
  export {
11464
11472
  BackendVersionRoomYDoc,