import { ActionType } from '../../_contract-src/action-payloads/action-type'; import { ResizeContainerPayload } from '../../_contract-src/action-payloads/resize-container/resize-container-payload'; import { postToHost } from './post-to-host'; /** * Manually sets the height of the iframe container in the Struct PIM host application. * Only supported for extension point types: Tab, Section, Property, and SidebarWidget. * For other types, the host will reject the action. * * For automatic height adjustment, use {@link enableAutoResize} instead. * * @example * ```ts * struct.actions.resizeContainer({ height: 600 }); * ``` */ export function resizeContainer(params: ResizeContainerPayload) { postToHost({ actionType: ActionType.ResizeContainer, payload: params }); }