@kitn.ai/ui 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +394 -0
- package/dist/bash-InADTalH.js +1 -0
- package/dist/core-AYMC6_lb.js +12 -0
- package/dist/css-M7EaDHN_.js +1 -0
- package/dist/custom-elements.json +4739 -0
- package/dist/engine-javascript-vq0WuIJl.js +141 -0
- package/dist/github-dark-dimmed-DUshB20C.js +1 -0
- package/dist/github-light-JYsPkUQd.js +1 -0
- package/dist/host-embed.d.ts +33 -0
- package/dist/html-CPZ3oZQ7.js +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/javascript-C25yR2R2.js +1 -0
- package/dist/json-DxJze_jm.js +1 -0
- package/dist/kitn-chat-provider.d.ts +2 -0
- package/dist/kitn-chat-provider.es.js +240 -0
- package/dist/kitn-chat.es.js +77 -0
- package/dist/llms/llms-full.txt +1018 -0
- package/dist/llms/llms.txt +104 -0
- package/dist/origin.d.ts +5 -0
- package/dist/provider-runtime.d.ts +27 -0
- package/dist/schemas/card-envelope.schema.json +14 -0
- package/dist/schemas/card-event.schema.json +12 -0
- package/dist/schemas/choice.schema.json +70 -0
- package/dist/schemas/confirm.schema.json +65 -0
- package/dist/schemas/embed.schema.json +65 -0
- package/dist/schemas/form.result.schema.json +7 -0
- package/dist/schemas/form.schema.json +33 -0
- package/dist/schemas/link.schema.json +56 -0
- package/dist/schemas/tasks.result.schema.json +16 -0
- package/dist/schemas/tasks.schema.json +78 -0
- package/dist/svelte--5p79yCD.js +1 -0
- package/dist/theme.tokens.css +176 -0
- package/dist/tsx-B8rCNbgL.js +1 -0
- package/dist/typescript-RycA9KXf.js +1 -0
- package/dist/validate.d.ts +4 -0
- package/dist/version.d.ts +4 -0
- package/dist/vue-BmIZj4XD.js +1 -0
- package/dist/wire.d.ts +53 -0
- package/frameworks/react/index.tsx +948 -0
- package/frameworks/react/runtime.tsx +94 -0
- package/llms-full.txt +1018 -0
- package/llms.txt +104 -0
- package/package.json +141 -0
- package/src/components/artifact.stories.tsx +138 -0
- package/src/components/artifact.tsx +743 -0
- package/src/components/attachments.stories.tsx +303 -0
- package/src/components/attachments.test.tsx +64 -0
- package/src/components/attachments.tsx +399 -0
- package/src/components/card-fallback.tsx +28 -0
- package/src/components/card-renderer.tsx +52 -0
- package/src/components/card.tsx +110 -0
- package/src/components/chain-of-thought.stories.tsx +211 -0
- package/src/components/chain-of-thought.tsx +139 -0
- package/src/components/chat-container.stories.tsx +187 -0
- package/src/components/chat-container.tsx +82 -0
- package/src/components/chat-scope-picker.tsx +47 -0
- package/src/components/chat-thread.test.tsx +58 -0
- package/src/components/chat-thread.tsx +249 -0
- package/src/components/checkpoint.stories.tsx +102 -0
- package/src/components/checkpoint.tsx +88 -0
- package/src/components/choice-card.tsx +569 -0
- package/src/components/code-block.stories.tsx +150 -0
- package/src/components/code-block.tsx +105 -0
- package/src/components/component-meta.json +3735 -0
- package/src/components/confirm-card.stories.tsx +74 -0
- package/src/components/confirm-card.tsx +315 -0
- package/src/components/context.stories.tsx +229 -0
- package/src/components/context.test.tsx +133 -0
- package/src/components/context.tsx +363 -0
- package/src/components/conversation-item.stories.tsx +125 -0
- package/src/components/conversation-item.tsx +16 -0
- package/src/components/conversation-list.stories.tsx +133 -0
- package/src/components/conversation-list.tsx +101 -0
- package/src/components/default-input.test.tsx +111 -0
- package/src/components/embed.tsx +196 -0
- package/src/components/empty.stories.tsx +434 -0
- package/src/components/empty.tsx +166 -0
- package/src/components/feedback-bar.stories.tsx +138 -0
- package/src/components/feedback-bar.test.tsx +103 -0
- package/src/components/feedback-bar.tsx +166 -0
- package/src/components/file-tree.stories.tsx +73 -0
- package/src/components/file-tree.tsx +383 -0
- package/src/components/file-upload.stories.tsx +156 -0
- package/src/components/file-upload.tsx +161 -0
- package/src/components/form-widgets.tsx +461 -0
- package/src/components/form.tsx +873 -0
- package/src/components/image.stories.tsx +89 -0
- package/src/components/image.tsx +67 -0
- package/src/components/link-preview.tsx +194 -0
- package/src/components/loader.stories.tsx +181 -0
- package/src/components/loader.tsx +333 -0
- package/src/components/markdown.stories.tsx +180 -0
- package/src/components/markdown.tsx +81 -0
- package/src/components/message-action-bar.test.tsx +128 -0
- package/src/components/message-narrow.stories.tsx +329 -0
- package/src/components/message-skills.stories.tsx +211 -0
- package/src/components/message-skills.tsx +36 -0
- package/src/components/message.stories.tsx +281 -0
- package/src/components/message.tsx +227 -0
- package/src/components/model-switcher.stories.tsx +123 -0
- package/src/components/model-switcher.test.tsx +65 -0
- package/src/components/model-switcher.tsx +87 -0
- package/src/components/prompt-input.stories.tsx +222 -0
- package/src/components/prompt-input.tsx +211 -0
- package/src/components/prompt-suggestion.stories.tsx +142 -0
- package/src/components/prompt-suggestion.tsx +115 -0
- package/src/components/reasoning.stories.tsx +140 -0
- package/src/components/reasoning.tsx +156 -0
- package/src/components/resizable.test.tsx +226 -0
- package/src/components/response-stream.tsx +103 -0
- package/src/components/scroll-button.stories.tsx +100 -0
- package/src/components/scroll-button.tsx +34 -0
- package/src/components/slash-command.stories.tsx +163 -0
- package/src/components/slash-command.tsx +232 -0
- package/src/components/source-list.test.tsx +152 -0
- package/src/components/source.stories.tsx +124 -0
- package/src/components/source.tsx +129 -0
- package/src/components/tasks-card.stories.tsx +78 -0
- package/src/components/tasks-card.tsx +432 -0
- package/src/components/text-shimmer.stories.tsx +87 -0
- package/src/components/text-shimmer.tsx +37 -0
- package/src/components/thinking-bar.stories.tsx +87 -0
- package/src/components/thinking-bar.tsx +50 -0
- package/src/components/tool.stories.tsx +153 -0
- package/src/components/tool.tsx +184 -0
- package/src/components/use-card-resolution.ts +28 -0
- package/src/components/voice-input.stories.tsx +83 -0
- package/src/components/voice-input.tsx +107 -0
- package/src/elements/artifact.stories.tsx +506 -0
- package/src/elements/artifact.tsx +137 -0
- package/src/elements/attachments.stories.tsx +190 -0
- package/src/elements/attachments.tsx +136 -0
- package/src/elements/card.stories.tsx +113 -0
- package/src/elements/card.tsx +40 -0
- package/src/elements/cards.stories.tsx +59 -0
- package/src/elements/cards.tsx +97 -0
- package/src/elements/catalog.stories.tsx +491 -0
- package/src/elements/chain-of-thought.declarative.test.tsx +153 -0
- package/src/elements/chain-of-thought.stories.tsx +113 -0
- package/src/elements/chain-of-thought.tsx +92 -0
- package/src/elements/chat-scope-picker.stories.tsx +73 -0
- package/src/elements/chat-scope-picker.tsx +36 -0
- package/src/elements/chat-types.ts +42 -0
- package/src/elements/chat-workspace.stories.tsx +288 -0
- package/src/elements/chat-workspace.tsx +161 -0
- package/src/elements/chat.stories.tsx +151 -0
- package/src/elements/chat.tsx +80 -0
- package/src/elements/checkpoint.stories.tsx +72 -0
- package/src/elements/checkpoint.tsx +47 -0
- package/src/elements/choice.stories.tsx +240 -0
- package/src/elements/choice.tsx +48 -0
- package/src/elements/code-block.stories.tsx +83 -0
- package/src/elements/code-block.tsx +42 -0
- package/src/elements/compiled.css +2 -0
- package/src/elements/composed-shell.stories.tsx +316 -0
- package/src/elements/confirm-card.stories.tsx +227 -0
- package/src/elements/confirm-card.tsx +51 -0
- package/src/elements/context-meter.stories.tsx +151 -0
- package/src/elements/context-meter.tsx +121 -0
- package/src/elements/conversation-list.declarative.test.tsx +137 -0
- package/src/elements/conversation-list.stories.tsx +243 -0
- package/src/elements/conversation-list.tsx +80 -0
- package/src/elements/css.ts +5 -0
- package/src/elements/default-input.tsx +247 -0
- package/src/elements/define.tsx +171 -0
- package/src/elements/element-meta.json +3314 -0
- package/src/elements/element-types.d.ts +710 -0
- package/src/elements/embed.stories.tsx +213 -0
- package/src/elements/embed.tsx +35 -0
- package/src/elements/empty.stories.tsx +111 -0
- package/src/elements/empty.tsx +29 -0
- package/src/elements/feedback-bar.stories.tsx +114 -0
- package/src/elements/feedback-bar.tsx +61 -0
- package/src/elements/file-tree.stories.tsx +134 -0
- package/src/elements/file-tree.tsx +52 -0
- package/src/elements/file-upload.stories.tsx +82 -0
- package/src/elements/file-upload.tsx +44 -0
- package/src/elements/form.stories.tsx +248 -0
- package/src/elements/form.tsx +43 -0
- package/src/elements/framework-usage.json +563 -0
- package/src/elements/image.stories.tsx +71 -0
- package/src/elements/image.tsx +32 -0
- package/src/elements/link-preview.stories.tsx +209 -0
- package/src/elements/link-preview.tsx +34 -0
- package/src/elements/loader.stories.tsx +88 -0
- package/src/elements/loader.tsx +25 -0
- package/src/elements/markdown.stories.tsx +76 -0
- package/src/elements/markdown.tsx +38 -0
- package/src/elements/message-skills.declarative.test.tsx +104 -0
- package/src/elements/message-skills.stories.tsx +114 -0
- package/src/elements/message-skills.tsx +85 -0
- package/src/elements/message.stories.tsx +218 -0
- package/src/elements/message.tsx +162 -0
- package/src/elements/model-switcher.declarative.test.tsx +130 -0
- package/src/elements/model-switcher.stories.tsx +198 -0
- package/src/elements/model-switcher.tsx +93 -0
- package/src/elements/popover.stories.tsx +80 -0
- package/src/elements/popover.tsx +59 -0
- package/src/elements/prompt-input-slash-command.test.tsx +128 -0
- package/src/elements/prompt-input-stoppable.test.tsx +88 -0
- package/src/elements/prompt-input-toolbar-actions.test.tsx +120 -0
- package/src/elements/prompt-input.stories.tsx +331 -0
- package/src/elements/prompt-input.tsx +185 -0
- package/src/elements/prompt-suggestions.declarative.test.tsx +164 -0
- package/src/elements/prompt-suggestions.stories.tsx +213 -0
- package/src/elements/prompt-suggestions.tsx +94 -0
- package/src/elements/reasoning.stories.tsx +77 -0
- package/src/elements/reasoning.tsx +50 -0
- package/src/elements/register.ts +56 -0
- package/src/elements/remote.stories.tsx +314 -0
- package/src/elements/remote.tsx +221 -0
- package/src/elements/resizable.d.ts +27 -0
- package/src/elements/resizable.stories.tsx +426 -0
- package/src/elements/resizable.tsx +553 -0
- package/src/elements/response-stream.stories.tsx +79 -0
- package/src/elements/response-stream.tsx +40 -0
- package/src/elements/scroll-button.stories.tsx +202 -0
- package/src/elements/scroll-button.test.tsx +148 -0
- package/src/elements/scroll-button.tsx +126 -0
- package/src/elements/source-list.stories.tsx +143 -0
- package/src/elements/source.stories.tsx +88 -0
- package/src/elements/source.tsx +120 -0
- package/src/elements/styles.css +199 -0
- package/src/elements/switch.stories.tsx +56 -0
- package/src/elements/switch.tsx +43 -0
- package/src/elements/tasks.stories.tsx +237 -0
- package/src/elements/tasks.tsx +46 -0
- package/src/elements/text-shimmer.stories.tsx +64 -0
- package/src/elements/text-shimmer.tsx +28 -0
- package/src/elements/thinking-bar.stories.tsx +72 -0
- package/src/elements/thinking-bar.tsx +34 -0
- package/src/elements/tool.stories.tsx +89 -0
- package/src/elements/tool.tsx +23 -0
- package/src/elements/voice-input.stories.tsx +88 -0
- package/src/elements/voice-input.tsx +41 -0
- package/src/index.ts +253 -0
- package/src/primitives/card-contract.ts +71 -0
- package/src/primitives/card-host.tsx +35 -0
- package/src/primitives/card-registry.tsx +67 -0
- package/src/primitives/card-resolution.ts +36 -0
- package/src/primitives/card-routing.ts +79 -0
- package/src/primitives/card-schemas/card-envelope.schema.json +14 -0
- package/src/primitives/card-schemas/card-event.schema.json +12 -0
- package/src/primitives/card-schemas/choice.schema.json +70 -0
- package/src/primitives/card-schemas/confirm.schema.json +65 -0
- package/src/primitives/card-schemas/embed.schema.json +65 -0
- package/src/primitives/card-schemas/form.result.schema.json +7 -0
- package/src/primitives/card-schemas/form.schema.json +33 -0
- package/src/primitives/card-schemas/link.schema.json +56 -0
- package/src/primitives/card-schemas/tasks.result.schema.json +16 -0
- package/src/primitives/card-schemas/tasks.schema.json +78 -0
- package/src/primitives/card-validate.ts +95 -0
- package/src/primitives/chat-config.tsx +76 -0
- package/src/primitives/controllable.test.ts +47 -0
- package/src/primitives/controllable.ts +21 -0
- package/src/primitives/embed-providers.ts +254 -0
- package/src/primitives/highlighter.ts +157 -0
- package/src/primitives/link-preview.ts +87 -0
- package/src/primitives/pdf-preview.ts +121 -0
- package/src/primitives/use-auto-resize.ts +31 -0
- package/src/primitives/use-resize-observer.ts +12 -0
- package/src/primitives/use-stick-to-bottom.ts +43 -0
- package/src/primitives/use-text-stream.ts +112 -0
- package/src/primitives/use-voice-recorder.ts +50 -0
- package/src/remote/host-embed.ts +345 -0
- package/src/remote/index.ts +2 -0
- package/src/remote/origin.ts +30 -0
- package/src/remote/provider-runtime.ts +259 -0
- package/src/remote/provider.ts +2 -0
- package/src/remote/validate.ts +22 -0
- package/src/remote/version.ts +12 -0
- package/src/remote/wire.ts +48 -0
- package/src/stories/chat-panel-layout.stories.tsx +145 -0
- package/src/stories/chat-scene.tsx +571 -0
- package/src/stories/checkpoint-restore.stories.tsx +256 -0
- package/src/stories/context-usage.stories.tsx +212 -0
- package/src/stories/conversation-with-reasoning.stories.tsx +182 -0
- package/src/stories/conversation-with-sources.stories.tsx +471 -0
- package/src/stories/docs/Accessibility.mdx +119 -0
- package/src/stories/docs/ChildElements.mdx +269 -0
- package/src/stories/docs/ForAIAgents.mdx +162 -0
- package/src/stories/docs/GettingStarted.mdx +65 -0
- package/src/stories/docs/Installation.mdx +83 -0
- package/src/stories/docs/Introduction.mdx +50 -0
- package/src/stories/docs/SolidJsAdvanced.mdx +17 -0
- package/src/stories/docs/Theming.mdx +85 -0
- package/src/stories/docs/element-controls.ts +121 -0
- package/src/stories/docs/frameworks/Angular.mdx +245 -0
- package/src/stories/docs/frameworks/Html.mdx +227 -0
- package/src/stories/docs/frameworks/Overview.mdx +47 -0
- package/src/stories/docs/frameworks/React.mdx +227 -0
- package/src/stories/docs/frameworks/Solid.mdx +173 -0
- package/src/stories/docs/frameworks/Svelte.mdx +194 -0
- package/src/stories/docs/frameworks/Vue.mdx +238 -0
- package/src/stories/docs/generative-ui-overview.mdx +186 -0
- package/src/stories/docs/recipes/SpeechToText.mdx +7 -0
- package/src/stories/docs/recipes/Streaming.mdx +68 -0
- package/src/stories/docs/recipes/TextToSpeech.mdx +35 -0
- package/src/stories/docs/theme-editor/canvas.tsx +32 -0
- package/src/stories/docs/theme-editor/inspector.tsx +66 -0
- package/src/stories/docs/theme-editor/presets.test.ts +32 -0
- package/src/stories/docs/theme-editor/presets.ts +64 -0
- package/src/stories/docs/theme-editor/theme-css.test.ts +19 -0
- package/src/stories/docs/theme-editor/theme-css.ts +15 -0
- package/src/stories/docs/theme-editor/theme-editor.tsx +146 -0
- package/src/stories/docs/theme-tokens.tsx +174 -0
- package/src/stories/examples/ChoosingComponents.mdx +106 -0
- package/src/stories/examples/sample-data.ts +79 -0
- package/src/stories/examples/usage/checkpoint-restore.ts +156 -0
- package/src/stories/examples/usage/context-usage.ts +591 -0
- package/src/stories/examples/usage/conversation-with-reasoning.ts +224 -0
- package/src/stories/examples/usage/conversation-with-sources.ts +589 -0
- package/src/stories/examples/usage/empty-state.ts +144 -0
- package/src/stories/examples/usage/full-chat-app.ts +277 -0
- package/src/stories/examples/usage/index.ts +63 -0
- package/src/stories/examples/usage/message-actions.ts +704 -0
- package/src/stories/examples/usage/pattern-centered-conversation.ts +446 -0
- package/src/stories/examples/usage/pattern-chat-panel-layout.ts +442 -0
- package/src/stories/examples/usage/pattern-docked-widget.ts +479 -0
- package/src/stories/examples/usage/prompt-input-variants.ts +1356 -0
- package/src/stories/examples/usage/streaming-response.ts +687 -0
- package/src/stories/examples/usage/types.ts +33 -0
- package/src/stories/full-chat.stories.tsx +18 -0
- package/src/stories/message-actions.stories.tsx +230 -0
- package/src/stories/pattern-centered-conversation.stories.tsx +93 -0
- package/src/stories/pattern-docked-widget.stories.tsx +93 -0
- package/src/stories/pattern-empty-state.stories.tsx +76 -0
- package/src/stories/prompt-input-variants.stories.tsx +456 -0
- package/src/stories/streaming-response.stories.tsx +438 -0
- package/src/stories/theme-editor.stories.tsx +16 -0
- package/src/stories/token-reference.stories.tsx +18 -0
- package/src/stories/typography.stories.tsx +78 -0
- package/src/types.ts +47 -0
- package/src/ui/action-icons.ts +52 -0
- package/src/ui/avatar.stories.tsx +103 -0
- package/src/ui/avatar.tsx +23 -0
- package/src/ui/badge.stories.tsx +86 -0
- package/src/ui/badge.tsx +21 -0
- package/src/ui/button.stories.tsx +145 -0
- package/src/ui/button.tsx +38 -0
- package/src/ui/collapsible.stories.tsx +69 -0
- package/src/ui/collapsible.tsx +125 -0
- package/src/ui/dropdown.stories.tsx +59 -0
- package/src/ui/dropdown.tsx +196 -0
- package/src/ui/hover-card.stories.tsx +77 -0
- package/src/ui/hover-card.test.tsx +30 -0
- package/src/ui/hover-card.tsx +172 -0
- package/src/ui/overlay.stories.tsx +115 -0
- package/src/ui/overlay.tsx +158 -0
- package/src/ui/popover.stories.tsx +81 -0
- package/src/ui/popover.test.tsx +99 -0
- package/src/ui/popover.tsx +92 -0
- package/src/ui/resizable.stories.tsx +236 -0
- package/src/ui/resizable.tsx +576 -0
- package/src/ui/scroll-area.stories.tsx +50 -0
- package/src/ui/scroll-area.tsx +15 -0
- package/src/ui/separator.stories.tsx +81 -0
- package/src/ui/separator.tsx +10 -0
- package/src/ui/skeleton.stories.tsx +337 -0
- package/src/ui/skeleton.tsx +16 -0
- package/src/ui/switch.stories.tsx +51 -0
- package/src/ui/switch.test.tsx +59 -0
- package/src/ui/switch.tsx +62 -0
- package/src/ui/textarea.stories.tsx +76 -0
- package/src/ui/textarea.tsx +21 -0
- package/src/ui/tooltip.stories.tsx +74 -0
- package/src/ui/tooltip.tsx +68 -0
- package/src/utils/cn.ts +24 -0
- package/theme.css +187 -0
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/gen-element-api.mjs — do not edit by hand.
|
|
2
|
+
// Typed custom-element interfaces + HTMLElementTagNameMap augmentation, so
|
|
3
|
+
// `document.querySelector('kai-message')` is typed and gets prop autocomplete.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// Re-exports for `import { … } from '@kitn.ai/ui/elements'`.
|
|
7
|
+
export type { ChatMessage, ChatMessageAction } from './chat-types';
|
|
8
|
+
export { configureCodeHighlighting, isCodeHighlightingEnabled } from '../primitives/highlighter';
|
|
9
|
+
export type { CodeHighlightingOptions } from '../primitives/highlighter';
|
|
10
|
+
|
|
11
|
+
export interface KaiArtifactElement extends HTMLElement {
|
|
12
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
13
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
14
|
+
/** URL the preview iframe frames. Consumer-controlled. */
|
|
15
|
+
src?: string;
|
|
16
|
+
/** Files for the Code tab tree + each file's preview `url`. Set as a JS property (array). */
|
|
17
|
+
files: { path: string; url?: undefined | string; code?: undefined | string; language?: undefined | string; type?: undefined | "html" | "pdf" | "image" | "other" }[];
|
|
18
|
+
/** Active tab: `preview` (default) or `code`. */
|
|
19
|
+
tab?: "preview" | "code";
|
|
20
|
+
/** Selected file path — syncs the tree highlight, Code source, and preview. */
|
|
21
|
+
activeFile?: string;
|
|
22
|
+
/** iframe `sandbox` override. Secure default `allow-scripts allow-forms` (NOT `allow-same-origin`). */
|
|
23
|
+
sandbox?: string;
|
|
24
|
+
/** Accessible title for the preview iframe. */
|
|
25
|
+
iframeTitle?: string;
|
|
26
|
+
/** Reflects the artifact's own maximized view-state (usually driven by the protocol). */
|
|
27
|
+
maximized?: boolean;
|
|
28
|
+
/** Show the expand-to-fill button (OPT-IN). */
|
|
29
|
+
expandable?: boolean;
|
|
30
|
+
/** Show the open-in-new-tab button (OPT-IN). */
|
|
31
|
+
openInTab?: boolean;
|
|
32
|
+
/** Hide back/forward. */
|
|
33
|
+
noNav?: boolean;
|
|
34
|
+
/** Hide reload. */
|
|
35
|
+
noReload?: boolean;
|
|
36
|
+
/** Hide home. */
|
|
37
|
+
noHome?: boolean;
|
|
38
|
+
/** Hide the address field. */
|
|
39
|
+
noPathField?: boolean;
|
|
40
|
+
/** Hide the Preview|Code toggle. */
|
|
41
|
+
noTabs?: boolean;
|
|
42
|
+
/** Standalone chrome: rounded corners + border (else square, borderless in-panel). */
|
|
43
|
+
standalone?: boolean;
|
|
44
|
+
/** Show the address but make it read-only (visible, nav-tracking, non-editable). */
|
|
45
|
+
readonlyPath?: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface KaiAttachmentsElement extends HTMLElement {
|
|
49
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
50
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
51
|
+
/** The attachments to render. Set as a JS property (array). */
|
|
52
|
+
items: { id: string; type: "file" | "source-document"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[];
|
|
53
|
+
/** Layout: `grid` = visual tiles, `inline` = icon + label chips, `list` = rows. */
|
|
54
|
+
variant?: "grid" | "inline" | "list";
|
|
55
|
+
/** Wrap each item in a hover card that previews its details. */
|
|
56
|
+
hoverCard?: boolean;
|
|
57
|
+
/** Show a remove button per item; clicking it fires a `kai-remove` event. */
|
|
58
|
+
removable?: boolean;
|
|
59
|
+
/** Also show the media type beneath the filename (non-grid variants). */
|
|
60
|
+
showMediaType?: boolean;
|
|
61
|
+
/** Text shown when `items` is empty. */
|
|
62
|
+
emptyText?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface KaiCardElement extends HTMLElement {
|
|
66
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
67
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
68
|
+
/** Heading rendered in the card chrome (= CardEnvelope.title). Attribute: `heading`. */
|
|
69
|
+
heading?: string;
|
|
70
|
+
/** Supporting text under the heading. Attribute: `description`. */
|
|
71
|
+
description?: string;
|
|
72
|
+
/** When set, the card renders its inline error state instead of the body. Attribute: `error-message`. */
|
|
73
|
+
errorMessage?: string;
|
|
74
|
+
/** Compact spacing for dense lists. Attribute: `dense`. */
|
|
75
|
+
dense?: boolean;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface KaiCardsElement extends HTMLElement {
|
|
79
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
80
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
81
|
+
/** The stream of card envelopes to render. Set as a JS PROPERTY: `el.cards = [...]`. */
|
|
82
|
+
cards?: { type: string; id: string; data: unknown; title?: string; resolution?: { kind: "action"; action: string; payload?: unknown; at?: string } | { kind: "submit"; data: unknown; at?: string } }[];
|
|
83
|
+
/** Optional type→tag overrides/additions (merged over the built-ins). Property: `el.types`. Typed as a plain string map (not the `CardTagMap` alias) so the generated React wrapper inlines it instead of emitting an unresolved named type. */
|
|
84
|
+
types?: Record<string, string>;
|
|
85
|
+
/** Optional CardPolicy handling child events. Property: `el.policy`. */
|
|
86
|
+
policy?: { onSubmit?: (cardId: string, data: unknown) => void; onAction?: (cardId: string, action: string, payload?: unknown) => void; onSendPrompt?: (text: string, opts: { mode: "compose" | "send"; context?: unknown; }) => void; onOpen?: (url: string, target: "tab" | "artifact") => void; onState?: (cardId: string, patch: unknown) => void; onDismiss?: (cardId: string) => void; onError?: (cardId: string, message: string) => void; maxSendPromptMode?: "compose" | "send" };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface KaiChainOfThoughtElement extends HTMLElement {
|
|
90
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
91
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
92
|
+
/** The reasoning steps. Set as a JS property. Compound sub-parts collapse to this one data model (Route 1). */
|
|
93
|
+
steps: { label: string; content?: undefined | string }[];
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface KaiChatElement extends HTMLElement {
|
|
97
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
98
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
99
|
+
/** The full message thread to render, newest last. Each entry carries its role, content, and optional reasoning/tools/attachments/actions. Set as a JS property (`el.messages = [...]`). */
|
|
100
|
+
messages: { id: string; role: "user" | "assistant"; content: string; reasoning?: undefined | { text: string; label?: undefined | string }; tools?: undefined | { type: string; state: "input-streaming" | "input-available" | "output-available" | "output-error"; input?: undefined | Record<string, unknown>; output?: undefined | Record<string, unknown>; toolCallId?: undefined | string; errorText?: undefined | string }[]; attachments?: undefined | { id: string; type: "file" | "source-document"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[]; actions?: undefined | ("copy" | "like" | "dislike" | "regenerate" | "edit" | { id: string; label: string; icon?: undefined | string; tooltip?: undefined | string })[]; avatar?: undefined | { src?: undefined | string; fallback?: undefined | string; alt?: undefined | string } }[];
|
|
101
|
+
/** Controlled value of the input. When set, the host owns the input text and must update it on `kai-value-change`; leave unset for uncontrolled behavior. */
|
|
102
|
+
value?: string;
|
|
103
|
+
/** Placeholder text shown in the empty input. */
|
|
104
|
+
placeholder?: string;
|
|
105
|
+
/** When true, shows the loading/streaming state and disables submit (use while awaiting the assistant's reply). */
|
|
106
|
+
loading?: boolean;
|
|
107
|
+
/** Starter prompts shown above the input when the thread is empty. Clicking one follows `suggestionMode`. Set as a JS property. */
|
|
108
|
+
suggestions?: string[];
|
|
109
|
+
/** What clicking a suggestion does: `'submit'` (default) sends it immediately as if typed and submitted; `'fill'` just places it in the input. */
|
|
110
|
+
suggestionMode?: "submit" | "fill";
|
|
111
|
+
/** Keep suggestions visible after the conversation starts. By default suggestions are conversation starters and hide once `messages` is non-empty; set this to keep them always shown. Default false. */
|
|
112
|
+
persistSuggestions?: boolean;
|
|
113
|
+
/** Body/prose font scale for rendered markdown (`'xs' | 'sm' | 'base' | 'lg'`). Defaults to `'sm'`. */
|
|
114
|
+
proseSize?: "xs" | "sm" | "base" | "lg";
|
|
115
|
+
/** Shiki theme name for syntax-highlighted code blocks (e.g. `'github-dark-dimmed'`). */
|
|
116
|
+
codeTheme?: string;
|
|
117
|
+
/** Enable Shiki syntax highlighting in code blocks. Turn off to render plain `<pre>` blocks (lighter, no highlighter load). Default true. */
|
|
118
|
+
codeHighlight?: boolean;
|
|
119
|
+
/** Optional header title shown on the left of the header. */
|
|
120
|
+
chatTitle?: string;
|
|
121
|
+
/** Optional model list. When set (>1 model) a ModelSwitcher is shown in the header and a `kai-model-change` event fires on selection. */
|
|
122
|
+
models?: { id: string; name: string; provider?: string; description?: string; group?: string }[];
|
|
123
|
+
/** The currently selected model id (pairs with `models`). */
|
|
124
|
+
currentModel?: string;
|
|
125
|
+
/** Optional context-window token usage. When set, a Context token meter is shown in the header. */
|
|
126
|
+
context?: { usedTokens: number; maxTokens: number; inputTokens?: number; outputTokens?: number; estimatedCost?: number };
|
|
127
|
+
/** Show the scroll-to-bottom button inside the scroll area. Default true. */
|
|
128
|
+
scrollButton?: boolean;
|
|
129
|
+
/** Whether the host has `slot="header-start"` content (left of the title) — set by the `<kai-chat>` facade so a custom control forces the header open. */
|
|
130
|
+
headerStart?: boolean;
|
|
131
|
+
/** Whether the host has `slot="header-end"` content (right of the controls). */
|
|
132
|
+
headerEnd?: boolean;
|
|
133
|
+
/** Show a Search (Globe) button in the input toolbar; fires a `search` event. */
|
|
134
|
+
search?: boolean;
|
|
135
|
+
/** Show a Voice (Mic) button in the input toolbar; fires a `voice` event. */
|
|
136
|
+
voice?: boolean;
|
|
137
|
+
/** Slash commands — when set, typing `/` in the input opens the command palette and fires `kai-slash-select`. Set as a JS property. */
|
|
138
|
+
slashCommands?: { id: string; label: string; description?: string; category?: string }[];
|
|
139
|
+
/** Command ids to highlight as active in the palette. */
|
|
140
|
+
slashActiveIds?: string[];
|
|
141
|
+
/** Single-line palette rows. */
|
|
142
|
+
slashCompact?: boolean;
|
|
143
|
+
/** Whether each message's action bar is always visible (`'always'`, default) or only revealed on hover of that message row (`'hover'`). */
|
|
144
|
+
actionsReveal?: "always" | "hover";
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface KaiCheckpointElement extends HTMLElement {
|
|
148
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
149
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
150
|
+
/** Optional text beside the icon. */
|
|
151
|
+
label?: string;
|
|
152
|
+
/** Tooltip on hover. */
|
|
153
|
+
tooltip?: string;
|
|
154
|
+
/** Visual button style. */
|
|
155
|
+
variant?: "ghost" | "default" | "outline";
|
|
156
|
+
/** Button size (use an `icon*` size for an icon-only checkpoint). */
|
|
157
|
+
size?: "sm" | "lg" | "md" | "icon" | "icon-sm";
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface KaiChoiceElement extends HTMLElement {
|
|
161
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
162
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
163
|
+
/** The choice definition (the CardEnvelope.data). Set as a JS PROPERTY: `el.data = { prompt, options:[…], allowOther?, submitLabel? }`. Import `ChoiceCardData` from `@kitn.ai/ui` for the full shape. */
|
|
164
|
+
data?: Record<string, unknown>;
|
|
165
|
+
/** Stable card id correlating every emitted CardEvent. Attribute: `card-id`. */
|
|
166
|
+
cardId?: string;
|
|
167
|
+
/** Heading rendered in the card chrome (= CardEnvelope.title). Attribute: `heading`. */
|
|
168
|
+
heading?: string;
|
|
169
|
+
/** Set when the user resolved this card; renders the read-only view. Property: `el.resolution = { kind:'action', action:'…' }`. */
|
|
170
|
+
resolution?: Record<string, unknown>;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface KaiCodeBlockElement extends HTMLElement {
|
|
174
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
175
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
176
|
+
/** The source code to render. */
|
|
177
|
+
code: string;
|
|
178
|
+
/** Language grammar (e.g. `js`, `python`). Defaults to `tsx`. */
|
|
179
|
+
language?: string;
|
|
180
|
+
/** Shiki theme name. */
|
|
181
|
+
codeTheme?: string;
|
|
182
|
+
/** Disable syntax highlighting (renders plain text, no Shiki). */
|
|
183
|
+
codeHighlight?: boolean;
|
|
184
|
+
/** Code text sizing. */
|
|
185
|
+
proseSize?: "xs" | "sm" | "base" | "lg";
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface KaiConfirmElement extends HTMLElement {
|
|
189
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
190
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
191
|
+
/** The confirm definition (the CardEnvelope.data). Set as a JS PROPERTY: `el.data = { body, tone, actions:[…] }`. Import `ConfirmCardData` from `@kitn.ai/ui` for the full shape. */
|
|
192
|
+
data?: Record<string, unknown>;
|
|
193
|
+
/** Stable card id correlating every emitted CardEvent. Attribute: `card-id`. */
|
|
194
|
+
cardId?: string;
|
|
195
|
+
/** Heading rendered in the card chrome (= CardEnvelope.title). Attribute: `heading`. */
|
|
196
|
+
heading?: string;
|
|
197
|
+
/** Focus the default action on mount (off by default — no focus-stealing). Attribute: `autofocus`. */
|
|
198
|
+
autofocus?: boolean;
|
|
199
|
+
/** Set when the user resolved this card; renders the read-only view. Property: `el.resolution = { kind:'action', action:'…' }`. */
|
|
200
|
+
resolution?: Record<string, unknown>;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface KaiContextElement extends HTMLElement {
|
|
204
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
205
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
206
|
+
/** Token-usage data. Set as a JS property. */
|
|
207
|
+
context?: { usedTokens: number; maxTokens: number; inputTokens?: number; outputTokens?: number; reasoningTokens?: number; cacheTokens?: number; estimatedCost?: number };
|
|
208
|
+
/** Fraction (0–1) above which the meter turns yellow. Defaults to `0.7` (70%). */
|
|
209
|
+
warnThreshold?: number;
|
|
210
|
+
/** Fraction (0–1) above which the meter turns red. Defaults to `0.9` (90%). */
|
|
211
|
+
dangerThreshold?: number;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export interface KaiConversationsElement extends HTMLElement {
|
|
215
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
216
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
217
|
+
/** Pre-bucketed conversation groups (e.g. "Today", "Yesterday"), each with its own conversations. Use this when you want to control the grouping/headers yourself; otherwise pass a flat `conversations` array. Set as a JS property. */
|
|
218
|
+
groups: { id: string; userId?: undefined | string; teamId?: undefined | string; name: string; sortOrder: number; createdAt: string }[];
|
|
219
|
+
/** A flat list of conversation summaries; the component buckets them by recency for you. Ignored when `groups` is provided. Set as a JS property. */
|
|
220
|
+
conversations: { id: string; title: string; groupId?: undefined | string; scope: { type: "document" | "collection"; documentId?: undefined | string; filters?: undefined | { tags?: undefined | string[]; authors?: undefined | string[]; contentType?: undefined | "transcript" | "markdown"; dateRange?: undefined | { from: string; to: string } } }; messageCount: number; lastMessageAt: string; updatedAt: string }[];
|
|
221
|
+
/** The id of the currently-open conversation, highlighted in the list. */
|
|
222
|
+
activeId?: string;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export interface KaiEmbedElement extends HTMLElement {
|
|
226
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
227
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
228
|
+
/** Stable card id correlating every emitted event. Set as an attribute or property. */
|
|
229
|
+
cardId?: string;
|
|
230
|
+
/** The embed payload (provider + id/url + options). Set as a JS **property** (object). */
|
|
231
|
+
data?: { provider: "youtube" | "vimeo" | "generic"; id?: string; url?: string; title?: string; poster?: string; start?: number; aspectRatio?: "16:9" | "4:3" | "1:1" | "9:16" };
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface KaiEmptyElement extends HTMLElement {
|
|
235
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
236
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
237
|
+
/** Title text. Attribute: `empty-title` (`title` is a global HTML attribute). */
|
|
238
|
+
emptyTitle?: string;
|
|
239
|
+
/** Description text. */
|
|
240
|
+
description?: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface KaiFeedbackBarElement extends HTMLElement {
|
|
244
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
245
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
246
|
+
/** The banner label (e.g. "Was this helpful?"). Attribute: `bar-title` (`title` is avoided — it's a global HTML attribute). */
|
|
247
|
+
barTitle?: string;
|
|
248
|
+
/** When set, a not-helpful vote opens an optional detail form before the thank-you confirmation. Attribute: `collect-detail`. */
|
|
249
|
+
collectDetail?: boolean;
|
|
250
|
+
/** Optional category chips for the detail form. Set as a JS property (array). */
|
|
251
|
+
categories?: string[];
|
|
252
|
+
/** Heading for the detail form. Attribute: `detail-title`. */
|
|
253
|
+
detailTitle?: string;
|
|
254
|
+
/** Placeholder for the detail comment box. Attribute: `detail-placeholder`. */
|
|
255
|
+
detailPlaceholder?: string;
|
|
256
|
+
/** Submit button label in the detail form. Attribute: `submit-label`. */
|
|
257
|
+
submitLabel?: string;
|
|
258
|
+
/** Confirmation copy shown after a vote/submit. Attribute: `thanks-message`. */
|
|
259
|
+
thanksMessage?: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface KaiFileTreeElement extends HTMLElement {
|
|
263
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
264
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
265
|
+
/** The files to render. Set as a JS property (array of `{ path, url?, code?, language?, type? }`). */
|
|
266
|
+
files: { path: string; url?: undefined | string; code?: undefined | string; language?: undefined | string; type?: undefined | "html" | "pdf" | "image" | "other" }[];
|
|
267
|
+
/** Selected file path — highlighted in the tree. */
|
|
268
|
+
activeFile?: string;
|
|
269
|
+
/** Folder paths expanded initially. Omit to start with all folders open. */
|
|
270
|
+
defaultExpanded?: string[];
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export interface KaiFileUploadElement extends HTMLElement {
|
|
274
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
275
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
276
|
+
/** Allow selecting multiple files (default true). */
|
|
277
|
+
multiple?: boolean;
|
|
278
|
+
/** `accept` attribute for the file picker (e.g. `image/*`). */
|
|
279
|
+
accept?: string;
|
|
280
|
+
/** Disable the dropzone — no clicking, no drag-and-drop. */
|
|
281
|
+
disabled?: boolean;
|
|
282
|
+
/** Default dropzone label (overridable via the default slot). */
|
|
283
|
+
label?: string;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface KaiFormElement extends HTMLElement {
|
|
287
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
288
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
289
|
+
/** The form definition — a JSON Schema (`type:'object'`) + `x-kai-*` UI hints (the CardEnvelope.data). Set as a JS PROPERTY: `el.data = { type:'object', properties:{…} }`. Import the `FormDefinition` type from `@kitn.ai/ui` for the full shape (it is self-referential, so the element types it loosely). */
|
|
290
|
+
data?: Record<string, unknown>;
|
|
291
|
+
/** Stable card id correlating every emitted CardEvent. Attribute: `card-id`. */
|
|
292
|
+
cardId?: string;
|
|
293
|
+
/** Heading rendered in the card chrome (= CardEnvelope.title). Attribute: `heading`. */
|
|
294
|
+
heading?: string;
|
|
295
|
+
/** Set when the user resolved this card; renders the read-only view. Property: `el.resolution = { kind:'submit', data:{…} }`. */
|
|
296
|
+
resolution?: Record<string, unknown>;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface KaiImageElement extends HTMLElement {
|
|
300
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
301
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
302
|
+
/** Base64-encoded image data (pair with `media-type`). */
|
|
303
|
+
base64?: string;
|
|
304
|
+
/** Raw image bytes (set as a JS property). */
|
|
305
|
+
bytes?: Uint8Array;
|
|
306
|
+
/** Alt text. */
|
|
307
|
+
alt?: string;
|
|
308
|
+
/** MIME type (default `image/png`). */
|
|
309
|
+
mediaType?: string;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export interface KaiLinkPreviewElement extends HTMLElement {
|
|
313
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
314
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
315
|
+
/** Stable card id correlating every emitted event. Set as an attribute or property. */
|
|
316
|
+
cardId?: string;
|
|
317
|
+
/** The link payload (OG metadata). Set as a JS **property** (object). */
|
|
318
|
+
data?: { url: string; title?: string; description?: string; image?: string; imageAlt?: string; favicon?: string; domain?: string; siteName?: string };
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export interface KaiLoaderElement extends HTMLElement {
|
|
322
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
323
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
324
|
+
/** The animation style: `'circular' | 'classic' | 'pulse' | 'pulse-dot' | 'dots' | 'typing' | 'wave' | 'bars' | 'terminal' | 'text-blink' | 'text-shimmer' | 'loading-dots'`. Defaults to `'circular'`. */
|
|
325
|
+
variant?: "circular" | "classic" | "pulse" | "pulse-dot" | "dots" | "typing" | "wave" | "bars" | "terminal" | "text-blink" | "text-shimmer" | "loading-dots";
|
|
326
|
+
/** Loader size: `'sm' | 'md' | 'lg'`. Defaults to `'md'`. */
|
|
327
|
+
size?: "sm" | "lg" | "md";
|
|
328
|
+
/** Label for the text-based variants. */
|
|
329
|
+
text?: string;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export interface KaiMarkdownElement extends HTMLElement {
|
|
333
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
334
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
335
|
+
/** The markdown source to render. */
|
|
336
|
+
content: string;
|
|
337
|
+
/** Text/markdown sizing. */
|
|
338
|
+
proseSize?: "xs" | "sm" | "base" | "lg";
|
|
339
|
+
/** Shiki theme for fenced code blocks. */
|
|
340
|
+
codeTheme?: string;
|
|
341
|
+
/** Disable syntax highlighting (no Shiki loads). */
|
|
342
|
+
codeHighlight?: boolean;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export interface KaiMessageElement extends HTMLElement {
|
|
346
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
347
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
348
|
+
/** The full message object. Set as a JS property. */
|
|
349
|
+
message?: { id: string; role: "user" | "assistant"; content: string; reasoning?: { text: string; label?: string }; tools?: { type: string; state: "input-streaming" | "input-available" | "output-available" | "output-error"; input?: Record<string, unknown>; output?: Record<string, unknown>; toolCallId?: string; errorText?: string }[]; attachments?: { id: string; type: "file" | "source-document"; filename?: string; mediaType?: string; url?: string; title?: string }[]; actions?: ("copy" | "like" | "dislike" | "regenerate" | "edit" | { id: string; label: string; icon?: string; tooltip?: string })[]; avatar?: { src?: string; fallback?: string; alt?: string } };
|
|
350
|
+
/** Convenience for simple cases when not passing a `message` object. */
|
|
351
|
+
role?: "user" | "assistant";
|
|
352
|
+
/** Convenience content (used when `message` is not set). */
|
|
353
|
+
content?: string;
|
|
354
|
+
/** Force markdown on/off. Defaults to on for assistant, off for user. */
|
|
355
|
+
markdown?: boolean;
|
|
356
|
+
/** Text/markdown sizing for the message body. */
|
|
357
|
+
proseSize?: "xs" | "sm" | "base" | "lg";
|
|
358
|
+
/** Shiki theme name used for fenced code blocks in the content. */
|
|
359
|
+
codeTheme?: string;
|
|
360
|
+
/** Disable syntax highlighting for code blocks (no Shiki loads). */
|
|
361
|
+
codeHighlight?: boolean;
|
|
362
|
+
/** Whether the action bar is always visible (`'always'`, default) or only revealed on hover of the message row (`'hover'`). */
|
|
363
|
+
actionsReveal?: "always" | "hover";
|
|
364
|
+
/** Convenience avatar image URL (used when `message.avatar` is not set). */
|
|
365
|
+
avatarSrc?: string;
|
|
366
|
+
/** Convenience avatar fallback text (used when `message.avatar` is not set). */
|
|
367
|
+
avatarFallback?: string;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export interface KaiModelSwitcherElement extends HTMLElement {
|
|
371
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
372
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
373
|
+
/** The selectable models. Set as a JS property (array). */
|
|
374
|
+
models: { id: string; name: string; provider?: undefined | string; description?: undefined | string; group?: undefined | string }[];
|
|
375
|
+
/** The currently-selected model id. Defaults to the first model. */
|
|
376
|
+
currentModel?: string;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export interface KaiPopoverElement extends HTMLElement {
|
|
380
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
381
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
382
|
+
/** Floating placement relative to the trigger (floating-ui placement). */
|
|
383
|
+
placement?: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
384
|
+
/** Gap in px between the trigger and the panel. */
|
|
385
|
+
gutter?: number;
|
|
386
|
+
/** Controlled open state. Set as a JS property (`el.open = true`) to drive the popover from your app; omit for the default click-to-toggle behaviour. */
|
|
387
|
+
open?: boolean;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export interface KaiPromptInputElement extends HTMLElement {
|
|
391
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
392
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
393
|
+
/** Controlled value of the input. When set, the host owns the text and must update it on `kai-value-change`; leave unset for uncontrolled behavior. */
|
|
394
|
+
value?: string;
|
|
395
|
+
/** Placeholder text shown in the empty input. */
|
|
396
|
+
placeholder?: string;
|
|
397
|
+
/** Disable the input and submit button entirely (non-interactive). */
|
|
398
|
+
disabled?: boolean;
|
|
399
|
+
/** Show the loading/streaming state and block submit (use while awaiting a reply). */
|
|
400
|
+
loading?: boolean;
|
|
401
|
+
/** Starter prompts shown above the input. Clicking one follows `suggestionMode`. Set as a JS property. */
|
|
402
|
+
suggestions?: string[];
|
|
403
|
+
/** What clicking a suggestion does: `'submit'` (default) sends it immediately as if typed and submitted; `'fill'` just places it in the input. */
|
|
404
|
+
suggestionMode?: "submit" | "fill";
|
|
405
|
+
/** Slash commands — when set, typing `/` opens the command palette. Set as a JS property. */
|
|
406
|
+
slashCommands?: { id: string; label: string; description?: string; category?: string }[];
|
|
407
|
+
/** Command ids to highlight as active. */
|
|
408
|
+
slashActiveIds?: string[];
|
|
409
|
+
/** Single-line palette rows. */
|
|
410
|
+
slashCompact?: boolean;
|
|
411
|
+
/** Show a Search (Globe) button in the left toolbar; clicking it fires a `search` event. */
|
|
412
|
+
search?: boolean;
|
|
413
|
+
/** Show a Voice (Mic) button in the left toolbar; clicking it fires a `voice` event. */
|
|
414
|
+
voice?: boolean;
|
|
415
|
+
/** When set and `loading` is true, the send button is replaced by a Stop button (square icon, "Stop" aria-label). Clicking it fires `kai-stop`. */
|
|
416
|
+
stoppable?: boolean;
|
|
417
|
+
/** Attachments to seed the input with (so a consumer can pre-populate staged files without an upload). Set as a JS property; the element then manages its own attachment state from there (add via the paperclip, remove per chip). */
|
|
418
|
+
attachments?: { id: string; type: "file" | "source-document"; filename?: string; mediaType?: string; url?: string; title?: string }[];
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export interface KaiReasoningElement extends HTMLElement {
|
|
422
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
423
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
424
|
+
/** The reasoning text to display. */
|
|
425
|
+
text: string;
|
|
426
|
+
/** Trigger label. */
|
|
427
|
+
label?: string;
|
|
428
|
+
/** Controlled open state — set as a property (`el.open = true`). Omit for uncontrolled (the trigger toggles it). */
|
|
429
|
+
open?: boolean;
|
|
430
|
+
/** While true, auto-expands (and re-collapses when it flips false). */
|
|
431
|
+
streaming?: boolean;
|
|
432
|
+
/** Render `text` as markdown. */
|
|
433
|
+
markdown?: boolean;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export interface KaiRemoteElement extends HTMLElement {
|
|
437
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
438
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
439
|
+
/** The remote card URL. Attribute: `src`. */
|
|
440
|
+
src?: string;
|
|
441
|
+
/** Exact provider origin (https: or http://localhost for dev). Attribute: `provider-origin`. */
|
|
442
|
+
providerOrigin?: string;
|
|
443
|
+
/** The card envelope to render. JS property only. */
|
|
444
|
+
envelope?: Record<string, unknown>;
|
|
445
|
+
/** Optional routing policy. JS property only. */
|
|
446
|
+
policy?: Record<string, unknown>;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export interface KaiResizableElement extends HTMLElement {
|
|
450
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
451
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
452
|
+
/** Layout axis: `horizontal` (row, default) or `vertical` (column). */
|
|
453
|
+
orientation?: "horizontal" | "vertical";
|
|
454
|
+
/** Which item index is maximized (null = none). Declarative source of truth. */
|
|
455
|
+
maximizedIndex?: null | number;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export interface KaiResizableItemElement extends HTMLElement {
|
|
459
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
460
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
461
|
+
/** Initial main-axis size: `"280px"` (fixed) or `"25%"`/`25` (percent). Omitted → flexible. */
|
|
462
|
+
size?: string;
|
|
463
|
+
/** Minimum size during resize (px or %). */
|
|
464
|
+
min?: string;
|
|
465
|
+
/** Maximum size during resize (px or %). */
|
|
466
|
+
max?: string;
|
|
467
|
+
/** Fix this panel's size; adjacent dividers become non-draggable. */
|
|
468
|
+
locked?: boolean;
|
|
469
|
+
/** Hide this panel; its divider is dropped and the rest reflow. */
|
|
470
|
+
hidden?: boolean;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export interface KaiResponseStreamElement extends HTMLElement {
|
|
474
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
475
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
476
|
+
/** Text to stream. A string, or an `AsyncIterable<string>` (set as a JS property — async iterables can't be HTML attributes). */
|
|
477
|
+
text?: string | AsyncIterable<string>;
|
|
478
|
+
/** Reveal animation. */
|
|
479
|
+
mode?: "typewriter" | "fade";
|
|
480
|
+
/** Characters/segments per tick. */
|
|
481
|
+
speed?: number;
|
|
482
|
+
/** Element tag to render as. */
|
|
483
|
+
as?: string;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
export interface KaiScopePickerElement extends HTMLElement {
|
|
487
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
488
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
489
|
+
/** Authors to offer as scope filters. Set as a JS property. */
|
|
490
|
+
availableAuthors: string[];
|
|
491
|
+
/** Tags to offer as scope filters. Set as a JS property. */
|
|
492
|
+
availableTags: string[];
|
|
493
|
+
/** The label shown on the trigger for the active scope. */
|
|
494
|
+
currentLabel?: string;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export interface KaiScrollButtonElement extends HTMLElement {
|
|
498
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
499
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
500
|
+
/** CSS id of the scroll container to control. When omitted the element walks up the DOM (outside its own shadow root) to find the nearest scrollable ancestor. Mirrors the `for` convention of `<label for="...">`. */
|
|
501
|
+
for?: string;
|
|
502
|
+
/** Button visual variant: `'outline' | 'ghost' | 'default'`. Defaults to `'outline'`. */
|
|
503
|
+
variant?: "ghost" | "default" | "outline";
|
|
504
|
+
/** Button size token. Defaults to `'icon'` (square). */
|
|
505
|
+
size?: "sm" | "lg" | "md" | "icon" | "icon-sm";
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export interface KaiSkillsElement extends HTMLElement {
|
|
509
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
510
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
511
|
+
/** The active skills to badge. Set as a JS property. */
|
|
512
|
+
skills: { id: string; name: string }[];
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
export interface KaiSourceElement extends HTMLElement {
|
|
516
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
517
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
518
|
+
/** The URL this citation links to (the domain also seeds the default label/favicon). */
|
|
519
|
+
href?: string;
|
|
520
|
+
/** Trigger label (defaults to the domain). */
|
|
521
|
+
label?: string;
|
|
522
|
+
/** Hover-card headline. Attribute: `headline` (`title` is avoided — it's a global HTML attribute that reflects in a CE constructor and breaks it). */
|
|
523
|
+
headline?: string;
|
|
524
|
+
/** Hover-card body text describing the source. */
|
|
525
|
+
description?: string;
|
|
526
|
+
/** Show the source's favicon next to the trigger label. */
|
|
527
|
+
showFavicon?: boolean;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
export interface KaiSourcesElement extends HTMLElement {
|
|
531
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
532
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
533
|
+
/** The sources to render. Set as a JS property. */
|
|
534
|
+
sources: { href: string; title?: undefined | string; description?: undefined | string; label?: undefined | string; showFavicon?: undefined | boolean }[];
|
|
535
|
+
/** Show favicons on all items (per-item `showFavicon` overrides). */
|
|
536
|
+
showFavicon?: boolean;
|
|
537
|
+
/** When true, each citation chip is labelled with its 1-based index in the merged (prop + declarative-children) list (`[1]`, `[2]`, …) instead of the per-item `label` or domain fallback. HTML attribute: `numbered` (boolean — bare attribute or `numbered="true"`). JS property: `el.numbered = true`. */
|
|
538
|
+
numbered?: boolean;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export interface KaiSuggestionsElement extends HTMLElement {
|
|
542
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
543
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
544
|
+
/** The suggestions. Strings, or `{ label, value }` when the displayed text and the emitted value differ. Set as a JS property. */
|
|
545
|
+
suggestions: (string | { label: string; value?: undefined | string })[];
|
|
546
|
+
/** Chip style: `'outline'` (default), `'ghost'`, or `'default'` (filled). */
|
|
547
|
+
variant?: "ghost" | "default" | "outline";
|
|
548
|
+
/** Size preset for each chip. Defaults to the pill default (`'lg'`); pass `'sm'` for smaller pills (or `'md'`). */
|
|
549
|
+
size?: "sm" | "lg" | "md" | "icon" | "icon-sm";
|
|
550
|
+
/** Full-width left-aligned rows instead of pills. */
|
|
551
|
+
block?: boolean;
|
|
552
|
+
/** Substring to highlight within each suggestion. */
|
|
553
|
+
highlight?: string;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
export interface KaiSwitchElement extends HTMLElement {
|
|
557
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
558
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
559
|
+
/** Initial checked state. Bare attribute (`<kai-switch checked>`) turns it on. */
|
|
560
|
+
checked?: boolean;
|
|
561
|
+
/** Disable interaction. */
|
|
562
|
+
disabled?: boolean;
|
|
563
|
+
/** Accessible label. */
|
|
564
|
+
label?: string;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
export interface KaiTasksElement extends HTMLElement {
|
|
568
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
569
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
570
|
+
/** The tasks definition (the CardEnvelope.data). Set as a JS PROPERTY: `el.data = { tasks:[…], selectAll, confirmLabel, … }`. Import `TasksCardData` from `@kitn.ai/ui` for the full shape. */
|
|
571
|
+
data?: Record<string, unknown>;
|
|
572
|
+
/** Stable card id correlating every emitted CardEvent. Attribute: `card-id`. */
|
|
573
|
+
cardId?: string;
|
|
574
|
+
/** Heading rendered in the card chrome (= CardEnvelope.title). Attribute: `heading`. */
|
|
575
|
+
heading?: string;
|
|
576
|
+
/** Set when the user resolved this card; renders the read-only view. Property: `el.resolution = { kind:'submit', data:{ selected:[…] } }`. */
|
|
577
|
+
resolution?: Record<string, unknown>;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
export interface KaiTextShimmerElement extends HTMLElement {
|
|
581
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
582
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
583
|
+
/** The text to shimmer. */
|
|
584
|
+
text?: string;
|
|
585
|
+
/** Element tag to render as (default `span`). */
|
|
586
|
+
as?: string;
|
|
587
|
+
/** Animation duration in seconds. */
|
|
588
|
+
duration?: number;
|
|
589
|
+
/** Gradient spread (5–45). */
|
|
590
|
+
spread?: number;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export interface KaiThinkingBarElement extends HTMLElement {
|
|
594
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
595
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
596
|
+
/** The shimmering label, e.g. "Thinking…". */
|
|
597
|
+
text?: string;
|
|
598
|
+
/** When true, show a "stop" affordance that fires a `stop` event. */
|
|
599
|
+
stoppable?: boolean;
|
|
600
|
+
/** Label for the stop affordance. */
|
|
601
|
+
stopLabel?: string;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export interface KaiToolElement extends HTMLElement {
|
|
605
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
606
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
607
|
+
/** The tool-call to display. Set as a JS property. */
|
|
608
|
+
tool?: { type: string; state: "input-streaming" | "input-available" | "output-available" | "output-error"; input?: Record<string, unknown>; output?: Record<string, unknown>; toolCallId?: string; errorText?: string };
|
|
609
|
+
/** Start expanded. */
|
|
610
|
+
open?: boolean;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export interface KaiVoiceInputElement extends HTMLElement {
|
|
614
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
615
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
616
|
+
/** Transcriber the host supplies — records audio, returns the text. This is a **function-valued property** (`el.transcribe = async blob => '...'`) because a value-returning callback can't be modelled as a fire-and-forget event. */
|
|
617
|
+
transcribe?: (audio: Blob) => Promise<string>;
|
|
618
|
+
/** Disable the mic button (non-interactive). */
|
|
619
|
+
disabled?: boolean;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export interface KaiWorkspaceElement extends HTMLElement {
|
|
623
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
624
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
625
|
+
/** Pre-bucketed conversation groups for the sidebar. Set as a JS property. */
|
|
626
|
+
groups: { id: string; userId?: undefined | string; teamId?: undefined | string; name: string; sortOrder: number; createdAt: string }[];
|
|
627
|
+
/** Flat conversation list (auto-bucketed if `groups` is empty). Set as a JS property. */
|
|
628
|
+
conversations: { id: string; title: string; groupId?: undefined | string; scope: { type: "document" | "collection"; documentId?: undefined | string; filters?: undefined | { tags?: undefined | string[]; authors?: undefined | string[]; contentType?: undefined | "transcript" | "markdown"; dateRange?: undefined | { from: string; to: string } } }; messageCount: number; lastMessageAt: string; updatedAt: string }[];
|
|
629
|
+
/** Id of the open conversation, highlighted in the sidebar. */
|
|
630
|
+
activeId?: string;
|
|
631
|
+
/** The active conversation's message thread, newest last. Set as a JS property. */
|
|
632
|
+
messages: { id: string; role: "user" | "assistant"; content: string; reasoning?: undefined | { text: string; label?: undefined | string }; tools?: undefined | { type: string; state: "input-streaming" | "input-available" | "output-available" | "output-error"; input?: undefined | Record<string, unknown>; output?: undefined | Record<string, unknown>; toolCallId?: undefined | string; errorText?: undefined | string }[]; attachments?: undefined | { id: string; type: "file" | "source-document"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[]; actions?: undefined | ("copy" | "like" | "dislike" | "regenerate" | "edit" | { id: string; label: string; icon?: undefined | string; tooltip?: undefined | string })[]; avatar?: undefined | { src?: undefined | string; fallback?: undefined | string; alt?: undefined | string } }[];
|
|
633
|
+
value?: string;
|
|
634
|
+
placeholder?: string;
|
|
635
|
+
loading?: boolean;
|
|
636
|
+
suggestions?: string[];
|
|
637
|
+
suggestionMode?: "submit" | "fill";
|
|
638
|
+
proseSize?: "xs" | "sm" | "base" | "lg";
|
|
639
|
+
codeTheme?: string;
|
|
640
|
+
codeHighlight?: boolean;
|
|
641
|
+
chatTitle?: string;
|
|
642
|
+
models?: { id: string; name: string; provider?: string; description?: string; group?: string }[];
|
|
643
|
+
currentModel?: string;
|
|
644
|
+
context?: { usedTokens: number; maxTokens: number; inputTokens?: number; outputTokens?: number; estimatedCost?: number };
|
|
645
|
+
scrollButton?: boolean;
|
|
646
|
+
search?: boolean;
|
|
647
|
+
voice?: boolean;
|
|
648
|
+
slashCommands?: { id: string; label: string; description?: string; category?: string }[];
|
|
649
|
+
slashActiveIds?: string[];
|
|
650
|
+
slashCompact?: boolean;
|
|
651
|
+
/** Sidebar default width as a percent of the workspace (default 22). */
|
|
652
|
+
sidebarWidth?: number;
|
|
653
|
+
/** Sidebar min width in px (default 200). */
|
|
654
|
+
sidebarMinWidth?: number;
|
|
655
|
+
/** Sidebar max width in px (default 420). */
|
|
656
|
+
sidebarMaxWidth?: number;
|
|
657
|
+
/** Controlled collapsed state. Set this as a JS property (`el.sidebarCollapsed = true`) to drive the sidebar from your app, updating it in response to the `kai-sidebar-toggle` event. Omit for uncontrolled (the element manages it). */
|
|
658
|
+
sidebarCollapsed?: boolean;
|
|
659
|
+
/** Initial collapsed state when uncontrolled (default false). Use the `default-sidebar-collapsed` attribute to start collapsed in plain HTML. */
|
|
660
|
+
defaultSidebarCollapsed?: boolean;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
declare global {
|
|
664
|
+
interface HTMLElementTagNameMap {
|
|
665
|
+
'kai-artifact': KaiArtifactElement;
|
|
666
|
+
'kai-attachments': KaiAttachmentsElement;
|
|
667
|
+
'kai-card': KaiCardElement;
|
|
668
|
+
'kai-cards': KaiCardsElement;
|
|
669
|
+
'kai-chain-of-thought': KaiChainOfThoughtElement;
|
|
670
|
+
'kai-chat': KaiChatElement;
|
|
671
|
+
'kai-checkpoint': KaiCheckpointElement;
|
|
672
|
+
'kai-choice': KaiChoiceElement;
|
|
673
|
+
'kai-code-block': KaiCodeBlockElement;
|
|
674
|
+
'kai-confirm': KaiConfirmElement;
|
|
675
|
+
'kai-context': KaiContextElement;
|
|
676
|
+
'kai-conversations': KaiConversationsElement;
|
|
677
|
+
'kai-embed': KaiEmbedElement;
|
|
678
|
+
'kai-empty': KaiEmptyElement;
|
|
679
|
+
'kai-feedback-bar': KaiFeedbackBarElement;
|
|
680
|
+
'kai-file-tree': KaiFileTreeElement;
|
|
681
|
+
'kai-file-upload': KaiFileUploadElement;
|
|
682
|
+
'kai-form': KaiFormElement;
|
|
683
|
+
'kai-image': KaiImageElement;
|
|
684
|
+
'kai-link-preview': KaiLinkPreviewElement;
|
|
685
|
+
'kai-loader': KaiLoaderElement;
|
|
686
|
+
'kai-markdown': KaiMarkdownElement;
|
|
687
|
+
'kai-message': KaiMessageElement;
|
|
688
|
+
'kai-model-switcher': KaiModelSwitcherElement;
|
|
689
|
+
'kai-popover': KaiPopoverElement;
|
|
690
|
+
'kai-prompt-input': KaiPromptInputElement;
|
|
691
|
+
'kai-reasoning': KaiReasoningElement;
|
|
692
|
+
'kai-remote': KaiRemoteElement;
|
|
693
|
+
'kai-resizable': KaiResizableElement;
|
|
694
|
+
'kai-resizable-item': KaiResizableItemElement;
|
|
695
|
+
'kai-response-stream': KaiResponseStreamElement;
|
|
696
|
+
'kai-scope-picker': KaiScopePickerElement;
|
|
697
|
+
'kai-scroll-button': KaiScrollButtonElement;
|
|
698
|
+
'kai-skills': KaiSkillsElement;
|
|
699
|
+
'kai-source': KaiSourceElement;
|
|
700
|
+
'kai-sources': KaiSourcesElement;
|
|
701
|
+
'kai-suggestions': KaiSuggestionsElement;
|
|
702
|
+
'kai-switch': KaiSwitchElement;
|
|
703
|
+
'kai-tasks': KaiTasksElement;
|
|
704
|
+
'kai-text-shimmer': KaiTextShimmerElement;
|
|
705
|
+
'kai-thinking-bar': KaiThinkingBarElement;
|
|
706
|
+
'kai-tool': KaiToolElement;
|
|
707
|
+
'kai-voice-input': KaiVoiceInputElement;
|
|
708
|
+
'kai-workspace': KaiWorkspaceElement;
|
|
709
|
+
}
|
|
710
|
+
}
|