mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 05:47:09 +08:00
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 -->
This commit is contained in:
@@ -8,10 +8,7 @@ import {
|
||||
type StoreExtensionContext,
|
||||
StoreExtensionProvider,
|
||||
} from '@blocksuite/affine-ext-loader';
|
||||
import {
|
||||
RootBlockSchemaExtension,
|
||||
TranscriptionBlockSchemaExtension,
|
||||
} from '@blocksuite/affine-model';
|
||||
import { RootBlockSchemaExtension } from '@blocksuite/affine-model';
|
||||
import {
|
||||
HtmlAdapterFactoryExtension,
|
||||
ImageProxyService,
|
||||
@@ -69,7 +66,6 @@ function getNotionHtmlAdapterExtensions(): ExtensionType[] {
|
||||
|
||||
const MigratingStoreExtensions: ExtensionType[] = [
|
||||
RootBlockSchemaExtension,
|
||||
TranscriptionBlockSchemaExtension,
|
||||
|
||||
BlockSelectionExtension,
|
||||
TextSelectionExtension,
|
||||
|
||||
@@ -25,7 +25,6 @@ import {
|
||||
RootBlockSchema,
|
||||
SurfaceRefBlockSchema,
|
||||
TableBlockSchema,
|
||||
TranscriptionBlockSchema,
|
||||
} from '@blocksuite/affine-model';
|
||||
import type { BlockSchema } from '@blocksuite/store';
|
||||
import type { z } from 'zod';
|
||||
@@ -57,5 +56,4 @@ export const AffineSchemas: z.infer<typeof BlockSchema>[] = [
|
||||
LatexBlockSchema,
|
||||
TableBlockSchema,
|
||||
CalloutBlockSchema,
|
||||
TranscriptionBlockSchema,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user