{"version":3,"file":"index_react.js","sourceRoot":"","sources":["../../src/react/index_react.ts"],"names":[],"mappings":";AAAA,8EAA8E;AAC9E,uEAAuE;AACvE,yEAAyE;AACzE,qEAAqE;AACrE,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASvC,kDAAmC;AAGnC,0DAAmD;AAGnD,MAAM,OAAO,GAAuB,IAAA,wBAAS,GAAE,CAAA;AAgHV,yBAAM;AA/G3C,MAAM,MAAM,GA6GR,KAAK,CAAA;AAEU,uBAAK;AACxB,kBAAe,MAAM,CAAA","sourcesContent":["// IMPORTANT: be careful to ensure you don't accidentally add code which has a\n// dependency on Node.js-only modules here, as it will break co-located\n// components. We don't have a test for this yet. Any such code should be\n// conditionally required - see `client` for an example. Reach out in\n// #feat-code-connect if you're unsure.\n\nimport {\n EnumValue,\n FigmaConnectAPI,\n FigmaConnectMeta,\n ValueOf,\n ConnectedComponent,\n} from '../connect/api'\nimport * as figma from './external'\nimport * as StorybookTypes from '../storybook/external'\nimport { FigmaConnectClient } from '../client/figma_client'\nimport { getClient } from '../connect/index_common'\nimport { ReactMeta } from './types'\n\nconst _client: FigmaConnectClient = getClient()\nconst _figma: FigmaConnectAPI & {\n /**\n * Defines a code snippet that displays in Figma when a component is selected. This function has two signatures:\n * - When called with a component reference as the first argument, it will infer metadata such as the import statement\n * and location in source file from the component reference\n * - When called only with a Figma node URL, this metadata will not be included. This is useful when you want to display a code snippet\n * for something that isn't a React component, such as a `