import { createButtonObserver , getUidsFromButton } from "roam-client" ; import { render } from "../components/Repl" ; import { runExtension } from "../entry-helpers" ; runExtension ( "repl" , ( ) => { createButtonObserver ( { shortcut : "repl" , attribute : "repl-editor" , render : ( b ) => { const { blockUid } = getUidsFromButton ( b ) ; b . parentElement . onmousedown = ( e ) => e . stopPropagation ( ) ; render ( { blockUid , p : b . parentElement } ) ; } , } ) ; } ) ;