refactor(editor): reduce dependency to doc collection (#9492)

This commit is contained in:
Saul-Mirone
2025-01-03 01:59:25 +00:00
parent eb15b3cb39
commit 8b6c81f76d
70 changed files with 185 additions and 210 deletions

View File

@@ -16,6 +16,7 @@ import {
IndexedDBBlobSource,
MemoryBlobSource,
} from '@blocksuite/sync';
import * as Y from 'yjs';
import { MockServerBlobSource } from '../../_common/sync/blob/mock-server.js';
import type { InitFn } from '../data/utils.js';
@@ -92,7 +93,7 @@ export function createStarterDocCollection() {
delete: (id: string) => collection.removeDoc(id),
},
});
window.Y = DocCollection.Y;
window.Y = Y;
window.testUtils = new TestUtils();
return collection;