@supernova-studio/client 0.47.65 → 0.47.67
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.js +21 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/yjs/version-room/frontend.ts +4 -4
package/dist/index.mjs
CHANGED
|
@@ -6104,14 +6104,14 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6104
6104
|
);
|
|
6105
6105
|
const result = /* @__PURE__ */ new Map();
|
|
6106
6106
|
pages.forEach((page) => {
|
|
6107
|
-
const currentPageContentHash = pageHashes[page.persistentId] ?? "";
|
|
6108
|
-
const currentState = this.itemStateFromPage(page, currentPageContentHash);
|
|
6109
6107
|
const snapshot = publishedSnapshotsByPageId.get(page.id);
|
|
6110
6108
|
let publishedState;
|
|
6111
6109
|
if (snapshot) {
|
|
6112
6110
|
const publishedPage = publishedPagesById.get(snapshot.page.id);
|
|
6113
6111
|
publishedState = this.itemStateFromPage(publishedPage, snapshot.pageContentHash);
|
|
6114
6112
|
}
|
|
6113
|
+
const currentPageContentHash = pageHashes[page.persistentId] ?? snapshot?.pageContentHash ?? "";
|
|
6114
|
+
const currentState = this.itemStateFromPage(page, currentPageContentHash);
|
|
6115
6115
|
const draftState = this.createDraftState(page.persistentId, currentState, publishedState);
|
|
6116
6116
|
if (draftState)
|
|
6117
6117
|
result.set(page.id, draftState);
|