Skip to content
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

API: Export the controlOrMetaKey fn from manager-api #19972

Merged
merged 3 commits into from
Nov 28, 2022

Conversation

winkerVSbecks
Copy link
Contributor

What I did

export the controlOrMetaKey functions from manager-api. It's used by @storybook/components-marketing. Previously we could import from @storybook/api/shortcuts however that is no longer the case.

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@winkerVSbecks winkerVSbecks added the maintenance User-facing maintenance tasks label Nov 25, 2022
Copy link
Member

@yannbf yannbf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch @winkerVSbecks !

@shilman shilman changed the title export the controlOrMetaKey fn from manager-api API: Export the controlOrMetaKey fn from manager-api Nov 25, 2022
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@winkerVSbecks @ndelangen why don't we just export * from './lib/shortcut'? Isn't it weird to export one of these helper functions and not the others?

@winkerVSbecks
Copy link
Contributor Author

@shilman good point. I'll update

@yannbf yannbf merged commit 6127de5 into next Nov 28, 2022
@yannbf yannbf deleted the export-controlOrMetaKey branch November 28, 2022 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants