feat: bump blocksuite (#5453)

Change history: https://github.com/toeverything/blocksuite/compare/e3abcbb...master
This commit is contained in:
Peng Xiao
2024-01-03 02:10:19 +00:00
parent 8dc3e3d65c
commit 6cb62ed25d
22 changed files with 169 additions and 178 deletions
+5 -5
View File
@@ -71,12 +71,12 @@
"uuid": "^9.0.1"
},
"devDependencies": {
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/global": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/icons": "2.1.39",
"@blocksuite/lit": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/presets": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/lit": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/presets": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/store": "0.11.0-nightly-202401020419-752a5b8",
"@storybook/addon-actions": "^7.5.3",
"@storybook/addon-essentials": "^7.5.3",
"@storybook/addon-interactions": "^7.5.3",
@@ -222,11 +222,11 @@ const BlockSuiteEditorImpl = forwardRef<AffineEditorContainer, EditorProps>(
block: 'center',
inline: 'center',
});
const selectManager = editor.root?.selection;
const selectManager = editor.host?.selection;
if (!blockElement.path.length || !selectManager) {
return;
}
const newSelection = selectManager.getInstance('block', {
const newSelection = selectManager.create('block', {
path: blockElement.path,
});
selectManager.set([newSelection]);