mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-19 07:17:00 +08:00
refactor(editor): reduce dependency to doc collection (#9492)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user