가입 양식이 열리거나 닫힐 때 JS 코드를 실행하는 방법?

Is it possible to monitor this event (open and closing of the signup modal) via the plugin API and fire some other JS code?

Is there a boilerplate code to monitor all events fired by the plugin API and log via the console?