I am looking for a way to control the app block visibility through the API.
Ex: In our app, we have different modules line Review, Loyalty and for each module have created multiple app blocks which appear for different templates. Our app has the ability to control the module status, Client can enable or disable these modules.
I want if any module is disabled, then all its related blocks should get hide from the theme customization editor.
I have gone through the documentation in detail but did not found anyway.
Does anyone have done similar or is there any way to do so?