InDesign UXP support for panel show/hide events?

,

I’m in the process of converting an InDesign Extendscript/ScritpUI tool over to an Adobe UXP PlugIn for InDesign, but I’ve hit a brick wall when it comes to lifecycle events.

I cannot seem to get lifecycle events to fire for show/hide of the my new panel. I’ve tried many different variants of the entrypoints.setup method, but the only events that fire are at InDesign init when the plugin loads: I get the “create” event, then one (and only one) “show” event for the initial panel display. After that, I can’t get the “show” or “hide” events to trigger whe the panel is opened and closed.

After much searching and reading of other code examples, I’ve tried switching to “addEventListener” using the “uxpcommand” event and the “uxpshowpanel” eventID, but it doesn’t fire for anything at all.

Does anyone have any insight into whether Adobe InDesign supports these items? When searching online I’ve seen many references to “it’s coming soon” from the Adobe community, but most of those posts are from 2020 to 2022, i.e several years ago.

The create/destroy and show/hide lifecycle events are kinda core to any plugin and I’m surprised that there does not seem to be a supported way of using them. If anyone has any insight, samples, or solutions, I’d really appreciate the guidance…thanks in advance!