chore: bump version (#1618)

This commit is contained in:
Himself65
2023-03-20 00:07:54 -05:00
committed by GitHub
parent 4e7ff3862f
commit f6c1423361
20 changed files with 199 additions and 833 deletions

View File

@@ -15,12 +15,12 @@
"dependencies": {
"@affine/debug": "workspace:*",
"@affine/i18n": "workspace:*",
"@blocksuite/blocks": "0.5.0-20230317014705-a881b9c",
"@blocksuite/editor": "0.5.0-20230317014705-a881b9c",
"@blocksuite/global": "0.5.0-20230317014705-a881b9c",
"@blocksuite/blocks": "0.5.0-20230320034723-8dfc65e",
"@blocksuite/editor": "0.5.0-20230320034723-8dfc65e",
"@blocksuite/global": "0.5.0-20230320034723-8dfc65e",
"@blocksuite/icons": "2.0.23",
"@blocksuite/react": "0.5.0-20230317014705-a881b9c",
"@blocksuite/store": "0.5.0-20230317014705-a881b9c",
"@blocksuite/react": "0.5.0-20230320034723-8dfc65e",
"@blocksuite/store": "0.5.0-20230320034723-8dfc65e",
"@emotion/cache": "^11.10.5",
"@emotion/react": "^11.10.6",
"@emotion/server": "^11.10.0",

View File

@@ -1,5 +1,5 @@
/* deepscan-disable USELESS_ARROW_FUNC_BIND */
import { __unstableSchemas, builtInSchemas } from '@blocksuite/blocks/models';
import { __unstableSchemas, AffineSchemas } from '@blocksuite/blocks/models';
import type { EditorContainer } from '@blocksuite/editor';
import type { Page } from '@blocksuite/store';
import { Workspace } from '@blocksuite/store';
@@ -12,12 +12,12 @@ import { BlockSuiteEditor } from '.';
function initPage(page: Page, editor: Readonly<EditorContainer>): void {
// Add page block and surface block at root level
const pageBlockId = page.addBlockByFlavour('affine:page', {
const pageBlockId = page.addBlock('affine:page', {
title: new page.Text(''),
});
page.addBlockByFlavour('affine:surface', {}, null);
const frameId = page.addBlockByFlavour('affine:frame', {}, pageBlockId);
page.addBlockByFlavour('affine:paragraph', {}, frameId);
page.addBlock('affine:surface', {}, null);
const frameId = page.addBlock('affine:frame', {}, pageBlockId);
page.addBlock('affine:paragraph', {}, frameId);
page.resetHistory();
}
@@ -25,7 +25,7 @@ const blockSuiteWorkspace = new Workspace({
id: 'test',
blobOptionsGetter: () => void 0,
});
blockSuiteWorkspace.register(builtInSchemas).register(__unstableSchemas);
blockSuiteWorkspace.register(AffineSchemas).register(__unstableSchemas);
const promise = new Promise<void>(resolve => {
blockSuiteWorkspace.slots.pageAdded.once(() => {
resolve();