6901 Commits

Author SHA1 Message Date
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
736f50e8e7
Merge pull request #12790 from merceyz/merceyz/storyshots
Storyshots: Add missing vue peer dependencies
2020-10-18 17:19:59 +08:00
merceyz
cf25fba920 fix(addon-storyshots): add missing peer dependencies for vue 2020-10-16 15:41:31 +02: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
cd53096b85
Merge pull request #11627 from storybookjs/fix/11548-initial-state
Addon-viewports: Fix initial load state
2020-10-15 22:19:01 +08:00
Michael Shilman
ed960bf70b
Merge pull request #12774 from storybookjs/fix_issue_12513
Chore: Update documentation for issue #12513
2020-10-15 16:26:57 +08:00
Michael Shilman
e9953bca9c Merge branch 'next' into fix/11548-initial-state 2020-10-15 13:45:10 +08:00
Tom Coleman
f6a9bbdf96
Merge pull request #12758 from storybookjs/fix_issue_12753
Chore: update wording in the @storybook/addons advanced readme
2020-10-15 09:58:31 +11:00
jonniebigodes
9da7db78d0 initial commit for issue #12513 2020-10-14 20:42:12 +01:00
jonniebigodes
77ddfe075e
Merge pull request #12761 from sanskar-p/hyperlink-fix
Fixed hyperlink formatting
2020-10-14 16:33:02 +01:00
jonniebigodes
24cac60363 word changed per feedback 2020-10-14 16:24:26 +01:00
Taylor Jones
7afdda8b73
fix: typo 2020-10-14 06:56:50 -05:00
Sanskar Patro
2df3cae574
Fixed hyperlink formatting 2020-10-14 13:11:00 +05:30
jonniebigodes
88c6228457 Changes for issue #12753 2020-10-13 21:48:17 +01:00
Michael Shilman
a2a96ab09f
Merge pull request #12738 from pchr-srf/patch-5
Addon-controls: Fix "docs before controls" check
2020-10-13 04:42:31 +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
Philipp Christen
6dd5e2e569
Update ensureDocsBeforeControls.ts
`docs` should be before `controls` or `essentials`, not `docs` or `essentials` before `controls`
2020-10-12 10:37:41 +02:00
Michael Shilman
c347791d5c Merge branch 'next' into 1009-async-loaders 2020-10-12 16:02:49 +08:00
Yann Braga
ed98c91018 feat(addon-a11y): add blurred vision effect
- Also rename ColorBlindness to VisionDeficiency now that the functionality is broader
2020-10-10 20:16:01 +02:00
Michael Shilman
49c4d7fee0 MDX: Add loaders support to MDX compiler 2020-10-10 18:04:54 +08:00
Michael Shilman
5989fd2bb2 Merge branch 'next' into 1009-async-loaders 2020-10-10 10:48:39 +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
cyrus
17f4ae2cff
[Addon-knob] Fix uncontrolled to controlled warning for booleans
Same as #12322 to fix knob addon
2020-10-09 16:57:21 +03:30
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
c1ff295246 Merge branch 'next' into 10009-poc-async-loaders 2020-10-07 12:23:34 +08:00
Michael Shilman
62da9a50c6
Merge pull request #12639 from roblan/next
Core: Add apng support
2020-10-06 05:39:48 +08: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