// actions sent by frame to host import { ActionType, createAction } from "typesafe-actions"; export const updateHeight = createAction("UPDATE_HEIGHT")(); export const obfuscateField = createAction("OBFUSCATE")(); export const updateTemplates = createAction("UPDATE_TEMPLATES")>(); export const timeout = createAction("TIMEOUT")(); export type FrameActions = ActionType< typeof updateHeight | typeof obfuscateField | typeof updateTemplates | typeof timeout >; export type FrameActionsHandler = (action: FrameActions) => void; /** * @deprecated use FrameActions */ export type LegacyFrameActions = { updateHeight: (height: number) => void; updateTemplates: (templates: Array<{ id: string; label: string; type: string }>) => void; handleObfuscation: (field: string) => void; };