refactor(editor): move surface-ref toolbar to its block folder (#10938)

This commit is contained in:
L-Sun
2025-03-19 10:54:22 +00:00
parent afc4158f47
commit 9211fbf68c
9 changed files with 27 additions and 15 deletions
@@ -2,6 +2,10 @@ 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(
@@ -14,4 +18,5 @@ export function effects() {
EdgelessSurfaceRefBlockComponent
);
customElements.define('surface-ref-note-portal', SurfaceRefNotePortal);
customElements.define(AFFINE_SURFACE_REF_TOOLBAR, AffineSurfaceRefToolbar);
}