refactor(editor): remove blocks package (#10708)

This commit is contained in:
Saul-Mirone
2025-03-09 05:44:26 +00:00
parent 0766a2d9ae
commit 12bc142809
277 changed files with 904 additions and 1060 deletions
+59
View File
@@ -0,0 +1,59 @@
// Import models only, the bundled file should not include anything else.
import { DataViewBlockSchema } from '@blocksuite/affine-block-data-view';
import { SurfaceBlockSchema } from '@blocksuite/affine-block-surface';
import {
AttachmentBlockSchema,
BookmarkBlockSchema,
CalloutBlockSchema,
CodeBlockSchema,
DatabaseBlockSchema,
DividerBlockSchema,
EdgelessTextBlockSchema,
EmbedFigmaBlockSchema,
EmbedGithubBlockSchema,
EmbedHtmlBlockSchema,
EmbedLinkedDocBlockSchema,
EmbedLoomBlockSchema,
EmbedSyncedDocBlockSchema,
EmbedYoutubeBlockSchema,
FrameBlockSchema,
ImageBlockSchema,
LatexBlockSchema,
ListBlockSchema,
NoteBlockSchema,
ParagraphBlockSchema,
RootBlockSchema,
SurfaceRefBlockSchema,
TableBlockSchema,
} from '@blocksuite/affine-model';
import type { BlockSchema } from '@blocksuite/store';
import type { z } from 'zod';
/** Built-in first party block models built for affine */
export const AffineSchemas: z.infer<typeof BlockSchema>[] = [
CodeBlockSchema,
ParagraphBlockSchema,
RootBlockSchema,
ListBlockSchema,
NoteBlockSchema,
DividerBlockSchema,
ImageBlockSchema,
SurfaceBlockSchema,
BookmarkBlockSchema,
FrameBlockSchema,
DatabaseBlockSchema,
SurfaceRefBlockSchema,
DataViewBlockSchema,
AttachmentBlockSchema,
EmbedYoutubeBlockSchema,
EmbedFigmaBlockSchema,
EmbedGithubBlockSchema,
EmbedHtmlBlockSchema,
EmbedLinkedDocBlockSchema,
EmbedSyncedDocBlockSchema,
EmbedLoomBlockSchema,
EdgelessTextBlockSchema,
LatexBlockSchema,
TableBlockSchema,
CalloutBlockSchema,
];