UNPKG

@imgly/plugin-ai-generation-web

Version:

AI generation plugin for the CE.SDK editor

18 lines (17 loc) 597 B
import { Middleware } from './middleware'; import { Output } from '../core/provider'; /** * For a given edit mode and block ids, this middleware will * ensure that as long as these blocks are selected, the edit mode is * set to the given edit mode and cannot be changed. * * The use-case is to show only the generation canvas menu during * the generation process. */ declare function lockEditModeMiddleware<I, O extends Output>({ editMode }: { /** * The edit mode to lock the selection to. */ editMode: string; }): Middleware<I, O>; export default lockEditModeMiddleware;