feat: bump blocksuite (#5845)

This commit is contained in:
Ayush Agrawal
2024-02-20 18:19:41 +05:30
committed by GitHub
parent a554c8aabe
commit 6fad241350
36 changed files with 187 additions and 179 deletions
@@ -25,7 +25,7 @@ describe('Workspace System', () => {
const page = workspace.blockSuiteWorkspace.createPage({
id: 'page0',
});
await page.load();
page.load();
page.addBlock('affine:page', {
title: new page.Text('test-page'),
});
@@ -45,7 +45,7 @@ describe('SyncEngine', () => {
const page = workspace.createPage({
id: 'page0',
});
await page.load();
page.load();
const pageBlockId = page.addBlock('affine:page', {
title: new page.Text(''),
});
@@ -38,7 +38,7 @@ describe('SyncPeer', () => {
const page = workspace.createPage({
id: 'page0',
});
await page.load();
page.load();
const pageBlockId = page.addBlock('affine:page', {
title: new page.Text(''),
});
@@ -89,7 +89,7 @@ describe('SyncPeer', () => {
id: 'page0',
});
expect(syncPeer.status.step).toBe(SyncPeerStep.LoadingSubDoc);
await page.load();
page.load();
await syncPeer.waitForSynced();
page.addBlock('affine:page', {
title: new page.Text(''),
@@ -1,4 +1,5 @@
import { DebugLogger } from '@affine/debug';
import { setupEditorFlags } from '@affine/env/global';
import { WorkspaceFlavour } from '@affine/env/workspace';
import { assertEquals } from '@blocksuite/global/utils';
import type { Workspace as BlockSuiteWorkspace } from '@blocksuite/store';
@@ -192,6 +193,8 @@ export class WorkspaceManager {
// apply compatibility fix
fixWorkspaceVersion(workspace.blockSuiteWorkspace.doc);
setupEditorFlags(workspace.blockSuiteWorkspace);
return workspace;
}
}