@kitn.ai/ui
Version:
Framework-agnostic, Shadow-DOM web components for building AI chat interfaces — works in React, Vue, Angular, Svelte, or plain HTML. Authored in SolidJS.
14 lines (13 loc) • 989 B
TypeScript
/** Resolves once the kai-* elements are registered (browser); inert on the server.
* Await this instead of customElements.whenDefined for a single ready signal.
*
* NOTE: this MUST stay an exported binding. A bare `void import('./register-impl')`
* is a result-unused dynamic import that the single-entry register-all build
* (vite.config.ts → dist/kai.es.js) tree-shakes away as dead code, leaving the
* bundle with NOTHING registered. Exporting the promise keeps the import live. */
export declare const elementsReady: Promise<unknown>;
export type { ChatMessage, ChatMessageAction } from './chat-types';
export { configureCodeHighlighting, isCodeHighlightingEnabled } from '../primitives/highlighter';
export type { CodeHighlightingOptions } from '../primitives/highlighter';
export { toast, configureToasts } from '../primitives/toast-store';
export type { ToastConfig, ToastItem, ToastVariant, ToastAction, ToastOptions, ToastHandle, } from '../primitives/toast-store';