{"version":3,"file":"external.js","sourceRoot":"","sources":["../../src/storybook/external.ts"],"names":[],"mappings":"","sourcesContent":["import { FigmaConnectMeta } from '../connect/api'\n\n/**\n * Type for the Storybook `parameters` when using Figma Code Connect. This can\n * be used in your Storybook default export like:\n * ```\n * export default {\n * // ...\n * parameters: {\n * // ...\n * } satisfies StoryParameters,\n * }\n */\nexport type StoryParameters = {\n design: {\n type: 'figma'\n /**\n * A link to the node in Figma, for example:`https://www.figma.com/file/123abc/My-Component?node-id=123:456`\n */\n url: string\n /**\n * Optional array of examples to show in Figma. If none are specified, Figma\n * will show a default code example.\n */\n examples?: (FigmaConnectMeta['example'] | string | ExampleObject)[]\n /**\n * A list of import statements that will render in the Code Snippet in Figma.\n */\n imports?: string[]\n } & Pick\n}\n\ntype ExampleObject = FigmaConnectMeta & {\n variant?: FigmaConnectMeta['variant']\n links?: FigmaConnectMeta['links']\n}\n"]}