25320 Commits

Author SHA1 Message Date
Tom Coleman
976e30d5d5 Fix some DeepScan issues 2020-03-02 11:23:21 +11:00
Tom Coleman
574570554a Add a README to lib/core to explain the basics 2020-03-02 11:21:27 +11:00
Tom Coleman
811684a993 Remove selectedKind/selectedStory API 2020-03-02 11:09:24 +11:00
Gaëtan Maisse
81e8e67805 chore(lib): add some missing dependencies
Used `npx @yarnpkg/doctor .` to have the list of all missing deps.
Added them with version range already used in the workspace to avoid downloading new dep (that's why yarn.lock is not modified)
2020-03-01 21:40:36 +01:00
Gaëtan Maisse
11d4b11101 chore(docs): add some missing dependencies
Used `npx @yarnpkg/doctor .` to have the list of all missing deps.
Added them with version range already used in the workspace to avoid downloading new dep (that's why yarn.lock is not modified)
2020-03-01 21:40:36 +01:00
Tom Coleman
eafa6d1d10 Fix types in test 2020-03-01 23:35:53 +11:00
Tom Coleman
e777d59276 Fix type change that didn't quite work in storyshots
cc @kroeder -- perhaps we need to make the type here "not quite a node module" -- I suppose the issue here is that the require-context hook we use doesn't implement `req.resolve()`: https://www.npmjs.com/package/@storybook/addon-storyshots#configure-jest-to-work-with-webpacks-requirecontext

We should probably just fix it so it does, but for now.
2020-03-01 23:06:53 +11:00
Tom Coleman
a849625504 Fix decorators test 2020-03-01 22:48:35 +11:00
Tom Coleman
c7264a4aee Fix URL test 2020-03-01 22:45:07 +11:00
Tom Coleman
2a190be01b Added tests for makeConfigure 2020-03-01 22:32:19 +11:00
Michael Shilman
7c55dd1dae
Merge pull request #10003 from thakursachin467/next
CLI: Support js / jsx / ts / tsx stories in React CSF template
2020-03-01 17:09:20 +08:00
Sachin Thakur
644b2a98de
Support Both js and jsx or ts and tsx 2020-03-01 11:27:05 +05:30
Sachin Thakur
c33337d50c
Support Both js and jsx or ts and tsx
Updated Regex to accommodate both Js and JSX or ts and TSX.

Issue:

What I did
Update default template generation in storybook cli to add jsx/ts/tsx file.
2020-03-01 11:22:15 +05:30
Michael Shilman
ba69a6714f
Merge pull request #9999 from HerrickSpencer/patch-4
Update Writing-Addon doc
2020-02-29 15:56:53 +08:00
Herrick Spencer
e85a12842e
Update Writing-Addon doc
(two line change)
Update Writing-Addon doc to fix error in reading parameter data.  As currently written this causes an exception due to the object returned not being a string. Two ways to fix this, change the data passed by param to just a bare string in the story code above, or change how the addon handles the parameter data. The second is preferable since this is the more likely scenario, and a more useful showcase of passing parameter data.   This is the path I've chosen to changed.
2020-02-28 12:19:20 -08:00
Norbert de Langen
5abdfd866d
Merge pull request #9709 from dudusae/namedcolor-example
Cra-kitchen-sink : Add Named Color Palette Example(MDX)
2020-02-28 16:00:36 +01:00
Norbert de Langen
34784410d9
Merge branch 'next' into manager-options
# Conflicts:
#	lib/api/src/modules/stories.ts
#	package.json
#	yarn.lock
2020-02-28 09:51:54 +01:00
Tom Coleman
0d4049ed13 Fixed start.test.js 2020-02-28 16:30:10 +11:00
Tom Coleman
4e7269ee93 Fixed client_api tests 2020-02-28 16:28:16 +11:00
Tom Coleman
29d7dd0bee Start doesn't need to be a tsx file any more 2020-02-28 15:35:24 +11:00
Michael Shilman
fe1f8a3459
Merge pull request #9972 from EmmanuelDemey/patch-3
fix: missing } in the docs addon documentation
2020-02-28 08:57:19 +08:00
Michael Shilman
8657d7d25f
Merge pull request #9949 from jonspalmer/queryparams_preset
Addon-Queryparams: Add addon preset
2020-02-28 08:54:15 +08:00
Michael Shilman
102486bd46
Merge pull request #9971 from jonspalmer/fix_github_unit_tests
CI: Fix GitHub unit test workflow
2020-02-28 08:51:00 +08:00
Michael Shilman
27e2541048
Update colorpalette.stories.mdx 2020-02-28 08:48:16 +08:00
Michael Shilman
ccab92bc80
Merge pull request #9976 from davidinoa/next
Update index.md
2020-02-28 08:40:22 +08:00
David Inoa
4bcf55fa5a
Update index.md 2020-02-27 11:47:41 -05:00
Norbert de Langen
1af3f2ca53
ADD story 2020-02-27 14:54:54 +01:00
Jon Palmer
9f525d4299
use checkout v2 2020-02-27 08:45:58 -05:00
Tom Coleman
a35c3a689e Add tests for StoryRenderer 2020-02-27 22:22:16 +11:00
Tom Coleman
4c52896bde Channel can be null if there is no browser 2020-02-27 22:21:55 +11:00
Emmanuel DEMEY
37ab0aff8f
fix: missin } in the docs addon documentation 2020-02-27 10:38:28 +01:00
Tom Coleman
f07dbaf243 Fix url.test.js 2020-02-27 16:30:35 +11:00
Tom Coleman
95f84f00f0 Added tests for storyStore 2020-02-27 16:20:42 +11:00
Tom Coleman
3c089a8510 Don't use STORIES_CONFIGURED to tell if the stories changed now 2020-02-27 15:50:45 +11:00
Jon Palmer
33631029b9
Fix GitHub unit test workflow 2020-02-26 22:49:57 -05:00
Michael Shilman
9715a27e54 6.0.0-alpha.20 next.json version file 2020-02-27 08:44:47 +08:00
Michael Shilman
b62e0ab71e Update version.ts to 6.0.0-alpha.20 2020-02-27 08:36:29 +08:00
Michael Shilman
dac6752d47 v6.0.0-alpha.20 v6.0.0-alpha.20 2020-02-27 08:26:52 +08:00
Michael Shilman
492bf5221d Update peer dependencies to 6.0.0-alpha.20 2020-02-27 08:19:18 +08:00
Michael Shilman
18dd682b09 6.0.0-alpha.20 changelog 2020-02-27 08:19:03 +08:00
Michael Shilman
dd1592033f
Merge pull request #9966 from HerrickSpencer/patch-3
Documentation of writing add-on: replace 'withFoo' with the name of addon used in sample below 'withMyAddon'
2020-02-27 07:45:57 +08:00
Herrick Spencer
84490e112f
replace withFoo with the name of addon used in sample below 2020-02-26 13:42:49 -08:00
Norbert de Langen
92f9e23263
Merge pull request #9940 from storybookjs/add/stories-for-layout-mdx
ADD stories for layout in mdx as example and regression test
2020-02-26 13:55:27 +01:00
Michael Shilman
2b8e15b1a8
Merge pull request #9960 from storybookjs/Fix-LSB-284
Core: Fix `configFilename` containing backticks
2020-02-26 20:32:26 +08:00
Michael Shilman
a22ceff7e3
Merge pull request #9958 from EmmanuelDemey/patch-3
fix: remove useless \ in the documentation
2020-02-26 20:27:57 +08:00
Tom Coleman
7616d76326 Basics working 2020-02-26 22:46:44 +11:00
Tom Coleman
20920b58e6
Fix configFilename containing backticks
In windows the path sep is '\' which will lead to weird stuff like: https://github.com/chromaui/learnstorybook.com/issues/284
2020-02-26 20:12:39 +11:00
Emmanuel DEMEY
0232feaf06
fix: remove useless \ in the documentation 2020-02-26 08:35:23 +01:00
Michael Shilman
d9612f7090
Merge pull request #9950 from jonspalmer/addon_docs_cleanup
Cleanup docs wrt registering addons
2020-02-26 08:11:57 +08:00
Tom Coleman
6055762dfb Move configure function outside of start.tsx 2020-02-26 08:54:03 +11:00