mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-14 08:36:22 +08:00
chore: bump version (#1812)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user