@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.d.mts CHANGED
@@ -51155,6 +51155,9 @@ declare class BackendVersionRoomYDoc {
51155
51155
  private readonly yDoc;
51156
51156
  constructor(yDoc: Y.Doc);
51157
51157
  updateDocumentationHierarchy(transaction: DocumentationHierarchyTransaction): void;
51158
+ getDocumentationPageContentHashes(): {
51159
+ [k: string]: string;
51160
+ };
51158
51161
  }
51159
51162
 
51160
51163
  declare class VersionRoomBaseYDoc {
package/dist/index.d.ts CHANGED
@@ -51155,6 +51155,9 @@ declare class BackendVersionRoomYDoc {
51155
51155
  private readonly yDoc;
51156
51156
  constructor(yDoc: Y.Doc);
51157
51157
  updateDocumentationHierarchy(transaction: DocumentationHierarchyTransaction): void;
51158
+ getDocumentationPageContentHashes(): {
51159
+ [k: string]: string;
51160
+ };
51158
51161
  }
51159
51162
 
51160
51163
  declare class VersionRoomBaseYDoc {
package/dist/index.js 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
 
11464
11472