refactor(editor): move frame toolbar config and components to its package (#11084)

This commit is contained in:
Saul-Mirone
2025-03-21 16:47:40 +00:00
parent f5fb5c848e
commit c1d426d8e9
27 changed files with 82 additions and 53 deletions
@@ -1,5 +1,16 @@
import { EdgelessFrameMenu, EdgelessFrameToolButton } from './edgeless-toolbar';
import { FrameBlockComponent } from './frame-block';
export function effects() {
customElements.define('affine-frame', FrameBlockComponent);
customElements.define('edgeless-frame-tool-button', EdgelessFrameToolButton);
customElements.define('edgeless-frame-menu', EdgelessFrameMenu);
}
declare global {
interface HTMLElementTagNameMap {
'affine-frame': FrameBlockComponent;
'edgeless-frame-tool-button': EdgelessFrameToolButton;
'edgeless-frame-menu': EdgelessFrameMenu;
}
}