Hey @TheThisThat ,
The accepted solution here didn’t really seem to clear things up, so I did a little digging myself.
This article states:
We’ll also use the block.shopify_attributes to add data attributes to the element. The theme editor’s JavaScript API uses a block’s shopify_attributes to identify blocks and listen for events.