mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
chore: bump version (#1618)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@affine/debug": "workspace:*",
|
||||
"@blocksuite/blocks": "0.5.0-20230317014705-a881b9c",
|
||||
"@blocksuite/store": "0.5.0-20230317014705-a881b9c",
|
||||
"@blocksuite/blocks": "0.5.0-20230320034723-8dfc65e",
|
||||
"@blocksuite/store": "0.5.0-20230320034723-8dfc65e",
|
||||
"@tauri-apps/api": "^1.2.0",
|
||||
"encoding": "^0.1.13",
|
||||
"firebase": "^9.18.0",
|
||||
@@ -23,7 +23,7 @@
|
||||
"js-base64": "^3.7.5",
|
||||
"ky": "^0.33.3",
|
||||
"ky-universal": "^0.11.0",
|
||||
"lib0": "^0.2.68",
|
||||
"lib0": "^0.2.69",
|
||||
"lit": "^2.6.1",
|
||||
"y-protocols": "^1.0.5",
|
||||
"yjs": "^13.5.50"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { __unstableSchemas, builtInSchemas } from '@blocksuite/blocks/models';
|
||||
import { __unstableSchemas, AffineSchemas } from '@blocksuite/blocks/models';
|
||||
import type { StoreOptions } from '@blocksuite/store';
|
||||
import { Workspace as BlocksuiteWorkspace } from '@blocksuite/store';
|
||||
|
||||
@@ -8,7 +8,7 @@ export const createBlocksuiteWorkspace = (options: StoreOptions) => {
|
||||
isSSR: typeof window === 'undefined',
|
||||
...options,
|
||||
})
|
||||
.register(builtInSchemas)
|
||||
.register(AffineSchemas)
|
||||
.register(__unstableSchemas);
|
||||
};
|
||||
|
||||
|
||||
2
packages/env/package.json
vendored
2
packages/env/package.json
vendored
@@ -9,7 +9,7 @@
|
||||
"zod": "^3.21.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blocksuite/global": "0.5.0-20230317014705-a881b9c",
|
||||
"@blocksuite/global": "0.5.0-20230320034723-8dfc65e",
|
||||
"lit": "^2.6.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@affine/debug": "workspace:*",
|
||||
"i18next": "^22.4.11",
|
||||
"i18next": "^22.4.12",
|
||||
"react": "^18.2.0",
|
||||
"react-i18next": "^12.2.0"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user