Hello,
I’d like to understand if there is a API or any way to access state information from an anonymously (password protected) shared prototype.
For example, lets say I’m trying to prototype an IOT environment where a light turns on when the user successfully navigates to a specific prototype frame.
I can imagine two ways to do this:
- Wrapping the prototype in an iframe and being notified through the window variable on the current frame_id. (I know it would require storing a mapping of frame_ids, which is fine).
- Inserting some custom javascript code into the prototype frame that can trigger when the frame is hit.
Does anyone know if this is possible or if there are any plans for this? Offering even basic extendability of the prototype can really increase the usefulness of Figma Prototypes.
Thanks!