mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat: bump blocksuite (#5720)
Co-authored-by: xiaoxin <hongtao.lye@toeverything.info>
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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]);
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user