mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 10:06:17 +08:00
23 lines
852 B
TypeScript
23 lines
852 B
TypeScript
import { SurfaceRefGenericBlockPortal } from './portal/generic-block.js';
|
|
import { SurfaceRefNotePortal } from './portal/note.js';
|
|
import { SurfaceRefBlockComponent } from './surface-ref-block.js';
|
|
import { EdgelessSurfaceRefBlockComponent } from './surface-ref-block-edgeless.js';
|
|
import {
|
|
AFFINE_SURFACE_REF_TOOLBAR,
|
|
AffineSurfaceRefToolbar,
|
|
} from './widgets/surface-ref-toolbar.js';
|
|
|
|
export function effects() {
|
|
customElements.define(
|
|
'surface-ref-generic-block-portal',
|
|
SurfaceRefGenericBlockPortal
|
|
);
|
|
customElements.define('affine-surface-ref', SurfaceRefBlockComponent);
|
|
customElements.define(
|
|
'affine-edgeless-surface-ref',
|
|
EdgelessSurfaceRefBlockComponent
|
|
);
|
|
customElements.define('surface-ref-note-portal', SurfaceRefNotePortal);
|
|
customElements.define(AFFINE_SURFACE_REF_TOOLBAR, AffineSurfaceRefToolbar);
|
|
}
|