{"version":3,"file":"jsx-dev-runtime.cjs","sourceRoot":"","sources":["../../src/jsx/jsx-dev-runtime.ts"],"names":[],"mappings":";;;AACA,mDAAoC;AACpC,iDAAgD;AAEhD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,MAAM,CACpB,SAA+B,EAC/B,KAAY,EACZ,GAAe;IAEf,MAAM,OAAO,GAAG,IAAA,iBAAG,EAAC,SAAS,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAC3C,IAAA,6BAAgB,EAAC,OAAO,CAAC,CAAC;IAE1B,OAAO,OAAO,CAAC;AACjB,CAAC;AATD,wBASC","sourcesContent":["import type { JsonObject, Key, SnapComponent } from './component';\nimport { jsx } from './jsx-runtime';\nimport { assertJSXElement } from './validation';\n\n/**\n * The JSX runtime for Snaps SDK components. This function is used to render\n * Snap components into a format that can be used by the Snaps.\n *\n * This is the \"development\" version of the runtime, which includes additional\n * validation, which is otherwise handled by MetaMask. To use this runtime,\n * specify `@metamask/snaps-sdk` as import source for JSX, and use\n * `react-jsxdev` as the pragma.\n *\n * @param component - The component to render.\n * @param props - The props to pass to the component.\n * @param key - The key of the component.\n * @returns The rendered component.\n * @see https://www.typescriptlang.org/tsconfig/#jsx\n */\nexport function jsxDEV<Props extends JsonObject>(\n  component: SnapComponent<Props>,\n  props: Props,\n  key: Key | null,\n): unknown | null {\n  const element = jsx(component, props, key);\n  assertJSXElement(element);\n\n  return element;\n}\n"]}