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

Remove peer dependency on React #246

Open bram-pkg opened 2 weeks ago

bram-pkg commented 2 weeks ago

Affected design types

Describe the bug

Storybook 8 dropped the peer dependency on React, this package should do the same

➤ YN0002: │ root-workspace-0b6124@workspace:. doesn't provide react (p63559), requested by @storybook/addon-designs and other dependencies.
➤ YN0002: │ root-workspace-0b6124@workspace:. doesn't provide react-dom (p3e1e2), requested by @storybook/addon-designs and other dependencies.

How to reproduce the bug?

Start a project using Yarn 4 and install Storybook + Storybook Designs Addon and you will see a warning about missing peer dependencies, even though react has not needed to be installed since Storybook 8.

Expected behaviour

This package should not mark React as a peer dependency.

Environment

Affected versions

8.0.3

Storybook versions

8.2.9