@copilotkit/a2ui-renderer
Version:
A2UI Renderer for CopilotKit - render A2UI surfaces in React applications
19 lines (17 loc) • 766 B
JavaScript
//#region src/a2ui-types.ts
/** Default surface ID when none is specified */
const DEFAULT_SURFACE_ID = "default";
/**
* The component id every renderer starts from when it walks a surface.
*
* A2UI v0.9 gives a payload no way to name its own entry point — `createSurface`
* carries only `surfaceId`, `catalogId` and `theme` — so the id is fixed here
* instead. A surface whose components do not include this id has nothing to
* begin from and paints only the not-yet-arrived placeholder, which is why
* `A2UIMessageRenderer` reports that state once operations have stopped.
*/
const ROOT_COMPONENT_ID = "root";
//#endregion
exports.DEFAULT_SURFACE_ID = DEFAULT_SURFACE_ID;
exports.ROOT_COMPONENT_ID = ROOT_COMPONENT_ID;
//# sourceMappingURL=a2ui-types.cjs.map