export function notify ( event , payload ) ; export function notify ( event , payload ) { console . log ( '[preview]' , event , payload ) ; window . dispatchEvent ( new CustomEvent ( 'preview:notify' , { detail : { event , payload } } ) ) ; }