mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 22:38:56 +08:00
chore: bump blocksuite (#1298)
Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user