mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 02:42:25 +08:00
chore: bump version (#4434)
This commit is contained in:
@@ -54,12 +54,12 @@
|
||||
"rxjs": "^7.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blocksuite/blocks": "0.0.0-20230913110404-34f93652-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230913110404-34f93652-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230913110404-34f93652-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230921053452-d014310e-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230921053452-d014310e-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230921053452-d014310e-nightly",
|
||||
"@blocksuite/icons": "^2.1.33",
|
||||
"@blocksuite/lit": "0.0.0-20230913110404-34f93652-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230913110404-34f93652-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230921053452-d014310e-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230921053452-d014310e-nightly",
|
||||
"@types/react": "^18.2.21",
|
||||
"@types/react-datepicker": "^4.15.0",
|
||||
"@types/react-dnd": "^3.0.2",
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import type { BlockHub } from '@blocksuite/blocks';
|
||||
import { EditorContainer } from '@blocksuite/editor';
|
||||
import { assertExists } from '@blocksuite/global/utils';
|
||||
import type { LitBlockSpec } from '@blocksuite/lit';
|
||||
import type { Page } from '@blocksuite/store';
|
||||
import { Skeleton } from '@mui/material';
|
||||
import { use } from 'foxact/use';
|
||||
@@ -23,8 +22,6 @@ export type EditorProps = {
|
||||
onLoad?: (page: Page, editor: EditorContainer) => () => void;
|
||||
style?: CSSProperties;
|
||||
className?: string;
|
||||
pagePreset?: LitBlockSpec[];
|
||||
edgelessPreset?: LitBlockSpec[];
|
||||
};
|
||||
|
||||
export type ErrorBoundaryProps = {
|
||||
@@ -50,11 +47,6 @@ const BlockSuiteEditorImpl = (props: EditorProps): ReactElement => {
|
||||
editorRef.current = new EditorContainer();
|
||||
editorRef.current.autofocus = true;
|
||||
globalThis.currentEditor = editorRef.current;
|
||||
|
||||
// set page preset
|
||||
if (props.pagePreset) editorRef.current.pagePreset = props.pagePreset;
|
||||
if (props.edgelessPreset)
|
||||
editorRef.current.edgelessPreset = props.edgelessPreset;
|
||||
}
|
||||
const editor = editorRef.current;
|
||||
assertExists(editorRef, 'editorRef.current should not be null');
|
||||
|
||||
Reference in New Issue
Block a user