github styleguidist/react-styleguidist v9.1.11

latest releases: v13.1.2, v13.1.1, v13.1.0...
4 years ago
  • Fixed: Fix incorrect component name capitalization (#1388)

    Fixes #1381

    It is happening in a case when react-docgen (any propsParser) is failed and we are trying to guess displayName based on file path. We capitalized every case in the string instead of just words separated by - started with small letter. So, by mistake ButtonTS in file name becomes ButtonTs display name for component when we expect ButtonTS Use [startCase]:(https://lodash.com/docs/4.17.11#startCase) and then remove spaces which covers most our cases likemy-buttonTS => MyButtonTS

Don't miss a new react-styleguidist release

NewReleases is sending notifications on new releases.