storybookjs / addon-kit

Everything you need to build a Storybook addon

Home Page:https://storybook.js.org/docs/react/addons/writing-addons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Deprecated APIs and types are being used

JReinhold opened this issue · comments

Describe the bug

The APIs used to register the manager-specific parts of the addon is deprecated and using some properties that TypeScript says are wrong. I don't have the full picture of how wrong it actually is, or what the non-deprecated APIs to migrate to would be, but we should probably change it.

This is also in the documentation, so what ever we figure out we should remember to update the docs as well.

Screenshots and/or logs

These are screenshots from just opening manager.ts from this repo. https://github.com/storybookjs/addon-kit/blob/main/src/manager.ts

image

deprecated types import

image

Tool definition

image

Panel definition

image

Tab definition

image

@ndelangen will undeprecate this