API reference
@salmonui/chat/smart-paste
8 exported symbols: 1 function, 6 interfaces and 1 type. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/chat/smart-paste';Functions
useSmartPasteSmart paste for the form (or any container) behind formRef: pair it with any Button (onClick={() => paste()}, aria-busy={pending}).
Interfaces
SmartPasteSmartPasteCustomFieldA field the hook cannot reach as a native control (for example a Salmon Select): described and filled by the application.SmartPasteFieldWhat the adapter learns about one field.SmartPasteOptionsSmartPasteRequestWhat the adapter receives: the pasted text and the field descriptors, never other page data.SmartPasteResultField names filled, and the described fields the answer did not fill.
Types
SmartPasteAdapterReturns a JSON object keyed by field name, or JSON text of one.