chore: merge blocksuite source code (#9213)
This commit is contained in:
1 parent
2c9ef916f4
commit
30200ff86d
2031 files changed
+238888
-229
No files matched your search
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
import type { EditorHost } from '@blocksuite/block-std';
|
||||
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';
|
||||
|
||||
declare global {
|
||||
type HTMLTemplate = [
|
||||
string,
|
||||
Record<string, unknown>,
|
||||
...(HTMLTemplate | string)[],
|
||||
];
|
||||
|
||||
interface Window {
|
||||
editor: AffineEditorContainer;
|
||||
doc: Doc;
|
||||
collection: DocCollection;
|
||||
blockSchemas: z.infer<typeof BlockSchema>[];
|
||||
job: Job;
|
||||
Y: typeof DocCollection.Y;
|
||||
std: typeof std;
|
||||
testUtils: TestUtils;
|
||||
host: EditorHost;
|
||||
testWorker: Worker;
|
||||
|
||||
wsProvider: ReturnType<typeof setupBroadcastProvider>;
|
||||
bcProvider: ReturnType<typeof setupBroadcastProvider>;
|
||||
|
||||
devtoolsFormatters: {
|
||||
header: (obj: unknown, config: unknown) => null | HTMLTemplate;
|
||||
hasBody: (obj: unknown, config: unknown) => boolean | null;
|
||||
body: (obj: unknown, config: unknown) => null | HTMLTemplate;
|
||||
}[];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user