feat(editor): use store extension manager (#11891)

Closes: BS-3284
This commit is contained in:
Saul-Mirone
2025-04-22 15:51:22 +00:00
parent 99ad4e871e
commit 43966a6c6b
25 changed files with 160 additions and 54 deletions

View File

@@ -1,5 +1,6 @@
import { Text, type Workspace } from '@blocksuite/affine/store';
import { MarkdownTransformer } from '@blocksuite/affine/widgets/linked-doc';
import { getTestStoreManager } from '@blocksuite/integration-test/store';
import type { InitFn } from './utils';
@@ -44,6 +45,7 @@ export const synced: InitFn = (collection: Workspace, id: string) => {
doc: docSyncedPage,
blockId: noteId,
markdown: syncedDocMarkdown,
extensions: getTestStoreManager().get('store'),
}).catch(console.error);
});
@@ -63,6 +65,7 @@ export const synced: InitFn = (collection: Workspace, id: string) => {
doc: docSyncedEdgeless,
blockId: noteId,
markdown: syncedDocMarkdown,
extensions: getTestStoreManager().get('store'),
}).catch(console.error);
});
@@ -80,6 +83,7 @@ export const synced: InitFn = (collection: Workspace, id: string) => {
doc: docMain,
blockId: noteId,
markdown: syncedDocMarkdown,
extensions: getTestStoreManager().get('store'),
})
.then(() => {
// Add synced block - self