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

Change ArgsTable API to work with of={storyRef} and isolate channel #18720

Conversation

tmeasday
Copy link
Member

@tmeasday tmeasday commented Jul 15, 2022

Telescoping on #18708

Screen.Recording.2022-07-15.at.5.02.38.pm.mov

What I did

  • Change <ArgsTable> to allow of={storyRef} (which clashes with of={Component} but this will work OK. We will split it into <Controls> and <Props> soon!.

  • Ensure events in external docs are isolated to a local channel for the ExternalDocsContext. In theory that means you can have two isolated ones 🤷

tmeasday added 4 commits July 15, 2022 12:12
cc @ndelangen this fixes annoying errors like:

```
error - ../../lib/blocks/dist/index.js
Module build failed: Error: ENOENT: no such file or directory, open '/Users/tom/GitHub/storybookjs/storybook/lib/blocks/dist/index.js'
```
@nx-cloud
Copy link

nx-cloud bot commented Jul 15, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 0121716. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@tmeasday tmeasday changed the title WIP Change ArgsTable API to work with of={storyRef} and isolate channel Jul 15, 2022
@tmeasday tmeasday marked this pull request as ready for review July 15, 2022 07:02
@tmeasday
Copy link
Member Author

Closing in favour of #18730 for now

@tmeasday tmeasday closed this Jul 18, 2022
@stof stof deleted the tom/sb-472-update-external-docs-to-use-argstable branch August 31, 2022 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant