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

View File

@@ -13,8 +13,8 @@ import { Map as YMap } from 'yjs';
import { getLatestVersions } from '../migration/blocksuite';
import { replaceIdMiddleware } from './middleware';
export async function initEmptyPage(page: Page, title?: string) {
await page.load(() => {
export function initEmptyPage(page: Page, title?: string) {
page.load(() => {
const pageBlockId = page.addBlock('affine:page', {
title: new page.Text(title ?? ''),
});