import { ComponentPlugin, ComponentPluginFactory } from '@teleporthq/teleport-types' import * as types from '@babel/types' import { findChatStyleTemplate, isChatComponent } from './style-template-utils' /** * Styles the assistant's clickable answer chips by STATE. * * A chip is an ordinary UIDL button, so its base look (padding, radius, * border) comes through node styles as usual. What node styles cannot express * is "how does it look once it has been picked, or once the conversation has * moved past it" — that lives in a `data-option-state` attribute the chat's own * scripts write, so the rules have to be appended to the component's * `