mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 01:49:51 +08:00
652d42ba1e
Closes: BS-3254
18 lines
585 B
TypeScript
18 lines
585 B
TypeScript
import {
|
|
type StoreExtensionContext,
|
|
StoreExtensionProvider,
|
|
} from '@blocksuite/affine-ext-loader';
|
|
import { AttachmentBlockSchemaExtension } from '@blocksuite/affine-model';
|
|
|
|
import { AttachmentBlockNotionHtmlAdapterExtension } from './adapters/notion-html';
|
|
|
|
export class AttachmentStoreExtension extends StoreExtensionProvider {
|
|
override name = 'affine-attachment-block';
|
|
|
|
override setup(context: StoreExtensionContext) {
|
|
super.setup(context);
|
|
context.register(AttachmentBlockSchemaExtension);
|
|
context.register(AttachmentBlockNotionHtmlAdapterExtension);
|
|
}
|
|
}
|