@storybook/client-api
    TypeScript icon, indicating that this package has built-in type declarations

    6.4.7 • Public • Published

    @storybook/client-api -- Deprecated Story APIs (storiesOf)

    NOTE This API is deprecated, and the CSF format is preferred for all stories.

    storiesOf API

    The @storybook/client API provides the storiesOf() API, which is proxied through to the CSF API.

    Internals

    In order to appear to the store like the CSF API, a call to storiesOf().add() does the following:

    • Tracks the story added in a synthetic StoryIndex data structure
    • Constructs a moduleExports object that is equivalent to the exports from a CSF file that produced the same stories.

    In order to achieve the old storySort functionality, the client API also needs access to the project annotations.

    Keywords

    Install

    npm i @storybook/client-api

    DownloadsWeekly Downloads

    3,905,493

    Version

    6.4.7

    License

    MIT

    Unpacked Size

    106 kB

    Total Files

    31

    Last publish

    Collaborators

    • shilman
    • ndelangen
    • hypnosphi
    • tmeasday
    • igor-dv