mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 09:06:19 +08:00
fad49bb070
AudioMedia entity for loading & controlling a single audio media AudioMediaManagerService: Global audio state synchronization across tabs AudioAttachmentService + AudioAttachmentBlock for manipulating AttachmentBlock in affine - e.g., filling transcription (using mock endpoint for now) Added AudioBlock + AudioPlayer for rendering audio block in affine (new transcription block whose renderer is provided in affine) fix AF-2292 fix AF-2337
62 lines
1.6 KiB
TypeScript
62 lines
1.6 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,
|
|
TranscriptionBlockSchema,
|
|
} 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,
|
|
TranscriptionBlockSchema,
|
|
];
|