import { append , createFragment , setupSyntheticEvent } from 'stage1' ; import { BookmarkBar } from './components/BookmarkBar' ; import { Menu } from './components/Menu' ; import { Search } from './components/Search' ; import { handleClick } from './utils' ; declare global { interface HTMLElement { /** `stage1` synthetic click event handler. */ __click ( event ) : void ; } } const frag = createFragment ( ) ; append ( Search ( ) , frag ) ; append ( BookmarkBar ( ) , frag ) ; append ( Menu ( ) , frag ) ; append ( frag , document . body ) ; document . body . __click = handleClick ; setupSyntheticEvent ( 'click' ) ;