storybookjs / addon-designs

A Storybook addon that embeds Figma, websites, or images in the addon panel.
https://storybookjs.github.io/addon-designs
MIT License
869 stars 73 forks source link

Update @figspec/react to v2.0.0? #245

Open drjonnicholson opened 2 months ago

drjonnicholson commented 2 months ago

Is your feature request related to a problem? Please describe. Are there plans to update @figspec/react to v2.0.0?

Describe the solution you'd like Update @figspec/react to v2.0.0

Describe alternatives you've considered Overriding the version locally, but looks like there's work needed in this package to make it work (successful API calls seen in network tab for files / images endpoints, but below error seen on screen) image

Design types

Additional context N/A

adrianbruntonsagecom commented 1 month ago

Just to add - we're using lit, and I believe the version of @figspec/react that's currently used is causing this warning to appear in our output:

Multiple versions of Lit loaded. Loading multiple versions is not recommended. See https://lit.dev/msg/multiple-versions for more information.

Running npm ls lit gives this dependency tree:

├─┬ @storybook/addon-designs@8.0.3
│ └─┬ @figspec/react@1.0.3
│   └─┬ @figspec/components@1.0.3
│     └── lit@2.8.0

Unless we downgrade the version of lit we use within our project, I expect the only way to remove the warning we're seeing is to have this @figspec/react updated within this project (I don't think it's using lit anymore).