Bridge
import { accept, script, web } from '@hanzo/ui/agents'
No examples yet.
Types
export interface Rect {top: numberleft: numberwidth: numberheight: number}
export interface Picked {selector: stringtag: stringid?: stringtext?: string/** The element's outer HTML, capped. Shown as text, never rendered. */html: string}
export type FrameEvent =| { type: 'preview:ready' }| { type: 'preview:hover'; selector: string | null; rect?: Rect; tag?: string }| { type: 'preview:select'; info: Picked }| { type: 'preview:navigate'; path: string }| { type: 'preview:console'; level: Level; text: string }
export type FrameCommand =| { type: 'preview:editable'; active: boolean }| { type: 'preview:highlight'; selector: string | null }
Exports
acceptscriptwebtype FrameCommandtype FrameEventtype Pickedtype Rect