chore: bump blocksuite (#1298)

Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
Yifeng Wang
2023-03-04 04:17:06 +08:00
committed by GitHub
parent 50ff9b0c5c
commit 205092180b
14 changed files with 95 additions and 95 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ beforeEach(async () => {
})
.register(builtInSchemas)
.register(__unstableSchemas);
blockSuiteWorkspace.signals.pageAdded.on(pageId => {
blockSuiteWorkspace.slots.pageAdded.on(pageId => {
setTimeout(() => {
const page = blockSuiteWorkspace.getPage(pageId);
expect(page).not.toBeNull();
@@ -22,7 +22,7 @@ beforeEach(() => {
})
.register(builtInSchemas)
.register(__unstableSchemas);
blockSuiteWorkspace.signals.pageAdded.on(pageId => {
blockSuiteWorkspace.slots.pageAdded.on(pageId => {
const page = blockSuiteWorkspace.getPage(pageId) as Page;
const pageBlockId = page.addBlockByFlavour('affine:page', { title: '' });
const frameId = page.addBlockByFlavour('affine:frame', {}, pageBlockId);
@@ -11,7 +11,7 @@ export function useBlockSuiteWorkspaceHelper(
createPage: (pageId: string, title?: string): Promise<string> => {
return new Promise(resolve => {
assertExists(blockSuiteWorkspace);
const dispose = blockSuiteWorkspace.signals.pageAdded.on(id => {
const dispose = blockSuiteWorkspace.slots.pageAdded.on(id => {
if (id === pageId) {
dispose.dispose();
// Fixme: https://github.com/toeverything/blocksuite/issues/1350