add getMenuState API

Needed for addressing adobe-photoshop/generator-assets#108