mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 21:48:48 +08:00
17bf75e843
Closes: [BS-2216](https://linear.app/affine-design/issue/BS-2216/remove-global-types-in-command)
25 lines
820 B
TypeScript
25 lines
820 B
TypeScript
import { BookmarkBlockComponent } from './bookmark-block';
|
|
import { BookmarkEdgelessBlockComponent } from './bookmark-edgeless-block';
|
|
import { BookmarkCard } from './components/bookmark-card';
|
|
import {
|
|
EmbedCardCreateModal,
|
|
EmbedCardEditCaptionEditModal,
|
|
EmbedCardEditModal,
|
|
} from './components/embed-card-modal';
|
|
|
|
export function effects() {
|
|
customElements.define(
|
|
'affine-edgeless-bookmark',
|
|
BookmarkEdgelessBlockComponent
|
|
);
|
|
customElements.define('affine-bookmark', BookmarkBlockComponent);
|
|
customElements.define('bookmark-card', BookmarkCard);
|
|
|
|
customElements.define('embed-card-create-modal', EmbedCardCreateModal);
|
|
customElements.define('embed-card-edit-modal', EmbedCardEditModal);
|
|
customElements.define(
|
|
'embed-card-caption-edit-modal',
|
|
EmbedCardEditCaptionEditModal
|
|
);
|
|
}
|