feat: bump blocksuite (#5720)

Co-authored-by: xiaoxin <hongtao.lye@toeverything.info>
This commit is contained in:
Yifeng Wang
2024-01-26 16:27:58 +08:00
committed by GitHub
parent 387e292ed9
commit 04b9029d1b
10 changed files with 132 additions and 121 deletions

View File

@@ -3,8 +3,8 @@
"private": true,
"type": "module",
"devDependencies": {
"@blocksuite/global": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/store": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/global": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/store": "0.12.0-nightly-202401260550-8a560a1",
"react": "18.2.0",
"react-dom": "18.2.0",
"vitest": "1.1.3"

View File

@@ -13,9 +13,9 @@
"@affine/debug": "workspace:*",
"@affine/env": "workspace:*",
"@affine/templates": "workspace:*",
"@blocksuite/blocks": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/global": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/store": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/blocks": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/global": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/store": "0.12.0-nightly-202401260550-8a560a1",
"jotai": "^2.5.1",
"jotai-effect": "^0.2.3",
"nanoid": "^5.0.3",
@@ -26,8 +26,8 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine/templates": "workspace:*",
"@blocksuite/lit": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/presets": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/lit": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/presets": "0.12.0-nightly-202401260550-8a560a1",
"async-call-rpc": "^6.3.1",
"react": "^18.2.0",
"rxjs": "^7.8.1",

View File

@@ -32,14 +32,14 @@
}
},
"dependencies": {
"@blocksuite/global": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/global": "0.12.0-nightly-202401260550-8a560a1",
"idb": "^8.0.0",
"nanoid": "^5.0.3",
"y-provider": "workspace:*"
},
"devDependencies": {
"@blocksuite/blocks": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/store": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/blocks": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/store": "0.12.0-nightly-202401260550-8a560a1",
"fake-indexeddb": "^5.0.0",
"vite": "^5.0.6",
"vite-plugin-dts": "3.7.0",

View File

@@ -24,7 +24,7 @@
"build": "vite build"
},
"devDependencies": {
"@blocksuite/store": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/store": "0.12.0-nightly-202401260550-8a560a1",
"vite": "^5.0.6",
"vite-plugin-dts": "3.7.0",
"vitest": "1.1.3",

View File

@@ -73,12 +73,12 @@
"uuid": "^9.0.1"
},
"devDependencies": {
"@blocksuite/blocks": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/global": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/blocks": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/global": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/icons": "2.1.43",
"@blocksuite/lit": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/presets": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/store": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/lit": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/presets": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/store": "0.12.0-nightly-202401260550-8a560a1",
"@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-202401240410-02f373e",
"@blocksuite/blocks": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/global": "0.12.0-nightly-202401240410-02f373e",
"@blocksuite/block-std": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/blocks": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/global": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/icons": "2.1.43",
"@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",
"@blocksuite/inline": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/lit": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/presets": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/store": "0.12.0-nightly-202401260550-8a560a1",
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/sortable": "^8.0.0",
"@emotion/cache": "^11.11.0",

View File

@@ -1,6 +1,6 @@
import { Button } from '@affine/component/ui/button';
import { useAFFiNEI18N } from '@affine/i18n/hooks';
import type { SurfaceService } from '@blocksuite/blocks';
import type { EdgelessPageService } from '@blocksuite/blocks';
import { PresentationIcon } from '@blocksuite/icons';
import { useCallback, useEffect, useState } from 'react';
@@ -16,11 +16,22 @@ export const PresentButton = () => {
if (!editorRoot || isPresent) return;
// TODO: use surfaceService subAtom
const surfaceService = editorRoot?.spec.getService(
'affine:surface'
) as SurfaceService;
const enterPresentationMode = () => {
const edgelessPageService = editorRoot?.spec.getService(
'affine:page'
) as EdgelessPageService;
surfaceService?.setNavigatorMode(true);
if (
!edgelessPageService ||
edgelessPageService.tool.edgelessTool.type === 'frameNavigator'
) {
return;
}
edgelessPageService.tool.setEdgelessTool({ type: 'frameNavigator' });
};
enterPresentationMode();
setIsPresent(true);
}, [isPresent]);

View File

@@ -25,10 +25,10 @@
"@affine-test/kit": "workspace:*",
"@affine/env": "workspace:*",
"@affine/native": "workspace:*",
"@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",
"@blocksuite/blocks": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/lit": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/presets": "0.12.0-nightly-202401260550-8a560a1",
"@blocksuite/store": "0.12.0-nightly-202401260550-8a560a1",
"@electron-forge/cli": "^7.2.0",
"@electron-forge/core": "^7.2.0",
"@electron-forge/core-utils": "^7.2.0",