28636 Commits

Author SHA1 Message Date
Michael Shilman
afdf88df3c Update root, peer deps to 6.0.0-rc.4 2020-07-15 20:30:23 +08:00
Michael Shilman
6b74838ee3 6.0.0-rc.4 changelog 2020-07-15 20:30:00 +08:00
Michael Shilman
64c3bf273e
Merge pull request #11558 from storybookjs/add-argTypes-to-context
Core: Add `argTypes` to `StoryContext`
2020-07-15 19:43:53 +08:00
Tom Coleman
ae5fef075d Add argTypes to StoryContext 2020-07-15 21:20:56 +10:00
Michael Shilman
8231601af8
Merge pull request #11556 from storybookjs/fix/meta-subcomponents-optional
Addon-docs: Make Meta block subcomponents optional
2020-07-15 18:49:57 +08:00
Michael Shilman
339c98ae7c
Merge pull request #11557 from storybookjs/yannbf-patch-2
docs(MIGRATION): update hierarchy separator section
2020-07-15 18:39:05 +08:00
Yann Braga
55952dc132
docs(MIGRATION): update hierarchy separator section
Updated the command to work in any scenario and added a note about mdx.
2020-07-15 12:36:47 +02:00
Michael Shilman
4fc6f7174c Addon-docs: Make Meta block subcomponents optional 2020-07-15 18:31:28 +08:00
Norbert de Langen
4e8013d3c5
Merge pull request #11502 from kendallgassner/remove-zIndex-on-action-bar
remove z-index on ActionBar
2020-07-15 11:12:20 +02:00
Michael Shilman
50367f9fa9
Merge pull request #11342 from storybookjs/tech/improve-versions-management-in-cli
CLI: Improve Storybook packages version management
2020-07-15 14:53:53 +08:00
Michael Shilman
764328b934
Merge pull request #11537 from storybookjs/fix/rendering-docs-only-refd-stories
Composition: Fix docs-only story handling for composed storybooks
2020-07-15 13:38:26 +08:00
Michael Shilman
84e4692269
Merge pull request #11552 from storybookjs/fix/docs-controls-events
Addon-Docs: Fix ArgsTable controls on Docs tab
2020-07-15 13:14:51 +08:00
Michael Shilman
c687122902 ArgsTable: Fix addon-docs useArgs to match new event structure 2020-07-15 12:47:49 +08:00
Michael Shilman
f65ca37707
Merge pull request #11549 from nad182/patch-4
Update webpack config example to include module sass files
2020-07-15 11:59:51 +08:00
Michael Shilman
48ec07c62a
Update index.md 2020-07-15 11:59:38 +08:00
nad182
798a3c52be
Update webpack config example to include module sass files 2020-07-14 23:13:07 -04:00
Michael Shilman
6d48bdd4cd
Merge pull request #11519 from storybookjs/11487-add-args-reset
Core: Add args reset API
2020-07-15 10:14:52 +08:00
Tom Coleman
854b76fda8 More type fixes 2020-07-15 10:58:08 +10:00
Tom Coleman
5923454410 Type fixes 2020-07-15 10:57:33 +10:00
Michael Shilman
5bc86c298b Fix typescript settings doc 2020-07-15 00:11:44 +08:00
Norbert de Langen
d65af63cc2
FIX linting issue 2020-07-14 13:56:48 +02:00
Norbert de Langen
2fa2564633
move code responsible for restructuring docs-only stories to the rendering section, so refs get this behavior as well. 2020-07-14 13:19:53 +02:00
Tom Coleman
6a32e41c6b Fix issue with API signature. 2020-07-14 15:21:43 +10:00
Tom Coleman
3ff383d0e1 Change API from argName to argNames 2020-07-13 16:30:12 +10:00
Tom Coleman
0efdc41e7c Add useArgs to manager 2020-07-13 15:52:23 +10:00
Tom Coleman
623a8ba558 Updated client-side useArgs hook 2020-07-13 15:48:15 +10:00
Tom Coleman
ac4fdf1766 Added resetStoryArgs api 2020-07-13 15:38:59 +10:00
Gaëtan Maisse
3e133430c1
fix(cli): replace storybook by Storybook for consistency across all CLI logs 2020-07-12 16:16:33 +02:00
Gaëtan Maisse
0dabfc538e
test(e2e): add a simple test for viewport addon
CLI now generates project with `addon-essential` so it enable `addon-viewport` by default.
I added a simple test to check that viewport is properly loaded:
 - Go to Welcome Story
 - Click on Viewport button in the toolbar
 - Select "Small Mobile"
 - Check that Welcome Story is still displayed
