UNPKG

@copilotkit/a2ui-renderer

Version:

A2UI Renderer for CopilotKit - render A2UI surfaces in React applications

22 lines (21 loc) 1.93 kB
import { A2UIClientEventMessage, Theme } from "../a2ui-types.cjs"; import { A2UIComponentProps, A2UIProviderConfig, Action, AnyComponentNode, BooleanValue, ComponentLoader, ComponentRegistration, DataValue, MessageProcessor, NumberValue, OnActionCallback, Primitives, ServerToClientMessage, StringValue, Surface, SurfaceID, Types } from "./types.cjs"; import { A2UIProvider, A2UIProviderProps, useA2UIActions, useA2UIContext, useA2UIError, useA2UIState, useA2UIStore, useA2UIStoreSelector } from "./core/A2UIProvider.cjs"; import { A2UIRenderer, A2UIRendererProps } from "./core/A2UIRenderer.cjs"; import { UseA2UIResult, useA2UI } from "./hooks/useA2UI.cjs"; import { ThemeProvider, useTheme, useThemeOptional } from "./theme/ThemeContext.cjs"; import { cn } from "./lib/utils.cjs"; import { A2UI_SCHEMA_CONTEXT_DESCRIPTION, InlineCatalogSchema, buildCatalogContextValue, extendsBasicCatalog, extractCatalogComponentSchemas, getCustomComponentNames } from "./catalog-utils.cjs"; import { ReactComponentImplementation, createReactComponent } from "./a2ui-react/adapter.cjs"; import { basicCatalog } from "./a2ui-react/catalog/basic/index.cjs"; import { A2UIComponentDefinition, A2UIComponentMap, CatalogComponentDefinition, CatalogDefinitions, CatalogRenderers, ComponentRenderer, PropsOf, RendererProps, createA2UICatalog, createCatalog, extractA2UISchema, extractSchema } from "./create-catalog.cjs"; import { injectStyles, removeStyles } from "./styles/index.cjs"; import { Catalog as Catalog$1 } from "@a2ui/web_core/v0_9"; //#region src/react-renderer/index.d.ts declare function registerDefaultCatalog(): void; declare function initializeDefaultCatalog(): void; declare const defaultTheme: Record<string, unknown>; declare const litTheme: Record<string, unknown>; //#endregion export { Catalog$1 as Catalog, defaultTheme, initializeDefaultCatalog, litTheme, registerDefaultCatalog }; //# sourceMappingURL=index.d.cts.map