I want to show a meta box on the post edit screen, that contains a list of the images attached to the post. I need the meta box to work for new posts as they are being created. It should update dynamically when images are added to or removed from the post ( when images are added/removed as featured image, or using the "insert media" picker as single image or as part of a gallery in the content) .
I need the metabox to 'see' these events and update accordingly, before the post is published or even (manually) saved as a draft.
Is this possible?
If it is, I'd be happy to know (roughly) how to achieve it.
Links to plugins already doing this, or an explanation of the overall way of doing it.