feat!: unified migration logic in server electron, and browser (#4079)
Co-authored-by: Mirone <Saul-Mirone@outlook.com>
This commit is contained in:
@@ -6,12 +6,12 @@
|
||||
"jotai": "^2.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blocksuite/block-std": "0.0.0-20230829150056-df43987c-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230829150056-df43987c-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230829150056-df43987c-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230829150056-df43987c-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230829150056-df43987c-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230829150056-df43987c-nightly",
|
||||
"@blocksuite/block-std": "0.0.0-20230905170607-94acf22c-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230905170607-94acf22c-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230905170607-94acf22c-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230905170607-94acf22c-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230905170607-94acf22c-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230905170607-94acf22c-nightly",
|
||||
"lottie-web": "^5.12.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -1,13 +1,3 @@
|
||||
import type { EditorContainer } from '@blocksuite/editor';
|
||||
import { atom } from 'jotai';
|
||||
|
||||
export const lottieAtom = atom(import('lottie-web').then(m => m.default));
|
||||
|
||||
export const editorContainerModuleAtom = atom<Promise<typeof EditorContainer>>(
|
||||
typeof window === 'undefined'
|
||||
? async () =>
|
||||
import('@blocksuite/editor').then(module => module.EditorContainer)
|
||||
: (import('@blocksuite/editor').then(
|
||||
module => module.EditorContainer
|
||||
) as any)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user