UNPKG

@copilotkit/a2ui-renderer

Version:

A2UI Renderer for CopilotKit - render A2UI surfaces in React applications

1 lines 866 B
{"version":3,"file":"video.cjs","names":["createLitComponent","VideoApi","getBaseLeafStyle"],"sources":["../../../../src/web-components/catalog/basic/video.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { VideoApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { getBaseLeafStyle } from \"./utils\";\n\nexport const Video = createLitComponent(\n VideoApi,\n ({ props }) => html`\n <video\n src=${props.url ?? \"\"}\n controls\n style=${styleMap({\n ...getBaseLeafStyle(),\n width: \"100%\",\n aspectRatio: \"16/9\",\n })}\n ></video>\n`,\n);\n"],"mappings":";;;;;;;AAMA,MAAa,QAAQA,mCACnBC,6CACC,EAAE,YAAY,QAAI;;UAEX,MAAM,OAAO,GAAG;;sDAEL;CACf,GAAGC,gCAAkB;CACrB,OAAO;CACP,aAAa;CACd,CAAC,CAAC;;EAGN"}