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

@@ -3,6 +3,7 @@ import type { TestUtils } from '@blocksuite/blocks';
import type { AffineEditorContainer } from '@blocksuite/presets';
import type { BlockSchema, Doc, DocCollection, Job } from '@blocksuite/store';
import type { z } from 'zod';
import type * as Y from 'yjs';
declare global {
type HTMLTemplate = [
@@ -17,7 +18,7 @@ declare global {
collection: DocCollection;
blockSchemas: z.infer<typeof BlockSchema>[];
job: Job;
Y: typeof DocCollection.Y;
Y: typeof Y;
std: typeof std;
testUtils: TestUtils;
host: EditorHost;