@supernova-studio/client 0.55.1 → 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 +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/yjs/version-room/backend.ts +11 -0
- package/src/yjs/version-room/base.ts +1 -1
package/package.json
CHANGED
|
@@ -64,4 +64,15 @@ export class BackendVersionRoomYDoc {
|
|
|
64
64
|
transaction.pageApprovalIdsToDelete && yDoc.removeApprovalStates(transaction.pageApprovalIdsToDelete);
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
getDocumentationPageContentHashes() {
|
|
69
|
+
const versionDoc = new VersionRoomBaseYDoc(this.yDoc);
|
|
70
|
+
|
|
71
|
+
// Limit each hash string by 100 characters
|
|
72
|
+
const validHashes = Object.entries(versionDoc.getDocumentationPageContentHashes()).filter(e => {
|
|
73
|
+
return e[1].length < 100;
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
return Object.fromEntries(validHashes);
|
|
77
|
+
}
|
|
67
78
|
}
|