BuilderIO / figma-html

Builder.io for Figma: AI generation, export to code, import from web
https://www.figma.com/community/plugin/747985167520967365
MIT License
3.06k stars 283 forks source link

Does not import any images, nor canvases behind auth walls #131

Open valioDOTch opened 1 year ago

valioDOTch commented 1 year ago

Describe the bug I download a .json file via the Chrome extension from a page behind an auth wall. When I imported it to Figma all the images and canvas data on the web page is displayed as a grey box.

Expected behavior When the extension detects that images are behind an auth wall, they are integrated into the JSON file (e.g. as base64 data URLs).

Screenshots If applicable, add screenshots to help explain your problem. image image (no, the image data isn't available "behind" that upload button)

Additional context I took a look at the JSON. The image URLs are noted therein, but if they're behind an auth wall, that's obviously not making any sense. Inline SVGs were imported though. I wouldn't mind if the plugin wouldn't do any checks, but would just have have an option which includes all images as base64 data URLs without additional network fetches (they're probably not as simple to implement).

iamnafets commented 1 year ago

This is a great idea!