mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 19:02:23 +08:00
chore: merge blocksuite source code (#9213)
This commit is contained in:
56
blocksuite/blocks/src/schemas.ts
Normal file
56
blocksuite/blocks/src/schemas.ts
Normal file
@@ -0,0 +1,56 @@
|
||||
// Import models only, the bundled file should not include anything else.
|
||||
import { SurfaceBlockSchema } from '@blocksuite/affine-block-surface';
|
||||
import {
|
||||
AttachmentBlockSchema,
|
||||
BookmarkBlockSchema,
|
||||
CodeBlockSchema,
|
||||
DatabaseBlockSchema,
|
||||
DividerBlockSchema,
|
||||
EdgelessTextBlockSchema,
|
||||
EmbedFigmaBlockSchema,
|
||||
EmbedGithubBlockSchema,
|
||||
EmbedHtmlBlockSchema,
|
||||
EmbedLinkedDocBlockSchema,
|
||||
EmbedLoomBlockSchema,
|
||||
EmbedSyncedDocBlockSchema,
|
||||
EmbedYoutubeBlockSchema,
|
||||
FrameBlockSchema,
|
||||
ImageBlockSchema,
|
||||
LatexBlockSchema,
|
||||
ListBlockSchema,
|
||||
NoteBlockSchema,
|
||||
ParagraphBlockSchema,
|
||||
RootBlockSchema,
|
||||
SurfaceRefBlockSchema,
|
||||
} from '@blocksuite/affine-model';
|
||||
import type { BlockSchema } from '@blocksuite/store';
|
||||
import type { z } from 'zod';
|
||||
|
||||
import { DataViewBlockSchema } from './data-view-block/data-view-model.js';
|
||||
|
||||
/** 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,
|
||||
];
|
||||
Reference in New Issue
Block a user