{"version":3,"file":"HTMLRendererPlugin.mjs","names":[],"sources":["../../../src/html/HTMLRendererPlugin.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\nimport { useHTMLContext } from './HTMLProvider';\nimport { renderHTML } from './HTMLRenderer';\n\ntype HTMLRendererPluginProps = {\n  html: string;\n  userComponents?: Record<string, any>;\n};\n\nexport const HTMLRendererPlugin: FC<HTMLRendererPluginProps> = (\n  props\n): ReactNode => {\n  const { html, userComponents } = props;\n  const context = useHTMLContext();\n\n  return renderHTML(html, {\n    components: {\n      ...context?.components,\n      ...userComponents,\n    },\n  });\n};\n"],"mappings":";;;;AASA,MAAa,sBACX,UACc;CACd,MAAM,EAAE,MAAM,mBAAmB;AAGjC,QAAO,WAAW,MAAM,EACtB,YAAY;EACV,GAJY,gBAIF,EAAE;EACZ,GAAG;EACJ,EACF,CAAC"}