UNPKG

@imgly/plugin-ai-generation-web

Version:

AI generation plugin for the CE.SDK editor

25 lines (24 loc) 761 B
import { Middleware } from './middleware'; import { Output } from '../core/provider'; /** * Highlights the blocks while the middleware is running. * * - Sets the blocks to always on top * - Disables clipping of the parent of the blocks so it is visible */ declare function highlightBlocksMiddleware<I, O extends Output>({ alwaysOnTop, disableClipping }: { /** * Until disposed, should the block be always on top to be visible? * * @default true */ alwaysOnTop?: boolean; /** * If true, the clipping of the parent of the affected blocks will be * temporarily disabled until unlocked. * * @default true */ disableClipping?: boolean; }): Middleware<I, O>; export default highlightBlocksMiddleware;