Pourquoi n'y a-t-il pas d'API complémentaire pour obtenir toutes les histoires ?
@ZigGreen peut-être que cette API pourrait vous aider ?
https://github.com/storybooks/react-storybook/blob/master/src/client/preview/client_api.js#L85
Oui, cette API répond à mes besoins. Mais veuillez me dire comment je peux l'utiliser. N'est-ce pas une API privée ?
@ZigGreen
voici un bref exemple comment l'utiliser:
import { storiesOf, getStorybook } from '@kadira/storybook';
storiesOf('React App', module)
.add('Story 1', () => <Story1 />)
...
const myStories = getStorybook();
console.log(myStories);
Vous aurez un tableau avec tout votre storyKind -> histoires ...
Commentaire le plus utile
@ZigGreen
voici un bref exemple comment l'utiliser:
Vous aurez un tableau avec tout votre storyKind -> histoires ...