-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocks: Story stories #19805
Blocks: Story stories #19805
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job
// TODO: types suggest that <Story /> can take ProjectAnnotations, but it doesn't seem to do anything with them | ||
// Such as parameters, decorators, etc. | ||
// they seem to be taken from the story itself, and not from the <Story /> call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably for portable docs, and wouldn't apply in non-external. We should probably talk this through.
…torybook into jeppe/sb-898-blocks-story
…torybook into jeppe/sb-898-blocks-story
@@ -1,6 +1,7 @@ | |||
{ | |||
"extends": "../../tsconfig.json", | |||
"compilerOptions": { | |||
"module": "esnext", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ndelangen I changed this so TS wouldn't complain that I was referencing import.meta.env
, do you know if changing this will break something somewhere else? Or does tsup
ignore this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is completely ignored 👍
Telescoping on top of #19804
This PR adds stories for the Story block, by using the Boolean Control as an example - therefore also adding a few stories to that one.
A major find from this work is that the Story block doesn't actually support overriding any annotations with props, like parameters or args - even though the typings says it does. This is an ommision that will be fixed in another PR.