mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
20 lines
551 B
TypeScript
20 lines
551 B
TypeScript
import { AttachmentBlockComponent } from './attachment-block';
|
|
import { AttachmentEdgelessBlockComponent } from './attachment-edgeless-block';
|
|
import type { AttachmentBlockService } from './attachment-service';
|
|
|
|
export function effects() {
|
|
customElements.define(
|
|
'affine-edgeless-attachment',
|
|
AttachmentEdgelessBlockComponent
|
|
);
|
|
customElements.define('affine-attachment', AttachmentBlockComponent);
|
|
}
|
|
|
|
declare global {
|
|
namespace BlockSuite {
|
|
interface BlockServices {
|
|
'affine:attachment': AttachmentBlockService;
|
|
}
|
|
}
|
|
}
|