Hi Sascha,
I think the event was delete in the process of migrating from jQuery to React/Redux. For now, you would have to change the source file.
For example, you could add something like this to openElement and closeElement functions inside exposedActions.js,
const event = new CustomEvent('visibilityChanged', { detail: { dataElement, isVisible: true } });
document.dispatchEvent(event);
and listen to the event from the config file:
document.addEventListener('visibilityChanged', e => {
const { dataElement, isVisible } = e.detail;
console.log(dataElement, isVisible);
});
or from outside of the iframe:
document.querySelector('iframe').contentDocument.addEventListener('visibilityChanged', e => {
const { dataElement, isVisible } = e.detail;
console.log(dataElement, isVisible);
});