693 Commits

Author SHA1 Message Date
Michael Shilman
5e27ecf411
Merge pull request #12429 from storybookjs/12422-fix-extract-source-perf
Source-loader: Export extract-source in its own entry point
2020-09-10 07:30:48 +08:00
Michael Shilman
2f111f5094
Merge pull request #12376 from phated/flow-nested-unions
Addon-docs: Prefer flow's union elements over raw values
2020-09-10 07:29:10 +08:00
Michael Shilman
0c8b9ac0d9 Soruce-loader: Export extract-source in its own entry point 2020-09-09 16:52:18 +08:00
Shackles
24c4167332 add missing methods section to ArgsTable rendering in Docs addon 2020-09-08 12:04:15 +02:00
Michael Shilman
21982e7983
Merge pull request #12365 from phated/jsxDecorator-undefined-values
Addon-docs: Introduce undefined filtering to jsxDecorator
2020-09-08 17:09:35 +08:00
Michael Shilman
194c07d07f
Merge pull request #12225 from phated/extract-source
Addon-docs: Reuse extractSource from source-loader
2020-09-04 22:54:51 +08:00
Blaine Bublitz
95de7d608c Addon-docs: Prefer flow's union elements over raw values 2020-09-03 14:24:53 -07:00
Blaine Bublitz
97a5997f69 Allow null values to be displayed 2020-09-03 12:03:18 -07:00
Michael Shilman
5289230d85
Merge pull request #12268 from phated/docs-source-block-light-refactor
Addon-docs: Light refactor of Source block
2020-09-03 21:36:11 +08:00
Michael Shilman
910af1e743
Merge pull request #12265 from phated/transformSource-context
Addon-docs: Change 2nd argument of transformSource to the storyContext
2020-09-03 21:09:27 +08:00
Blaine Bublitz
9e75d3efe1 Introduce undefined/null value filtering in jsxDecorator 2020-09-02 18:25:39 -07:00
Blaine Bublitz
4b7835a097 Add test for current jsxDecorator behavior with undefined/null values 2020-09-02 18:23:08 -07:00
blackfenix2
74bb2ec996 added another snapshot test. 2020-09-02 00:23:35 -04:00
blackfenix2
45f5992f5c removed unused types 2020-09-02 00:18:05 -04:00
blackfenix2
11f6dfaf84 added unit test. 2020-09-02 00:08:46 -04:00
blackfenix2
081f288b04 moved eslitn disable comments inline 2020-09-01 22:54:23 -04:00
blackfenix2
b450354e57 added typings.d.ts 2020-09-01 22:52:19 -04:00
blackfenix2
448c7208b9 added ControlShowcaseView 2020-09-01 22:21:43 -04:00
blackfenix2
065023d678 Added control autogeneration support for Svelte 2020-09-01 17:30:59 -04:00
Ernie Francis
f36ce9423b
Merge pull request #3 from BlackFenix2/svelte-docgen
Svelte docgen
2020-09-01 14:21:43 -04:00
blackfenix2
fb2b17fd4d got docgen to extractArgTypes. 2020-09-01 00:12:52 -04:00
Michael Shilman
66c6ef6ce8
Merge pull request #12178 from phated/onBeforeRender-receives-context
Addon-docs: Add transformSource for jsxDecorator, deprecated onBeforeRender
2020-08-31 21:52:16 +08:00
blackfenix2
87ebb8c623 testing out ArgTypes and svelte docgen loader 2020-08-31 08:08:56 -04:00
Michael Shilman
e18fc2ccd4 Fix failing tests 2020-08-30 14:54:06 +08:00
Ernie Francis
fdfcf8bdbf
Update addons/docs/src/frameworks/svelte/HOC.svelte
Co-authored-by: Michael Shilman <shilman@users.noreply.github.com>
2020-08-30 02:16:16 -04:00
Ernie Francis
31d444fcb3
Update config.ts 2020-08-30 02:14:00 -04:00
Ernie Francis
6cfa8b9c44
Delete extractArgTypes.ts 2020-08-30 02:02:06 -04:00
blackfenix2
73c7bce1f3 added inline docs support for svelte components 2020-08-29 13:47:01 -04:00
blackfenix2
9984813928 made a .svelte component load inline 2020-08-29 03:01:42 -04:00
blackfenix2
6bd0b7a0af test 2020-08-29 00:24:12 -04:00
Michael Shilman
14fbd35642 Fix typo 2020-08-28 11:21:17 +08:00
Blaine Bublitz
b17ca18cca Addon-docs: Light refactor of Source block 2020-08-26 12:19:44 -07:00
Blaine Bublitz
4664dcc2eb Addon-docs: Change 2nd argument of transformSource to the storyContext 2020-08-26 11:41:25 -07:00
Michael Shilman
0af0f4d5e4 Fix typo 2020-08-25 17:59:08 +08:00
Michael Shilman
19e4111605 Restore controls in react-argtypes stories 2020-08-25 17:37:29 +08:00
Michael Shilman
2b148eea08 Update snapshots 2020-08-25 16:00:49 +08:00
Michael Shilman
82af1d8572 Controls: Run control inference at the end 2020-08-25 13:12:26 +08:00
Blaine Bublitz
0407776c20 Utilize extractSource in enhanceSource 2020-08-24 18:38:03 -07:00
Blaine Bublitz
00fadd92ed Rework as transformSource 2020-08-21 17:16:17 -07:00
Blaine Bublitz
aa8ef1be7f Attempt to fix typescript terror 2020-08-21 10:15:00 -07:00
Blaine Bublitz
8faa30bdfc Allow onBeforeRender to receive story context 2020-08-20 20:35:48 -07:00
Michael Shilman
fbd566d12b Fix deepscan 2020-08-20 22:00:58 +08:00
Michael Shilman
7bb60f4911 Vue docgen: fix sanitization 2020-08-20 21:26:01 +08:00
Markus Siering
ee3dcb49b3
fix(addon-docs): correctly sanitize item.type.elements to item.type.value
which now only happens if the elements entry is present
and also is applied at the correct nesting level of the
item object.

refs #11944
2020-08-20 14:34:59 +02:00
Michael Shilman
7e30368608
Merge pull request #12158 from HerrBertling/fix/11944-docs-union-types-vue
Addon-docs: Fix ArgsTable union type handling in Vue/TS
2020-08-20 18:36:56 +08:00
Michael Shilman
82c5887182 Addon-docs: Fix inline rendering for DOM nodes in HTML 2020-08-20 17:39:52 +08:00
Markus Siering
c4f70cacb2
fix(addon-docs): correctly parse union types in Vue/TS
closes #11944
2020-08-20 10:21:32 +02:00
Michael Shilman
c7703d0b3b #12143 Addon-docs: Fix MDX IDs from CSF imports 2020-08-20 14:40:31 +08:00
Michael Shilman
7c3747e269 Addon-docs: Parse out story code for Template.bind({}) in MDX compiler 2020-08-18 20:59:47 +08:00
Michael Shilman
0459349271 Addon-docs: Fix CSF names importing in MDX 2020-08-15 10:22:57 +08:00