4794 Commits

Author SHA1 Message Date
patrick.lafrance
fd1c9f1b26 Added test for the JSDoc parser 2019-11-12 09:45:43 -05:00
patrick.lafrance
3641a5f0f1 Added tests to the acorn parser 2019-11-11 17:38:43 -05:00
patrick.lafrance
322980b9b0 Moved all docgen code to a docgen folder 2019-11-11 16:53:47 -05:00
patrick.lafrance
92bfeb31b5 Moved the inspection code out of propTypes since it's specific to react not prop types 2019-11-11 16:45:16 -05:00
patrick.lafrance
b9572c4a11 Removed ununsed prop from inspection result types 2019-11-11 16:42:12 -05:00
patrick.lafrance
0b8f80b342 Improved docgen info interface 2019-11-11 16:40:17 -05:00
patrick.lafrance
a9b8cec3e6 Finishing up rendering enhancement for default values 2019-11-11 15:29:18 -05:00
patrick.lafrance
96cc4c9885 Added a acorn parser to infer types from string values and also do pretty formatting with escodegen 2019-11-10 23:25:44 -05:00
patrick.lafrance
896ebc8c6e Better default valut rendering for prop types custom, shape, object and func 2019-11-08 17:48:34 -05:00
patrick.lafrance
9f0957d8a9 Removed the quotes around the default value that were not strings 2019-11-08 16:34:25 -05:00
patrick.lafrance
416dd4e2aa Better support for shape 2019-11-08 13:08:15 -05:00
patrick.lafrance
54903a2f9a Handling more prop types type 2019-11-08 12:39:33 -05:00
patrick.lafrance
6bfd952b6f Fixed a bunch of types for prop types 2019-11-08 09:27:32 -05:00
patrick.lafrance
67a4f4bbe8 Updated PropDef type to a React component 2019-11-07 15:52:08 -05:00
patrick.lafrance
d4b6276b43 Reworking the prop types renderer 2019-11-07 08:47:32 -05:00
patrick.lafrance
f78ca0d64f JSDoc parser now take a string instead of a docgen object 2019-11-07 08:32:49 -05:00
Michael Shilman
b43b45f270 Update PropDef for web-components 2019-11-07 12:34:21 +08:00
patrick.lafrance
c9cd423ec4 clean up 2019-11-06 18:56:19 -05:00
patrick.lafrance
9acec41c11 Moved tests 2019-11-06 18:53:13 -05:00
patrick.lafrance
ff120d0098 Finished refactoring 2019-11-06 17:15:46 -05:00
patrick.lafrance
a198daaf09 Reworked the docs lib with a new prop extractor 2019-11-06 15:15:49 -05:00
Michael Shilman
f0810047d0
Addon-docs: Render array of shape properly in props table (#8707)
Addon-docs: Render array of shape properly in props table
2019-11-07 02:21:51 +08:00
Michael Shilman
a76b55e24c
Addon-docs: Render params description in props table, support @… (#8702)
Addon-docs: Render params description in props table, support @ignore
2019-11-07 02:19:34 +08:00
Michael Shilman
0bd6a484e8 Docgen extractor: Minor housecleaning 2019-11-06 14:44:03 +08:00
Michael Shilman
8adf732d32 Addon-docs: Fix "Cannot read property 'props'" 2019-11-06 11:20:38 +08:00
Michael Shilman
8741f83b3f v5.3.0-alpha.40 2019-11-06 10:52:51 +08:00
ImgBotApp
83fcbed24f
[ImgBot] Optimize images
*Total -- 1,437.78kb -> 1,129.66kb (21.43%)

/addons/docs/docs/media/vue-hero.png -- 668.06kb -> 515.54kb (22.83%)
/addons/docs/docs/media/angular-hero.png -- 769.72kb -> 614.12kb (20.22%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2019-11-05 14:57:19 +00:00
patrick.lafrance
e5896801a7 Moved the fix to the PropRow component 2019-11-05 09:45:35 -05:00
patrick.lafrance
288050860b Added support for inline shape 2019-11-05 09:04:06 -05:00
Michael Shilman
8f09ccc687 v5.3.0-alpha.39 2019-11-05 21:39:50 +08:00
Michael Shilman
437407b5c0 Addon-docs: Updated recipe for notes as component description 2019-11-05 17:40:22 +08:00
Thomas Allmer
f43047c78c feat(docs): support inline rendering for wc and enable by default 2019-11-05 01:49:03 +01:00
patrick.lafrance
fbfaae82f8 Add custom code to replace the custom string with the raw type when available 2019-11-04 18:48:58 -05:00
patrick.lafrance
fd8304ea4a Rework the jsdoc parser output and fix a rendering bug 2019-11-04 18:18:14 -05:00
patrick.lafrance
0d4574448f Merge branch 'next' into 8532-render-params-and-returns-tags-optional-description-under-func-type 2019-11-04 12:24:46 -05:00
patrick.lafrance
04bde393bc wip 2019-11-04 09:20:10 -05:00
patrick.lafrance
3f1508c732 Added test coverage for @ignore 2019-11-04 09:15:19 -05:00
patrick.lafrance
5073e73466 Refactored to support JSDoc for unknown type system and stop infering the type name for typescript @param tags 2019-11-03 23:46:22 -05:00
Michael Shilman
e924cc5f0b
React Native: Fix on-device-notes (#8692)
React Native: Fix on-device-notes
2019-11-04 10:34:21 +08:00
Michael Shilman
bb1c4d4b3c
React Native: On Device Knobs Groups Fix (#8694)
React Native: On Device Knobs Groups Fix
2019-11-04 09:51:25 +08:00
Michael Shilman
d8fbbe6a7b
React-native: Fix event listening for story navigation (#8690)
React-native: Fix event listening for story navigation
2019-11-04 09:48:33 +08:00
patrick.lafrance
fb2fef31fc Fix JSDoc parsing to make it works with TS types 2019-11-03 18:48:17 -05:00
Michael Shilman
5a1c96f1a8
Update index.tsx 2019-11-04 06:50:13 +08:00
Gytis Vinclovas
fa38fc8c24 Added a comment. 2019-11-03 18:20:49 +02:00
Gytis Vinclovas
197737f71f Currently if all knobs have a group, we will display no knobs text instead of grouped knobs. This fixes it. 2019-11-03 18:18:36 +02:00
Gytis Vinclovas
c735460a1e Notes addon is not using state anymore, since creating event listener happens only after initial story is rendered. By using api we avoid that. 2019-11-03 17:24:47 +02:00
Gytis Vinclovas
5db20e922f Properly listen for story select instead of story_rendered, since story rendered is called when switching tabs. 2019-11-03 15:54:48 +02:00
Michael Shilman
528c6617d9 v5.3.0-alpha.38 2019-11-03 16:33:20 +08:00
Michael Shilman
8fc41e7076 Addon-docs: Add link to Vue in README 2019-11-03 14:06:34 +08:00
Michael Shilman
f7ac56c26f Vue docs README 2019-11-03 12:50:23 +08:00