1584 Commits

Author SHA1 Message Date
Brody McKee
32c2ea90a4 fix: allow Storybook packages to use React 17.x 2020-10-25 16:19:17 +02:00
Michael Shilman
44db4db088 Update git head to 6.1.0-alpha.29 2020-10-23 18:47:26 +08:00
Michael Shilman
c4c9f9bf50 v6.1.0-alpha.29 2020-10-23 18:41:35 +08:00
Michael Shilman
d329cd591f Update root, peer deps, version.ts/json to 6.1.0-alpha.29 2020-10-23 18:40:54 +08:00
Michael Shilman
16c03ff631 Update git head to 6.1.0-alpha.28 2020-10-23 15:36:27 +08:00
Michael Shilman
9f44d66ee8 v6.1.0-alpha.28 2020-10-23 15:30:35 +08:00
Michael Shilman
e753868545 Update root, peer deps, version.ts/json to 6.1.0-alpha.28 2020-10-23 15:29:59 +08:00
Michael Shilman
fb615576be Core: Disable Docs DLL by default 2020-10-23 14:46:58 +08:00
Michael Shilman
77e14e3b6a Update git head to 6.1.0-alpha.27 2020-10-19 18:51:47 +08:00
Michael Shilman
0bbd323784 v6.1.0-alpha.27 2020-10-19 18:46:00 +08:00
Michael Shilman
2387c4de15 Update root, peer deps, version.ts/json to 6.1.0-alpha.27 2020-10-19 18:44:37 +08:00
Michael Shilman
dc17a9d73f
Merge pull request #12812 from storybookjs/pocka/feature/vue-dynamic-source
Addon-docs: Dynamic source rendering for Vue
2020-10-19 17:57:06 +08:00
Michael Shilman
8891488aa9 Rename helper function 2020-10-19 14:11:47 +08:00
Shota Fuji
537213926e
feat(addon-docs): Dynamic source rendering for Vue
https://github.com/storybookjs/storybook/issues/11400

This commit adds dynamic source code rendering feature to Docs addon for
Vue.js. The goals are 1) reflecting Controls' value to code block and
2) showing a code similar to what component consumers would write.

To archive these goals, this feature compiles a component with Vue, then
walks through vdom and stringifys the result. It could be possible to
parse components' template or render function then stringify results,
but it would be costly and hard to maintain (especially for parsing).
We can use vue-template-compiler for the purpose, but it can't handle
render functions so it's not the way to go IMO.

