UNPKG

@copilotkit/a2ui-renderer

Version:

A2UI Renderer for CopilotKit - render A2UI surfaces in React applications

1 lines 831 B
{"version":3,"file":"a2ui-types.cjs","names":[],"sources":["../src/a2ui-types.ts"],"sourcesContent":["/**\n * v0.9 A2UI type definitions for CopilotKit integration.\n */\n\n/** Theme type - v0.9 themes are passed via createSurface message */\nexport type Theme = Record<string, unknown>;\n\n/**\n * Client event message dispatched when a user interacts with an A2UI surface.\n * This is the format expected by A2UIMessageRenderer's handleAction.\n */\nexport interface A2UIClientEventMessage {\n userAction?: {\n name: string;\n surfaceId: string;\n sourceComponentId?: string;\n context?: Record<string, unknown>;\n timestamp?: string;\n dataContextPath?: string;\n };\n}\n\n/** Default surface ID when none is specified */\nexport const DEFAULT_SURFACE_ID = \"default\";\n"],"mappings":";;;AAuBA,MAAa,qBAAqB"}