feat: bump blocksuite (#5673)

This commit is contained in:
Chen
2024-01-24 15:13:12 +08:00
committed by GitHub
parent 151a53c575
commit c566952e09
16 changed files with 190 additions and 192 deletions

View File

@@ -73,12 +73,12 @@
"uuid": "^9.0.1"
},
"devDependencies": {
"@blocksuite/blocks": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/global": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/blocks": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/global": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/icons": "2.1.42",
"@blocksuite/lit": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/presets": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/store": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/lit": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/presets": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/store": "0.12.0-nightly-202401240410-02f373e",
"@storybook/addon-actions": "^7.5.3",
"@storybook/addon-essentials": "^7.5.3",
"@storybook/addon-interactions": "^7.5.3",

View File

@@ -26,14 +26,14 @@
"@affine/templates": "workspace:*",
"@affine/workspace": "workspace:*",
"@affine/workspace-impl": "workspace:*",
"@blocksuite/block-std": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/blocks": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/global": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/block-std": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/blocks": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/global": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/icons": "2.1.42",
"@blocksuite/inline": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/lit": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/presets": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/store": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/inline": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/lit": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/presets": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/store": "0.12.0-nightly-202401240410-02f373e",
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/sortable": "^8.0.0",
"@emotion/cache": "^11.11.0",

View File

@@ -31,17 +31,15 @@ export const PresentButton = () => {
const editorRoot = document.querySelector('editor-host');
if (!editorRoot) return;
// TODO: use surfaceService subAtom
const surfaceService = editorRoot?.spec.getService(
'affine:surface'
) as SurfaceService;
const edgelessPage = editorRoot?.querySelector('affine-edgeless-page');
if (!edgelessPage) return;
surfaceService.slots.edgelessToolUpdated.on(() => {
setIsPresent(surfaceService?.currentTool?.type === 'frameNavigator');
edgelessPage.slots.edgelessToolUpdated.on(() => {
setIsPresent(edgelessPage.edgelessTool.type === 'frameNavigator');
});
return () => {
surfaceService.slots.edgelessToolUpdated.dispose();
edgelessPage.slots.edgelessToolUpdated.dispose();
};
}, [isPresent]);

View File

@@ -25,10 +25,10 @@
"@affine-test/kit": "workspace:*",
"@affine/env": "workspace:*",
"@affine/native": "workspace:*",
"@blocksuite/blocks": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/lit": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/presets": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/store": "0.12.0-nightly-202401190708-4e2c95a",
"@blocksuite/blocks": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/lit": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/presets": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/store": "0.12.0-nightly-202401240410-02f373e",
"@electron-forge/cli": "^7.2.0",
"@electron-forge/core": "^7.2.0",
"@electron-forge/core-utils": "^7.2.0",