UNPKG

@copilotkit/a2ui-renderer

Version:

A2UI Renderer for CopilotKit - render A2UI surfaces in React applications

1 lines 2.96 kB
{"version":3,"file":"index.cjs","names":["Text","Image","Icon","Video","AudioPlayer","Row","Column","List","Card","Tabs","Divider","Modal","Button","TextField","CheckBox","ChoicePicker","Slider","DateTimeInput","Catalog","BASIC_FUNCTIONS"],"sources":["../../../../../src/react-renderer/a2ui-react/catalog/basic/index.ts"],"sourcesContent":["/**\n * Copyright 2026 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Catalog } from \"@a2ui/web_core/v0_9\";\nimport { BASIC_FUNCTIONS } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport type { ReactComponentImplementation } from \"../../adapter\";\n\nimport { Text } from \"./components/Text\";\nimport { Image } from \"./components/Image\";\nimport { Icon } from \"./components/Icon\";\nimport { Video } from \"./components/Video\";\nimport { AudioPlayer } from \"./components/AudioPlayer\";\nimport { Row } from \"./components/Row\";\nimport { Column } from \"./components/Column\";\nimport { List } from \"./components/List\";\nimport { Card } from \"./components/Card\";\nimport { Tabs } from \"./components/Tabs\";\nimport { Divider } from \"./components/Divider\";\nimport { Modal } from \"./components/Modal\";\nimport { Button } from \"./components/Button\";\nimport { TextField } from \"./components/TextField\";\nimport { CheckBox } from \"./components/CheckBox\";\nimport { ChoicePicker } from \"./components/ChoicePicker\";\nimport { Slider } from \"./components/Slider\";\nimport { DateTimeInput } from \"./components/DateTimeInput\";\n\nconst basicComponents: ReactComponentImplementation[] = [\n Text,\n Image,\n Icon,\n Video,\n AudioPlayer,\n Row,\n Column,\n List,\n Card,\n Tabs,\n Divider,\n Modal,\n Button,\n TextField,\n CheckBox,\n ChoicePicker,\n Slider,\n DateTimeInput,\n];\n\nexport const basicCatalog = new Catalog<ReactComponentImplementation>(\n \"https://a2ui.org/specification/v0_9/basic_catalog.json\",\n basicComponents,\n BASIC_FUNCTIONS,\n);\n\nexport {\n Text,\n Image,\n Icon,\n Video,\n AudioPlayer,\n Row,\n Column,\n List,\n Card,\n Tabs,\n Divider,\n Modal,\n Button,\n TextField,\n CheckBox,\n ChoicePicker,\n Slider,\n DateTimeInput,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,MAAM,kBAAkD;CACtDA;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACD;AAED,MAAa,eAAe,IAAIC,4BAC9B,0DACA,iBACAC,kDACD"}