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

@@ -14,6 +14,7 @@ import {
IndexedDBBlobSource,
IndexedDBDocSource,
} from '@blocksuite/sync';
import * as Y from 'yjs';
import { WebSocketAwarenessSource } from '../../_common/sync/websocket/awareness';
import { WebSocketDocSource } from '../../_common/sync/websocket/doc';
@@ -93,7 +94,7 @@ export async function createDefaultDocCollection() {
delete: (id: string) => collection.removeDoc(id),
},
});
window.Y = DocCollection.Y;
window.Y = Y;
return collection;
}