2020-07-12 16:16:33 +02:00
Gaëtan Maisse
4364ee66a0
fix(cli): add some dependencies to be able to run addon-docs with Yarn 2 out of the box 2020-07-12 16:16:32 +02:00
Gaëtan Maisse
4664512aaf
fix(docs): use require.resolve to ensure Yarn PnP compatibility
`@babel/plugin-transform-react-jsx` should be resolved in the context
of `addon-docs` and not in the one of SB user projects (as it's done
for the others loaders too). The goal of that is to ensure we are using
a deps that is properly declared either as dep or peerDep
2020-07-11 11:50:34 +02:00
Gaëtan Maisse
ffb44dc3c6
refactor(cli): remove all Storybook packages listed as devDeps
These deps were only there to help to find out which version should be
installed when using the CLI. This is now done with a dedicated
`versions.json` file not theya re not needed in `package.json` anymore.

Bonus: it removes some `6.0.0-alpha.0` SB packages that were required by
`"@storybook/react-native": "6.0.0-alpha.0"`
2020-07-11 11:10:44 +02:00
Gaëtan Maisse
c0e00c600e
feat(cli): use versions.json to get SB packages versions
Previously it used `devDep` of `package.json`. It was working but doing
so all Storybook packages had to be added to `devDep`.

Moreover, as `@storybook/react-native` was not part of the monorepo
anymore it's version was stuck to `6.0.0-alpha.0` causing a download
of `6.0.0-alpha.0` SB packages when running `yarn install`.
2020-07-11 11:10:02 +02:00
Gaëtan Maisse
6ab9520716
chore(cli): refactor script to extract and save versions of all SB packages
The previous script was only extracting version for packages under `app`
directory. Now, all `@storybook` packages are processed and save with
their current version in the monorepo in `versions.json`. This file will
be use to find out which version of the packages should be installed
when running `sb init`.
2020-07-11 11:09:59 +02:00
Michael Shilman
badece6115 6.0.0-rc.3 next.json version file 2020-07-11 16:42:50 +08:00
Michael Shilman
bdd89f5964 Update version.ts to 6.0.0-rc.3 2020-07-11 16:36:34 +08:00
Michael Shilman
d7b8606ca3 v6.0.0-rc.3 v6.0.0-rc.3 2020-07-11 16:27:19 +08:00
Michael Shilman
d1aff70e67 Update root, peer deps to 6.0.0-rc.3 2020-07-11 16:21:51 +08:00
Michael Shilman
deff65ab42 6.0.0-rc.3 changelog 2020-07-11 16:21:29 +08:00
Michael Shilman
6c0e00522d
Merge pull request #11497 from storybookjs/fix/composition-empty-versions
Composition: Don't show versions dropdown if there are no versions
2020-07-11 16:20:06 +08:00
Michael Shilman
b738ad4436
Merge pull request #11503 from storybookjs/11019-fix-optional-undefined
Addon-docs: Remove undefined for optional values in Typescript Props
2020-07-11 16:19:07 +08:00
Michael Shilman
427babac21 Update package.json 2020-07-11 15:43:19 +08:00
Michael Shilman
9c72b3baae Fix dependencies 2020-07-11 15:17:48 +08:00
Michael Shilman
7b922e4e0a Addon-docs: Remove undefined from optional values in Typescript Props 2020-07-11 09:05:02 +08:00
Kendall_Gassner@intuit.com
451bd3ed78 remove z-index 2020-07-10 12:03:16 -06:00
Norbert de Langen
e42d2be843
FIX - do not show the dropdown if there are 0 versions to switch to 2020-07-10 16:45:59 +02:00
Michael Shilman
8ab8425ec5 6.0.0-rc.2 next.json version file 2020-07-10 22:16:20 +08:00
Michael Shilman
faa06ce166 Update version.ts to 6.0.0-rc.2 2020-07-10 22:11:55 +08:00
Michael Shilman
1e8d1b0d02 v6.0.0-rc.2 v6.0.0-rc.2 2020-07-10 22:02:23 +08:00
Michael Shilman
c54abfd09a Update root, peer deps to 6.0.0-rc.2 2020-07-10 22:02:13 +08:00