UNPKG

@compositive/storybook

Version:

Storybook framework with useful defaults and integration with Compositive.

47 lines (46 loc) 1.98 kB
import { StorybookConfig } from "@storybook/react-webpack5"; import { Configuration } from "webpack"; /** * Options passed to the addons. */ type Options = { /** Path of the file that exports the available themes */ themeFile: string; /** List of glob patterns for packages that should be transpiled */ includePackages?: string[]; /** Path of the directory that contains the Storybook configuration */ configDir: string; /** Name of the theme that should be picked as default if the user hasn't made their own selection */ defaultThemeName?: string; }; /** * Load all the stories from packages that are direct dependencies of our project and that match the glob patterns passed * in the options. */ declare function stories(list: string[] | undefined, { includePackages, configDir }: Options): Promise<string[]>; declare const config: (entries?: string[]) => string[]; declare const managerEntries: (entries?: string[]) => string[]; declare const webpackFinal: (webpackConfig: Configuration, { themeFile, defaultThemeName, includePackages }: Options) => Configuration; declare const managerWebpack: (webpackConfig: Configuration, { themeFile, defaultThemeName, includePackages }: Options) => Configuration; declare const babel: StorybookConfig["babel"]; declare const addons: (string | { name: string; })[]; declare const typescript: { reactDocgen: string; reactDocgenTypescriptOptions: { shouldExtractLiteralValuesFromEnum: true; shouldRemoveUndefinedFromOptional: true; propFilter: (_prop: import("react-docgen-typescript").PropItem, component: import("react-docgen-typescript/lib/parser").Component) => boolean; }; }; declare const features: { postcss: boolean; }; declare const core: { disableTelemetry: boolean; }; declare const docs: { defaultName: string; }; export { stories, config, managerEntries, webpackFinal, managerWebpack, babel, addons, typescript, features, core, docs };