UNPKG

@rocket.chat/apps-engine

Version:

The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.

20 lines (19 loc) 612 B
import type { ButtonElement, LayoutBlock, TextObject } from '@rocket.chat/ui-kit'; import type { IBlock, IButtonElement, ITextObject } from './blocks'; export declare enum UIKitSurfaceType { MODAL = "modal", HOME = "home", CONTEXTUAL_BAR = "contextualBar" } export interface IUIKitSurface { appId: string; id: string; type: UIKitSurfaceType; title: ITextObject | TextObject; blocks: Array<IBlock | LayoutBlock>; close?: IButtonElement | ButtonElement; submit?: IButtonElement | ButtonElement; state?: object; clearOnClose?: boolean; notifyOnClose?: boolean; }