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,6 @@
import type { MenuConfig } from '@blocksuite/affine-components/context-menu';
import type { BlockComponent } from '@blocksuite/block-std';
import type { GfxController } from '@blocksuite/block-std/gfx';
import type { TemplateResult } from 'lit';
export type MenuItem<T> = {
@@ -15,3 +18,11 @@ export type Menu<T> = {
currentValue: T;
onPick: (value: T) => void;
};
/**
* Helper function to build a menu configuration for a tool in dense mode
*/
export type DenseMenuBuilder = (
edgeless: BlockComponent,
gfx: GfxController
) => MenuConfig;