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

View File

@@ -1,3 +1,4 @@
export * from './config';
export * from './icons';
export * from './senior-tool';
export * from './shape-menu-config';

View File

@@ -0,0 +1,15 @@
import { SeniorToolExtension } from '@blocksuite/affine-widget-edgeless-toolbar';
import { html } from 'lit';
export const shapeSeniorTool = SeniorToolExtension(
'shape',
({ block, toolbarContainer }) => {
return {
name: 'Shape',
content: html`<edgeless-shape-tool-button
.edgeless=${block}
.toolbarContainer=${toolbarContainer}
></edgeless-shape-tool-button>`,
};
}
);