UNPKG

@storybook/addon-designs

Version:

Storybook addon for embedding your design preview in addon panel

1 lines 1.27 kB
{"version":3,"sources":["../src/constants.ts","../src/index.ts"],"names":["AddonName","PanelName","ParameterName","config","c"],"mappings":"AAGaA,IAAAA,CAAAA,CAAY,yBAKZC,CAAAA,CAAAA,CAAYD,CAAY,CAAA,QAAA,CAYxBE,CAAgB,CAAA,SCdhBC,IAAAA,CAAAA,CAAUC,CAAyBA,EAAAA,EAE5C,OAAO,MAAA,CAAW,GAAe,EAAA,MAAA,CAAO,GAAO,EAAA,MAAA,CAAO,GAAI,CAAA,OAAA,EAC5D,MAAO,CAAA,GAAA,CAAI,OAAQ,EAAA","file":"index.mjs","sourcesContent":["/**\n * The identifier of the addon.\n */\nexport const AddonName = \"STORYBOOK_ADDON_DESIGNS\";\n\n/**\n * The name of the panel.\n */\nexport const PanelName = AddonName + \"/panel\";\n\n/**\n * Addon events.\n */\nexport const Events = {\n UpdateConfig: AddonName + \"/update_config\",\n};\n\n/**\n * A key of story parameters.\n */\nexport const ParameterName = \"design\";\n","import { PanelName, ParameterName } from \"./constants\";\nimport { Config } from \"./config\";\n\n/**\n * Dumb function to ensure typings or enchance IDE auto completion.\n */\nexport const config = (c: Config | Config[]) => c;\n\nif (typeof module !== \"undefined\" && module.hot && module.hot.decline) {\n module.hot.decline();\n}\n\n/**\n * Useful exports for third party developers and advanced usages\n */\nexport { Config, ParameterName as PARAM_KEY, PanelName };\n"]}