mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 13:02:21 +08:00
feat: update block version
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user