feat: update block version

This commit is contained in:
QiShaoXuan
2022-10-20 10:32:09 +08:00
parent 53d8db2f04
commit 20ad0c3e86
3 changed files with 19 additions and 32 deletions
+3 -3
View File
@@ -10,9 +10,9 @@
"lint": "next lint"
},
"dependencies": {
"@blocksuite/blocks": "^0.2.11",
"@blocksuite/editor": "^0.2.11",
"@blocksuite/store": "^0.2.11",
"@blocksuite/blocks": "^0.2.12",
"@blocksuite/editor": "^0.2.12",
"@blocksuite/store": "^0.2.12",
"@emotion/css": "^11.10.0",
"@emotion/react": "^11.10.4",
"@emotion/server": "^11.10.0",
+1 -1
View File
@@ -21,7 +21,7 @@ export const Editor = () => {
});
const groupId = store.addBlock({ flavour: 'group' }, pageId);
const text = new Text('Legend from here...');
const text = new Text(store, 'Legend from here...');
store.addBlock({ flavour: 'paragraph', text }, groupId);
// store.resetHistory();