693 Commits

Author SHA1 Message Date
Michael Shilman
d8947b9a5c Props controls: Show JSON editor for array of objects 2020-05-02 15:41:26 +08:00
Michael Shilman
3dc2f7bdd1 Args: Fix array typings 2020-05-02 15:35:28 +08:00
Michael Shilman
eeab8341f7 Merge branch 'next' into 10308-fix-default-source 2020-05-02 11:59:45 +08:00
Michael Shilman
4419a18591
Merge pull request #10608 from storybookjs/10596-fix-props-subcomponents
Props: Fix subcomponents
2020-05-02 11:57:41 +08:00
Michael Shilman
04b115cc6d
Apply suggestions from code review
Co-authored-by: Tom Coleman <tom@thesnail.org>
2020-05-02 11:12:51 +08:00
Michael Shilman
5671a05244 Source block: Fix no-props logic 2020-05-02 09:17:56 +08:00
Gaëtan Maisse
d44ff25a02
fix(docs): use require.resolve to ensure Yarn PnP compatibility
Use `require.resolve` both for:
 - webpack loader
 - finding path, previously it was built assuming that `node_modules` directory exists which is false in Plug'n'PLay mode
2020-05-01 16:56:57 +02:00
Gaëtan Maisse
4a5d7101d6
chore(docs): add missing dependencies
- `@storybook/core` is used to find `coreDirName` in `preset.ts`
- `tslib` is needed because this package is a peerDeps of `@angular/core`
- `@types/estree` is used in `acornParser`

Also:
 - Remove `@ts-ignore`
2020-05-01 16:56:57 +02:00
Michael Shilman
71d915848f Add comment to clairfy argstable behavior 2020-05-01 21:44:59 +08:00
Michael Shilman
f789985eba Props: Fix subcomponents & update story to test it 2020-05-01 18:46:03 +08:00
Norbert de Langen
4d3da8bbce
FIX linting 2020-04-30 21:10:26 +02:00
Norbert de Langen
e44111cfa3
FIX types 2020-04-30 19:55:19 +02:00
Norbert de Langen
f03f427e63
IMPROVE typings && FIX tests by catching error when cleaning tmp dir 2020-04-30 18:45:31 +02:00
Norbert de Langen
5e3be6f267
FIX linting 2020-04-30 18:00:35 +02:00
Michael Shilman
198f3d5ce2 Merge branch 'next' into 10517-vue-props-controls 2020-04-29 14:36:00 +08:00
Michael Shilman
c53302f53b Addon-docs: Add subcomponents prop to Meta 2020-04-28 17:56:13 +08:00
Michael Shilman
ff4e1294b4 Args: Props controls for Vue 2020-04-27 21:50:34 +08:00
Michael Shilman
555527a16e Merge branch 'next' into fix/moreIE11 2020-04-23 15:42:44 +08:00
jguze
b0e48ebdd1 Modified the return object of extractArgTypes in the ember framework to simply the list of rows instead of an object with a rows parameter 2020-04-22 13:07:29 -07:00
Norbert de Langen
d78d235b5d
IMPROVE typings && CORRECT usage of DocGenButton 2020-04-22 17:48:54 +02:00
tooppaaa
dbd22989c7 add dll back to docs preset 2020-04-22 11:55:51 +02:00
jguze
1a78ad2156 Fixing the fact that the addon-docs ember framework wasn't outputting the default value properly 2020-04-21 17:36:36 -07:00
Michael Shilman
0cdc337fe9 Addon-docs: Rename formatSource to transformSource 2020-04-21 20:55:48 +08:00
Matthew Irish
f837a13b8f return early when there's no JSDoc for a component 2020-04-20 21:01:48 -05:00
Michael Shilman
4f0113febc
Merge pull request #10482 from storybookjs/10481-vue-argstable
Addon-docs: Port Vue to ArgsTable
2020-04-21 06:56:17 +08:00
Tom Nolan
10013736ac
Move resetComponents to @storybook/components/html 2020-04-20 15:19:22 -04:00
Tom Nolan
e188a46944
Add resetStyles prop to addon-docs Preview component 2020-04-20 15:17:26 -04:00
Michael Shilman
cb472ecd28 Props: Fix required handling for React and Vue 2020-04-20 23:38:06 +08:00
Michael Shilman
739e1b861f Fix missing description and type 2020-04-20 23:26:07 +08:00
Michael Shilman
705fd5cd43 Addon-docs: Port Vue to ArgsTable 2020-04-20 23:11:01 +08:00
Michael Shilman
0ea161df15 DocsPage: Fix controls to point to primary story 2020-04-20 22:35:47 +08:00
Michael Shilman
7e0eae67ce Dont' fail on null values 2020-04-20 15:30:15 +08:00
Michael Shilman
57766dfa72 Addon-docs: Fix controls column logic 2020-04-20 15:04:19 +08:00
Michael Shilman
f8132005c4
Merge pull request #10464 from storybookjs/8781-props-include-exclude
Addon-docs: Provide better props include/exclude features
2020-04-18 14:46:13 +08:00
Michael Shilman
cee7b73080 Fix deepscan 2020-04-18 11:54:55 +08:00
Michael Shilman
39e93885b7 Addon-docs: Provide better props include/exclude features 2020-04-18 09:04:58 +08:00
Michael Shilman
8fd983f664 Addon-docs: Inline stories in Vue by default 2020-04-18 07:51:07 +08:00
Michael Shilman
0ac0f59fff ArgsTable: Only extract when there's an extraction function 2020-04-15 23:40:05 +08:00
Michael Shilman
a4828e44eb ArgsTable: Clean up component extraction for primary comonent only 2020-04-15 22:14:02 +08:00
Michael Shilman
3b7f4a009b fix deepscan 2020-04-15 18:23:17 +08:00
Michael Shilman
121ec4ca4e ArgsTable: Fix issues stories 2020-04-15 18:09:14 +08:00
Michael Shilman
bfa57ca3dd Fix deepscan 2020-04-15 16:27:20 +08:00
Michael Shilman
487ac80230 Addon-docs: Fix DocsPage use case and add example 2020-04-15 16:14:24 +08:00
Michael Shilman
3e7478c64d Addon-docs: Only pass args for the primary component 2020-04-15 16:13:30 +08:00
Michael Shilman
78697b3f74 Update snapshots 2020-04-14 16:32:00 +08:00
Michael Shilman
2099a98a13 ArgsTable: Use lodash.mapValues for readability 2020-04-14 16:31:47 +08:00
Michael Shilman
c2087f6ce1 Fix deepscan 2020-04-14 06:33:06 +08:00
Michael Shilman
ea5d27ba9c Fix linting 2020-04-14 05:27:35 +08:00
Michael Shilman
a0d6f53fbc Updated snapshots 2020-04-14 05:11:05 +08:00
Michael Shilman
dd4fa2bc8e ArgsTable: Misc fixes 2020-04-14 05:09:31 +08:00