Files
AFFiNE-Mirror/blocksuite/affine/all/src/schemas.ts
T
Saul-Mirone d7b1819149 refactor(editor): move transcription block model to ai (#12010)
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **Refactor**
	- Updated and reorganized import paths for transcription block models and types to improve module structure and maintainability.
- **Chores**
	- Removed deprecated transcription block schema and related exports from core libraries.
	- Registered transcription block schema directly within the workspace schema for improved schema management.
- **Bug Fixes**
	- Ensured consistent registration and availability of transcription block features across relevant modules.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-04-27 13:13:07 +00:00

60 lines
1.5 KiB
TypeScript

// 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,
];