Is there any documentation around the Component Publishing Protocol? #21382
Replies: 3 comments
-
Its discussed here abit: #12202 But doesn't really seem well documented. I also couldn't actually get it working with chromatic which is annoying |
Beta Was this translation helpful? Give feedback.
-
Over the weekend I did actually try to "reverse engineer the spec" and I did managed to get it working where:
But when I link to it from another Storybook, composition fails - it manages to get a list of stories, and looking in network tab it fetched Again looking in the network tab its not actually calling the right URL, due to some regex issues in the Storybook code - happy to dive into here, or open a separate issue |
Beta Was this translation helpful? Give feedback.
-
In https://storybook.js.org/docs/react/sharing/publish-storybook, it mentions the Component Publishing Protocol. I see Chromatic supports CPP level 1. If I didn't want to use Chromatic, is there an API spec for the CPP level 1 required APIs? I see "support for /metadata.json" but there's no docs on what "metadata.json" is
Beta Was this translation helpful? Give feedback.
All reactions