chore: bump version (#1812)

This commit is contained in:
Himself65
2023-04-04 08:46:53 -05:00
committed by GitHub
parent 5bd3aa4a80
commit 69cd22a3b8
10 changed files with 119 additions and 285 deletions
+2 -2
View File
@@ -17,8 +17,8 @@
"@affine/component": "workspace:*",
"@affine/debug": "workspace:*",
"@affine/env": "workspace:*",
"@blocksuite/blocks": "0.5.0-20230326033652-70ca43c",
"@blocksuite/store": "0.5.0-20230326033652-70ca43c",
"@blocksuite/blocks": "0.5.0-20230404060355-e26ee252",
"@blocksuite/store": "0.5.0-20230404060355-e26ee252",
"@toeverything/y-indexeddb": "workspace:*",
"firebase": "^9.19.1",
"jotai": "^2.0.3",
@@ -135,9 +135,12 @@ describe('ydoc sync', () => {
workspace1.doc.getMap(`space:${pageId}`).toJSON()
);
const page2 = workspace2.getPage(pageId) as Page;
page1.updateBlockById(paragraphId, {
text: new page1.Text('hello world'),
});
page1.updateBlock(
page1.getBlockById(paragraphId) as ParagraphBlockModel,
{
text: new page1.Text('hello world'),
}
);
await new Promise(resolve => setTimeout(resolve, 1000));
const paragraph2 = page2.getBlockById(paragraphId) as ParagraphBlockModel;
const text = paragraph2.text as Text;