Speaking of the goal 2, someone wants events to be in the output code.
But it's so hard to retrieve component definitions (e.g. `methods`,
`computed`). I think it's okay to skip events until we figure there is a
high demand for that.
2020-10-18 13:38:57 +00:00
Michael Shilman
62be9577e6 Update git head to 6.1.0-alpha.26 2020-10-18 18:42:55 +08:00
Michael Shilman
4a32476204 v6.1.0-alpha.26 2020-10-18 18:37:23 +08:00
Michael Shilman
8b8fbe15f0 Update root, peer deps, version.ts/json to 6.1.0-alpha.26 2020-10-18 18:37:05 +08:00
Michael Shilman
f41f52f3f7 Update git head to 6.1.0-alpha.25 2020-10-16 21:13:58 +08:00
Michael Shilman
b061cc62a3 v6.1.0-alpha.25 2020-10-16 21:07:59 +08:00
Michael Shilman
4de6a446fb Update root, peer deps, version.ts/json to 6.1.0-alpha.25 2020-10-16 21:07:34 +08:00
Michael Shilman
2887b6f465 Update git head to 6.1.0-alpha.24 2020-10-15 22:54:13 +08:00
Michael Shilman
da8ff0573a v6.1.0-alpha.24 2020-10-15 22:47:26 +08:00
Michael Shilman
a4623338f7 Update root, peer deps, version.ts/json to 6.1.0-alpha.24 2020-10-15 22:47:08 +08:00
Michael Shilman
81cf936f8c Upgrade babel-plugin-react-docgen 2020-10-13 02:37:13 +08:00
Michael Shilman
86c800573f Update git head to 6.1.0-alpha.23 2020-10-12 19:47:48 +08:00
Michael Shilman
1ec9d957ee v6.1.0-alpha.23 2020-10-12 19:41:32 +08:00
Michael Shilman
fd1566bba6 Update root, peer deps, version.ts/json to 6.1.0-alpha.23 2020-10-12 19:39:17 +08:00
Michael Shilman
49c4d7fee0 MDX: Add loaders support to MDX compiler 2020-10-10 18:04:54 +08:00
Michael Shilman
1a979e4dc5 Update git head to 6.1.0-alpha.22 2020-10-10 10:31:12 +08:00
Michael Shilman
062478198c v6.1.0-alpha.22 2020-10-10 10:25:15 +08:00
Michael Shilman
41227c8fad Update root, peer deps, version.ts/json to 6.1.0-alpha.22 2020-10-10 10:24:59 +08:00
Michael Shilman
1fa6b2b2cb Update git head to 6.1.0-alpha.21 2020-10-08 23:27:41 +08:00
Michael Shilman
0ab71655be v6.1.0-alpha.21 2020-10-08 23:21:24 +08:00
Michael Shilman
418af7682a Update root, peer deps, version.ts/json to 6.1.0-alpha.21 2020-10-08 23:20:52 +08:00
Michael Shilman
e6cee22077 Remove unused import, fix deepscan 2020-10-08 09:44:15 +08:00
Andrew Salib
d9a8253205 fix(addon-docs): TS forwardref issue now produces properties.snapshot 2020-10-08 10:38:35 +11:00
Andrew Salib
958e7ed5a8 fix(addon-docs): only support forwardRef outer propTypes
Attaching propTypes to forwardRef component's inner render fn doesn't make sense, so we are only supporting outer propTypes. Keeping inner proptypes story to show it doesn't work & isn't recommended.
2020-10-08 10:33:41 +11:00
Andrew Salib
e645ae1ce7 Update snapshots 2020-10-07 17:50:40 +11:00
Andrew Salib
179ca8d7fb addon-docs: fix Memo props types & tiny refactor to jsxDecorator
jsxDecorator can now fetch component name from docgen & also using new helpers.
2020-10-07 16:37:45 +11:00
Andrew Salib
5d06c42100 addon-docs: add react componentTypes helpers to lib
For determining if a component isMemo or isForwardRef
2020-10-07 16:35:55 +11:00
Michael Shilman
050f879301 Update git head to 6.1.0-alpha.20 2020-10-05 13:20:30 +08:00
Michael Shilman
cc1c152e54 v6.1.0-alpha.20 2020-10-05 13:15:11 +08:00
Michael Shilman
657277b9e6 Update root, peer deps, version.ts/json to 6.1.0-alpha.20 2020-10-05 13:14:56 +08:00
Michael Shilman
b39e816be8
Merge branch 'next' into fix/react-component-name 2020-10-05 12:29:09 +08:00
Michael Shilman
a8770a4a8e Merge branch 'next' into pr/12035 2020-10-05 11:44:56 +08:00
Michael Shilman
ab314fe928 Update git head to 6.1.0-alpha.19 2020-10-03 21:53:39 +08:00
Michael Shilman
6a3203004a v6.1.0-alpha.19 2020-10-03 21:47:45 +08:00
Michael Shilman
1c7718d644 Update root, peer deps, version.ts/json to 6.1.0-alpha.19 2020-10-03 21:47:31 +08:00
Michael Shilman
e98574cd9f
Merge pull request #12588 from phated/guard-duplicate-in-createSummaryValue
Addon-docs: Move summary & detail equality check to createSummaryValue
2020-10-03 21:21:28 +08:00
Norbert de Langen
5414c8be19
fix snapshot 2020-10-01 16:53:17 +02:00