JS function needed

We’re creating hype decks where we want to insert other hype decks. We’re essentially creating a simplified ad server.

We need a JS function that can be called from inside the flow of a HYPE deck - typically at the transition point between panels or at a swipe. This should load a new deck, display it, then return to the transition point just after the call (the next slide in the deck)

We also need JS functions to call back to logging for both the original and inserted decks displayed as well as other events inside panels in the decks (to build statistics for delivery of cards and promotions)