@kitn.ai/ui 0.17.0 → 0.18.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/README.md +28 -5
- package/dist/components/artifact.d.ts +39 -1
- package/dist/components/attachment-types.d.ts +12 -0
- package/dist/components/attachments.d.ts +2 -10
- package/dist/components/card.d.ts +27 -0
- package/dist/components/chain-of-thought.d.ts +78 -2
- package/dist/components/chat-scope-picker.d.ts +7 -0
- package/dist/components/chat-thread.d.ts +37 -12
- package/dist/components/choice-card.d.ts +26 -0
- package/dist/components/coachmark.d.ts +49 -0
- package/dist/components/composer-dom.d.ts +35 -0
- package/dist/components/composer-highlight.d.ts +48 -0
- package/dist/components/composer-history.d.ts +34 -0
- package/dist/components/composer.d.ts +86 -0
- package/dist/components/confirm-card.d.ts +17 -0
- package/dist/components/conversation-item.d.ts +9 -0
- package/dist/components/conversation-list.d.ts +36 -1
- package/dist/components/file-tree.d.ts +15 -0
- package/dist/components/form.d.ts +34 -0
- package/dist/components/markdown.d.ts +3 -0
- package/dist/components/message.d.ts +12 -0
- package/dist/components/model-switcher.d.ts +7 -0
- package/dist/components/prompt-input.d.ts +13 -4
- package/dist/components/prompt-suggestion.d.ts +9 -1
- package/dist/components/reasoning.d.ts +14 -1
- package/dist/components/response-compare.d.ts +14 -0
- package/dist/components/screen.d.ts +46 -0
- package/dist/components/tasks-card.d.ts +49 -1
- package/dist/components/toast.d.ts +12 -2
- package/dist/components/tool-types.d.ts +10 -0
- package/dist/components/tool.d.ts +8 -8
- package/dist/components/voice-input.d.ts +27 -0
- package/dist/components/voice-output.d.ts +33 -0
- package/dist/core-C8fzo39E.js +12 -0
- package/dist/custom-elements.json +8392 -1860
- package/dist/elements/agent-card.d.ts +1 -0
- package/dist/elements/agent-card.js +1 -0
- package/dist/elements/artifact.js +1 -1
- package/dist/elements/attachments.js +1 -1
- package/dist/elements/autoloader.js +1 -1
- package/dist/elements/avatar.d.ts +1 -0
- package/dist/elements/avatar.js +1 -0
- package/dist/elements/badge.d.ts +1 -0
- package/dist/elements/badge.js +1 -0
- package/dist/elements/button.d.ts +1 -0
- package/dist/elements/button.js +1 -0
- package/dist/elements/card.js +1 -1
- package/dist/elements/cards.js +1 -1
- package/dist/elements/chain-of-thought.js +1 -1
- package/dist/elements/chat-scope-picker.js +1 -1
- package/dist/elements/chat-types.d.ts +47 -0
- package/dist/elements/chat-workspace.js +1 -1
- package/dist/elements/chat.js +1 -1
- package/dist/elements/checkpoint.js +1 -1
- package/dist/elements/choice.js +1 -1
- package/dist/elements/chunks/Icon-C2LTALdM.js +1 -0
- package/dist/elements/chunks/action-icons-Dtl8Ox5D.js +1 -0
- package/dist/elements/chunks/arrow-left-GbBceGBE.js +1 -0
- package/dist/elements/chunks/attachments-DLJcWCDV.js +1 -0
- package/dist/elements/chunks/badge-BTNZTODL.js +1 -0
- package/dist/elements/chunks/button-DBDZebGr.js +1 -0
- package/dist/elements/chunks/card-YfCyI4fH.js +1 -0
- package/dist/elements/chunks/chat-thread-Dz2qbzvI.js +1 -0
- package/dist/elements/chunks/check-fhmRksq_.js +1 -0
- package/dist/elements/chunks/chevron-down-DcRg1aRU.js +1 -0
- package/dist/elements/chunks/chevron-right-ChzBcNJ-.js +1 -0
- package/dist/elements/chunks/circle-B4fTe9v6.js +1 -0
- package/dist/elements/chunks/circle-check-CJV-3Rem.js +1 -0
- package/dist/elements/chunks/circle-x-pDtzlghQ.js +1 -0
- package/dist/elements/chunks/cn-CU7UAWzk.js +1 -0
- package/dist/elements/chunks/code-block-DZ6mz6vs.js +1 -0
- package/dist/elements/chunks/collapsible-CWUAShMC.js +1 -0
- package/dist/elements/chunks/composer-BZyPU6gD.js +65 -0
- package/dist/elements/chunks/context-Cx6eQA_G.js +1 -0
- package/dist/elements/chunks/conversation-list-C4xTQSpT.js +1 -0
- package/dist/elements/chunks/default-input-BZcwyKcP.js +1 -0
- package/dist/elements/chunks/define-CNSKFZCd.js +1 -0
- package/dist/elements/chunks/disclosure-BcBs--Jf.js +1 -0
- package/dist/elements/chunks/download-BDQwcFav.js +1 -0
- package/dist/elements/chunks/dropdown-wgs8xCJZ.js +1 -0
- package/dist/elements/chunks/ellipsis-CUiEJ6R1.js +1 -0
- package/dist/elements/chunks/external-link-DJUmC7g2.js +1 -0
- package/dist/elements/chunks/file-text-DOYfYvrh.js +1 -0
- package/dist/elements/chunks/file-tree-DQzNQrbr.js +1 -0
- package/dist/elements/chunks/folder-DBDUBANz.js +1 -0
- package/dist/elements/chunks/hover-card-BQGdGAQ3.js +1 -0
- package/dist/elements/chunks/icon-CAyRqVrg.js +1 -0
- package/dist/elements/chunks/{index-CTBEJeo6.js → index-BCRhi84a.js} +1 -1
- package/dist/elements/chunks/info-DBQl-m6e.js +1 -0
- package/dist/elements/chunks/input-DZD67EvW.js +1 -0
- package/dist/elements/chunks/kbd-DbyVrlnU.js +1 -0
- package/dist/elements/chunks/link-vko7AttA.js +1 -0
- package/dist/elements/chunks/loader-Cg6rO8tQ.js +1 -0
- package/dist/elements/chunks/{markdown-CMTGx9r8.js → markdown-n3Xbj3PR.js} +9 -9
- package/dist/elements/chunks/message-CgKytiSB.js +1 -0
- package/dist/elements/chunks/message-feedback-Ds3-US0e.js +1 -0
- package/dist/elements/chunks/message-square-MmRkvc-M.js +1 -0
- package/dist/elements/chunks/minimize-2-3kCdE0q3.js +1 -0
- package/dist/elements/chunks/model-switcher-BMtXGwLU.js +1 -0
- package/dist/elements/chunks/overlay-B1-MBI6h.js +1 -0
- package/dist/elements/chunks/paperclip-DDEfmkHc.js +1 -0
- package/dist/elements/chunks/progress-bar-Dwbiyv3s.js +1 -0
- package/dist/elements/chunks/prompt-suggestion-9lvgFcEa.js +1 -0
- package/dist/elements/chunks/reasoning-DzHWsdAJ.js +1 -0
- package/dist/elements/chunks/resizable-Bq_eHxUm.js +1 -0
- package/dist/elements/chunks/rotate-cw-jpisOdOV.js +1 -0
- package/dist/elements/chunks/scroll-area-g5Ze3K6f.js +1 -0
- package/dist/elements/chunks/separator-Bmjc5XyX.js +1 -0
- package/dist/elements/chunks/settings-Cz1bMJP9.js +1 -0
- package/dist/elements/chunks/settings-group-9imY3kRA.js +1 -0
- package/dist/elements/chunks/share-BdenF0wQ.js +1 -0
- package/dist/elements/chunks/skeleton-Pjc5jiaY.js +1 -0
- package/dist/elements/chunks/slots-DkZ-Cmha.js +1 -0
- package/dist/elements/chunks/star-DY6z1UUH.js +1 -0
- package/dist/elements/chunks/store-th4VyJXM.js +1 -0
- package/dist/elements/chunks/text-shimmer-CEi-tlXr.js +1 -0
- package/dist/elements/chunks/textarea-CboigarR.js +1 -0
- package/dist/elements/chunks/thumbs-up-BR33KLfA.js +1 -0
- package/dist/elements/chunks/toast-store-BEMda0fv.js +1 -0
- package/dist/elements/chunks/tool-TMued3WO.js +1 -0
- package/dist/elements/chunks/tooltip-Cft_Rxiw.js +1 -0
- package/dist/elements/chunks/triangle-alert-B07fX3Q8.js +1 -0
- package/dist/elements/chunks/use-card-resolution-M36zVciB.js +1 -0
- package/dist/elements/chunks/video-MKp3LmNT.js +1 -0
- package/dist/elements/chunks/x-Ckwicf6g.js +1 -0
- package/dist/elements/coachmark.d.ts +1 -0
- package/dist/elements/coachmark.js +1 -0
- package/dist/elements/code-block.js +1 -1
- package/dist/elements/command.d.ts +1 -0
- package/dist/elements/command.js +1 -0
- package/dist/elements/compare.js +1 -1
- package/dist/elements/composer.d.ts +1 -0
- package/dist/elements/composer.js +1 -0
- package/dist/elements/confirm-card.js +1 -1
- package/dist/elements/context-meter.js +1 -1
- package/dist/elements/conversation-list.js +1 -1
- package/dist/elements/css.d.ts +1 -0
- package/dist/elements/default-input.d.ts +51 -0
- package/dist/elements/define.d.ts +53 -0
- package/dist/elements/dialog.d.ts +1 -0
- package/dist/elements/dialog.js +1 -0
- package/dist/elements/disclosure.d.ts +37 -0
- package/dist/elements/editable-label.d.ts +1 -0
- package/dist/elements/editable-label.js +1 -0
- package/dist/elements/embed.js +1 -1
- package/dist/elements/empty.js +1 -1
- package/dist/elements/feedback-bar.js +1 -1
- package/dist/elements/file-tree.js +1 -1
- package/dist/elements/file-upload.js +1 -1
- package/dist/elements/form.js +1 -1
- package/dist/elements/hover-card.d.ts +1 -0
- package/dist/elements/hover-card.js +1 -0
- package/dist/elements/icon.d.ts +1 -0
- package/dist/elements/icon.js +1 -0
- package/dist/elements/image.js +1 -1
- package/dist/elements/input.d.ts +1 -0
- package/dist/elements/input.js +1 -0
- package/dist/elements/kbd.d.ts +1 -0
- package/dist/elements/kbd.js +1 -0
- package/dist/elements/link-preview.js +1 -1
- package/dist/elements/loader.js +1 -1
- package/dist/elements/markdown.js +1 -1
- package/dist/elements/menu.d.ts +1 -0
- package/dist/elements/menu.js +1 -0
- package/dist/elements/message-skills.js +1 -1
- package/dist/elements/message.js +1 -1
- package/dist/elements/model-switcher.js +1 -1
- package/dist/elements/nav.d.ts +1 -0
- package/dist/elements/nav.js +1 -0
- package/dist/elements/notice.d.ts +1 -0
- package/dist/elements/notice.js +1 -0
- package/dist/elements/pane-group.d.ts +1 -0
- package/dist/elements/pane-group.js +1 -0
- package/dist/elements/pane.d.ts +1 -0
- package/dist/elements/pane.js +1 -0
- package/dist/elements/popover.js +1 -1
- package/dist/elements/progress-bar.d.ts +1 -0
- package/dist/elements/progress-bar.js +1 -0
- package/dist/elements/prompt-dock.d.ts +1 -0
- package/dist/elements/prompt-dock.js +1 -0
- package/dist/elements/prompt-input.js +1 -1
- package/dist/elements/prompt-suggestions.js +1 -1
- package/dist/elements/reasoning.js +1 -1
- package/dist/elements/register-impl.d.ts +0 -0
- package/dist/elements/register.d.ts +13 -0
- package/dist/elements/remote.d.ts +1 -0
- package/dist/elements/remote.js +1 -0
- package/dist/elements/resizable.js +1 -1
- package/dist/elements/response-stream.js +2 -2
- package/dist/elements/screen.d.ts +1 -0
- package/dist/elements/screen.js +1 -0
- package/dist/elements/scroll-area.d.ts +1 -0
- package/dist/elements/scroll-area.js +1 -0
- package/dist/elements/scroll-button.js +1 -1
- package/dist/elements/search.d.ts +1 -0
- package/dist/elements/search.js +1 -0
- package/dist/elements/segmented.d.ts +1 -0
- package/dist/elements/segmented.js +1 -0
- package/dist/elements/separator.d.ts +1 -0
- package/dist/elements/separator.js +1 -0
- package/dist/elements/setting-item.d.ts +1 -0
- package/dist/elements/setting-item.js +1 -0
- package/dist/elements/settings-group.d.ts +1 -0
- package/dist/elements/settings-group.js +1 -0
- package/dist/elements/skeleton.d.ts +1 -0
- package/dist/elements/skeleton.js +1 -0
- package/dist/elements/slots.d.ts +176 -0
- package/dist/elements/source.js +1 -1
- package/dist/elements/status.d.ts +1 -0
- package/dist/elements/status.js +1 -0
- package/dist/elements/switch.js +1 -1
- package/dist/elements/tabs.d.ts +1 -0
- package/dist/elements/tabs.js +1 -0
- package/dist/elements/tasks.js +1 -1
- package/dist/elements/text-shimmer.js +1 -1
- package/dist/elements/thinking-bar.js +1 -1
- package/dist/elements/toast.js +1 -1
- package/dist/elements/tool.js +1 -1
- package/dist/elements/tooltip.d.ts +1 -0
- package/dist/elements/tooltip.js +1 -0
- package/dist/elements/voice-input.js +1 -1
- package/dist/elements/voice-output.d.ts +1 -0
- package/dist/elements/voice-output.js +1 -0
- package/dist/elements.d.ts +733 -58
- package/dist/engine-javascript-C1x7zo1_.js +141 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +8255 -5703
- package/dist/kai.es.js +1 -0
- package/dist/llms/llms-full.txt +1146 -64
- package/dist/llms/llms.txt +4 -4
- package/dist/mcp.es.js +62 -7
- package/dist/primitives/composer-model.d.ts +22 -0
- package/dist/primitives/composer-triggers.d.ts +19 -0
- package/dist/primitives/create-kai-chat.d.ts +38 -0
- package/dist/primitives/toast-store.d.ts +32 -2
- package/dist/primitives/use-speech-recognition.d.ts +26 -0
- package/dist/react/index.d.ts +1085 -97
- package/dist/react/runtime.d.ts +9 -2
- package/dist/react/use-kai-chat.d.ts +41 -0
- package/dist/react.js +572 -193
- package/dist/register-impl-cKscku5m.js +141 -0
- package/dist/schemas/tasks.schema.json +2 -2
- package/dist/state/index.d.ts +4 -0
- package/dist/state/messages.d.ts +11 -0
- package/dist/state/stream.d.ts +22 -0
- package/dist/state/suggestions.d.ts +4 -0
- package/dist/state.js +117 -0
- package/dist/theme.tokens.css +87 -0
- package/dist/types.d.ts +4 -0
- package/dist/ui/agent-card.d.ts +61 -0
- package/dist/ui/button.d.ts +5 -2
- package/dist/ui/card.d.ts +61 -0
- package/dist/ui/collapsible.d.ts +15 -1
- package/dist/ui/command.d.ts +33 -0
- package/dist/ui/dialog.d.ts +42 -0
- package/dist/ui/dropdown.d.ts +95 -1
- package/dist/ui/editable-label.d.ts +26 -0
- package/dist/ui/hover-card.d.ts +13 -1
- package/dist/ui/icon.d.ts +18 -0
- package/dist/ui/input.d.ts +33 -0
- package/dist/ui/kbd.d.ts +21 -0
- package/dist/ui/nav.d.ts +62 -0
- package/dist/ui/notice.d.ts +31 -0
- package/dist/ui/overlay.d.ts +12 -0
- package/dist/ui/pane-grid.d.ts +58 -0
- package/dist/ui/pane-group.d.ts +77 -0
- package/dist/ui/pane.d.ts +78 -0
- package/dist/ui/popover.d.ts +11 -1
- package/dist/ui/progress-bar.d.ts +23 -0
- package/dist/ui/prompt-dock.d.ts +96 -0
- package/dist/ui/resizable.d.ts +12 -0
- package/dist/ui/scroll-area.d.ts +4 -0
- package/dist/ui/segmented.d.ts +28 -0
- package/dist/ui/settings-group.d.ts +32 -0
- package/dist/ui/skeleton.d.ts +12 -0
- package/dist/ui/stat.d.ts +16 -0
- package/dist/ui/status.d.ts +13 -0
- package/dist/ui/switch.d.ts +8 -1
- package/dist/ui/tabs.d.ts +35 -0
- package/dist/ui/tooltip.d.ts +19 -1
- package/frameworks/react/index.tsx +1042 -157
- package/frameworks/react/runtime.tsx +30 -1
- package/frameworks/react/use-kai-chat.tsx +87 -0
- package/llms-full.txt +1146 -64
- package/llms.txt +4 -4
- package/package.json +31 -10
- package/src/agent-tooling/mcp/manifest.ts +14 -0
- package/src/agent-tooling/mcp/tools/debug.ts +11 -7
- package/src/agent-tooling/mcp/tools/reference.ts +32 -0
- package/src/agent-tooling/mcp/tools/scaffold.ts +30 -1
- package/src/components/artifact.tsx +98 -13
- package/src/components/attachment-types.ts +13 -0
- package/src/components/attachments.tsx +4 -14
- package/src/components/card.tsx +109 -15
- package/src/components/chain-of-thought.tsx +210 -1
- package/src/components/chat-scope-picker.tsx +13 -3
- package/src/components/chat-thread.tsx +225 -116
- package/src/components/choice-card.tsx +103 -11
- package/src/components/coachmark.tsx +249 -0
- package/src/components/component-meta.json +699 -110
- package/src/components/composer-dom.ts +159 -0
- package/src/components/composer-highlight.ts +242 -0
- package/src/components/composer-history.ts +82 -0
- package/src/components/composer.tsx +979 -0
- package/src/components/confirm-card.tsx +54 -1
- package/src/components/conversation-item.tsx +69 -7
- package/src/components/conversation-list.tsx +134 -37
- package/src/components/file-tree.tsx +197 -47
- package/src/components/form-widgets.tsx +9 -7
- package/src/components/form.tsx +140 -17
- package/src/components/image.tsx +3 -5
- package/src/components/link-preview.tsx +5 -4
- package/src/components/markdown.tsx +5 -2
- package/src/components/message.tsx +23 -4
- package/src/components/model-switcher.tsx +19 -4
- package/src/components/prompt-input.tsx +46 -75
- package/src/components/prompt-suggestion.tsx +48 -16
- package/src/components/reasoning.tsx +29 -6
- package/src/components/response-compare.tsx +31 -2
- package/src/components/screen.tsx +176 -0
- package/src/components/tasks-card.tsx +341 -21
- package/src/components/toast.tsx +119 -31
- package/src/components/tool-types.ts +10 -0
- package/src/components/tool.tsx +22 -16
- package/src/components/voice-input.tsx +102 -19
- package/src/components/voice-output.tsx +202 -0
- package/src/elements/agent-card.tsx +67 -0
- package/src/elements/artifact.tsx +53 -4
- package/src/elements/attachments.tsx +1 -0
- package/src/elements/avatar.tsx +33 -0
- package/src/elements/badge.tsx +32 -0
- package/src/elements/button.tsx +126 -0
- package/src/elements/card-media.jpg +0 -0
- package/src/elements/card.tsx +124 -31
- package/src/elements/cards.tsx +81 -7
- package/src/elements/chain-of-thought.tsx +77 -32
- package/src/elements/chat-scope-picker.tsx +35 -8
- package/src/elements/chat-types.ts +2 -2
- package/src/elements/chat-workspace.tsx +153 -41
- package/src/elements/chat.tsx +45 -23
- package/src/elements/choice.tsx +71 -19
- package/src/elements/coachmark.tsx +90 -0
- package/src/elements/command.tsx +209 -0
- package/src/elements/compare.tsx +24 -2
- package/src/elements/compiled.css +2 -2
- package/src/elements/composer.tsx +151 -0
- package/src/elements/confirm-card.tsx +36 -11
- package/src/elements/conversation-list.tsx +80 -11
- package/src/elements/default-input.tsx +75 -53
- package/src/elements/define.tsx +87 -7
- package/src/elements/dialog.tsx +98 -0
- package/src/elements/disclosure.ts +73 -0
- package/src/elements/editable-label.tsx +125 -0
- package/src/elements/element-manifest.json +129 -1
- package/src/elements/element-meta.json +5562 -1336
- package/src/elements/element-types.d.ts +732 -57
- package/src/elements/file-tree.tsx +12 -2
- package/src/elements/file-upload.tsx +1 -1
- package/src/elements/form.tsx +54 -11
- package/src/elements/hover-card.tsx +80 -0
- package/src/elements/icon-names.json +48 -0
- package/src/elements/icon.tsx +41 -0
- package/src/elements/input.tsx +203 -0
- package/src/elements/kbd.tsx +45 -0
- package/src/elements/menu.tsx +217 -0
- package/src/elements/message.tsx +58 -11
- package/src/elements/model-switcher.tsx +27 -1
- package/src/elements/nav.tsx +87 -0
- package/src/elements/notice.tsx +53 -0
- package/src/elements/pane-group.tsx +119 -0
- package/src/elements/pane.tsx +129 -0
- package/src/elements/popover.tsx +39 -17
- package/src/elements/progress-bar.tsx +39 -0
- package/src/elements/prompt-dock.tsx +81 -0
- package/src/elements/prompt-input.tsx +112 -63
- package/src/elements/prompt-suggestions.tsx +25 -9
- package/src/elements/reasoning.tsx +30 -9
- package/src/elements/register-impl.ts +38 -3
- package/src/elements/register.ts +11 -3
- package/src/elements/resizable.tsx +48 -11
- package/src/elements/screen.tsx +90 -0
- package/src/elements/scroll-area.tsx +33 -0
- package/src/elements/search.tsx +180 -0
- package/src/elements/segmented.tsx +135 -0
- package/src/elements/separator.tsx +36 -0
- package/src/elements/setting-item.tsx +50 -0
- package/src/elements/settings-group.tsx +37 -0
- package/src/elements/skeleton.tsx +45 -0
- package/src/elements/slots.ts +607 -0
- package/src/elements/source.tsx +13 -6
- package/src/elements/status.tsx +42 -0
- package/src/elements/switch.tsx +89 -14
- package/src/elements/tabs.tsx +95 -0
- package/src/elements/tasks.tsx +70 -14
- package/src/elements/toast.tsx +17 -2
- package/src/elements/tool.tsx +43 -9
- package/src/elements/tooltip.tsx +85 -0
- package/src/elements/video-poster.jpg +0 -0
- package/src/elements/voice-input.tsx +66 -16
- package/src/elements/voice-output.tsx +69 -0
- package/src/index.ts +5 -2
- package/src/primitives/card-schemas/tasks.schema.json +2 -2
- package/src/primitives/composer-model.ts +49 -0
- package/src/primitives/composer-triggers.ts +35 -0
- package/src/primitives/create-kai-chat.ts +66 -0
- package/src/primitives/toast-store.ts +43 -2
- package/src/primitives/use-speech-recognition.ts +135 -0
- package/src/state/index.ts +6 -0
- package/src/state/messages.ts +36 -0
- package/src/state/stream.ts +92 -0
- package/src/state/suggestions.ts +9 -0
- package/src/types.ts +4 -0
- package/src/ui/agent-card.tsx +218 -0
- package/src/ui/button.tsx +16 -5
- package/src/ui/card.tsx +245 -0
- package/src/ui/collapsible.tsx +30 -4
- package/src/ui/command.tsx +99 -0
- package/src/ui/dialog.tsx +217 -0
- package/src/ui/dropdown.tsx +375 -13
- package/src/ui/editable-label.tsx +112 -0
- package/src/ui/hover-card.tsx +28 -5
- package/src/ui/icon.tsx +110 -0
- package/src/ui/input.tsx +132 -0
- package/src/ui/kbd.tsx +118 -0
- package/src/ui/nav.tsx +282 -0
- package/src/ui/notice.tsx +84 -0
- package/src/ui/overlay.tsx +108 -2
- package/src/ui/pane-grid.tsx +117 -0
- package/src/ui/pane-group.tsx +291 -0
- package/src/ui/pane.tsx +193 -0
- package/src/ui/popover.tsx +16 -2
- package/src/ui/progress-bar.tsx +83 -0
- package/src/ui/prompt-dock.tsx +145 -0
- package/src/ui/resizable.tsx +69 -1
- package/src/ui/scroll-area.tsx +14 -3
- package/src/ui/segmented.tsx +109 -0
- package/src/ui/settings-group.tsx +67 -0
- package/src/ui/skeleton.tsx +62 -5
- package/src/ui/stat.tsx +41 -0
- package/src/ui/status.tsx +48 -0
- package/src/ui/switch.tsx +49 -23
- package/src/ui/tabs.tsx +168 -0
- package/src/ui/tooltip.tsx +52 -8
- package/theme.css +113 -0
- package/dist/components/slash-command.d.ts +0 -15
- package/dist/elements/chunks/Icon-D_Zmwmwh.js +0 -1
- package/dist/elements/chunks/action-icons-PVfIvcuG.js +0 -1
- package/dist/elements/chunks/attachments-Dp6vqtrc.js +0 -1
- package/dist/elements/chunks/button-CKyYD9G4.js +0 -1
- package/dist/elements/chunks/card-Cjho-PYk.js +0 -1
- package/dist/elements/chunks/chat-thread-RT808iPf.js +0 -1
- package/dist/elements/chunks/check-CDYaMYrM.js +0 -1
- package/dist/elements/chunks/chevron-down-3SBiq8HF.js +0 -1
- package/dist/elements/chunks/chevron-right-k2UFlIVK.js +0 -1
- package/dist/elements/chunks/cn-Dogu6PbV.js +0 -1
- package/dist/elements/chunks/code-block-BYUmfFSd.js +0 -1
- package/dist/elements/chunks/collapsible-BiNwdOn6.js +0 -1
- package/dist/elements/chunks/context-18g6oi4J.js +0 -1
- package/dist/elements/chunks/conversation-list-D9Y0NVdo.js +0 -1
- package/dist/elements/chunks/default-input-CSAoYYMd.js +0 -1
- package/dist/elements/chunks/download-D8K0Je8r.js +0 -1
- package/dist/elements/chunks/dropdown-bUs2iTia.js +0 -1
- package/dist/elements/chunks/external-link-6mA0wxab.js +0 -1
- package/dist/elements/chunks/file-text-DnaYk3Dm.js +0 -1
- package/dist/elements/chunks/file-tree-CgtRLlxK.js +0 -1
- package/dist/elements/chunks/hover-card-CIGw62gP.js +0 -1
- package/dist/elements/chunks/link-BlGSeoPy.js +0 -1
- package/dist/elements/chunks/loader-DvhR4qa0.js +0 -1
- package/dist/elements/chunks/message-CDZwXjhL.js +0 -1
- package/dist/elements/chunks/message-feedback-CYx81QiA.js +0 -1
- package/dist/elements/chunks/model-switcher-O_tUhoOT.js +0 -1
- package/dist/elements/chunks/overlay-DydXYMQW.js +0 -1
- package/dist/elements/chunks/prompt-suggestion-ldlWV5kd.js +0 -1
- package/dist/elements/chunks/reasoning-2PUnHlmr.js +0 -1
- package/dist/elements/chunks/resizable-B5WNbSeb.js +0 -1
- package/dist/elements/chunks/star-t9tI-P0q.js +0 -1
- package/dist/elements/chunks/store-C6rIooZz.js +0 -1
- package/dist/elements/chunks/text-shimmer-uh9V_KUh.js +0 -1
- package/dist/elements/chunks/textarea-3nm6Ia9U.js +0 -1
- package/dist/elements/chunks/thumbs-up-BBtguGld.js +0 -1
- package/dist/elements/chunks/toast-store-D8cL3fWl.js +0 -1
- package/dist/elements/chunks/tool-GJ3vwp1U.js +0 -1
- package/dist/elements/chunks/tooltip-DwKAz4XR.js +0 -1
- package/dist/elements/chunks/triangle-alert-Ct1zt2JL.js +0 -1
- package/dist/elements/chunks/use-card-resolution-D-_0Alzy.js +0 -1
- package/dist/elements/chunks/video-mVYiM99-.js +0 -1
- package/dist/elements/chunks/x-CzxL27Ch.js +0 -1
- package/dist/kitn-chat.es.js +0 -1
- package/dist/register-JyTglR6m.js +0 -1
- package/dist/register-impl-C6wlSsts.js +0 -77
- package/src/components/slash-command.tsx +0 -232
- package/src/elements/framework-usage.json +0 -588
- /package/dist/{kitn-chat-provider.d.ts → kai-provider.d.ts} +0 -0
- /package/dist/{kitn-chat-provider.es.js → kai-provider.es.js} +0 -0
package/dist/elements.d.ts
CHANGED
|
@@ -25,20 +25,119 @@ export interface CodeHighlightingOptions {
|
|
|
25
25
|
aliases?: Record<string, string>;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
// Runtime values live in the compiled `default` (dist/
|
|
28
|
+
// Runtime values live in the compiled `default` (dist/kai.es.js); we only
|
|
29
29
|
// DECLARE their signatures here so the .d.ts pulls no source.
|
|
30
30
|
export declare function configureCodeHighlighting(options: CodeHighlightingOptions): void;
|
|
31
31
|
export declare function isCodeHighlightingEnabled(): boolean;
|
|
32
32
|
|
|
33
|
+
/** Resolves once the kai-* elements are registered (browser); inert on the server. */
|
|
34
|
+
export declare const elementsReady: Promise<unknown>;
|
|
35
|
+
|
|
36
|
+
// --- Inlined from src/primitives/toast-store.ts (kept self-contained: no source imports) ---
|
|
37
|
+
export type ToastVariant = 'neutral' | 'success' | 'warning' | 'error' | 'info';
|
|
38
|
+
|
|
39
|
+
export interface ToastConfig {
|
|
40
|
+
stack?: 'expanded' | 'collapsed';
|
|
41
|
+
position?: 'top-center' | 'top-right' | 'top-left' | 'bottom-center' | 'bottom-right' | 'bottom-left';
|
|
42
|
+
max?: number;
|
|
43
|
+
/** Default appearance for imperatively-raised toasts. Defaults to `'pill'`. */
|
|
44
|
+
appearance?: 'pill' | 'card';
|
|
45
|
+
/** Default high-contrast inverse treatment. Defaults to `false`. */
|
|
46
|
+
inverse?: boolean;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** An action button rendered inside the toast. Returning `false` from `onAction`
|
|
50
|
+
* keeps the toast open; any other return value dismisses it. */
|
|
51
|
+
export interface ToastAction {
|
|
52
|
+
label: string;
|
|
53
|
+
onAction: () => void | false;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ToastItem {
|
|
57
|
+
id: string;
|
|
58
|
+
message: string;
|
|
59
|
+
variant?: ToastVariant;
|
|
60
|
+
/** Visual treatment: `'pill'` (default) or `'card'`. */
|
|
61
|
+
appearance?: 'pill' | 'card';
|
|
62
|
+
/** High-contrast inverse surface. Defaults to `false`. */
|
|
63
|
+
inverse?: boolean;
|
|
64
|
+
/** Secondary line shown below the message in the `'card'` appearance. */
|
|
65
|
+
description?: string;
|
|
66
|
+
action?: ToastAction;
|
|
67
|
+
/** Auto-dismiss delay in ms. `0` = sticky. */
|
|
68
|
+
duration?: number;
|
|
69
|
+
/** Whether the close affordance is shown. Defaults to `true`. */
|
|
70
|
+
dismissible?: boolean;
|
|
71
|
+
/** Container to scope this toast within instead of the viewport. */
|
|
72
|
+
target?: HTMLElement;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** Options accepted by `toast()` — everything but the message. */
|
|
76
|
+
export interface ToastOptions {
|
|
77
|
+
id?: string;
|
|
78
|
+
variant?: ToastVariant;
|
|
79
|
+
appearance?: 'pill' | 'card';
|
|
80
|
+
inverse?: boolean;
|
|
81
|
+
description?: string;
|
|
82
|
+
action?: ToastAction;
|
|
83
|
+
duration?: number;
|
|
84
|
+
dismissible?: boolean;
|
|
85
|
+
target?: HTMLElement;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** Handle returned from `toast()` for imperative control. */
|
|
89
|
+
export interface ToastHandle {
|
|
90
|
+
id: string;
|
|
91
|
+
dismiss: () => void;
|
|
92
|
+
update: (patch: Partial<Omit<ToastItem, 'id'>>) => void;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Runtime values live in the compiled `default` (dist/kai.es.js); we only
|
|
96
|
+
// DECLARE their signatures here so the .d.ts pulls no source.
|
|
97
|
+
/** Raise a transient toast. `toast('Saved')`, `toast.success('Copied')`,
|
|
98
|
+
* `toast.dismiss(id)`. Returns a `{ id, dismiss, update }` handle. */
|
|
99
|
+
export declare const toast: {
|
|
100
|
+
(message: string, opts?: ToastOptions): ToastHandle;
|
|
101
|
+
/** Raise a success (green check) toast. */
|
|
102
|
+
success: (message: string, opts?: ToastOptions) => ToastHandle;
|
|
103
|
+
/** Raise a warning (amber) toast. */
|
|
104
|
+
warning: (message: string, opts?: ToastOptions) => ToastHandle;
|
|
105
|
+
/** Raise an error (destructive/red) toast. */
|
|
106
|
+
error: (message: string, opts?: ToastOptions) => ToastHandle;
|
|
107
|
+
/** Raise an info (blue) toast. */
|
|
108
|
+
info: (message: string, opts?: ToastOptions) => ToastHandle;
|
|
109
|
+
/** Dismiss a toast by id. */
|
|
110
|
+
dismiss: (id: string) => void;
|
|
111
|
+
/** Dismiss every active toast. */
|
|
112
|
+
clear: () => void;
|
|
113
|
+
};
|
|
114
|
+
/** Configure the imperative `toast()` singleton — call once at app start. */
|
|
115
|
+
export declare function configureToasts(config: ToastConfig): void;
|
|
116
|
+
|
|
117
|
+
export interface KaiAgentCardElement extends HTMLElement {
|
|
118
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
119
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
120
|
+
/** The agent's name — the primary label. Attribute: `name`. */
|
|
121
|
+
name?: string;
|
|
122
|
+
/** Selected / focused state: highlighted border + surface. Attribute: `active`. */
|
|
123
|
+
active?: boolean;
|
|
124
|
+
/** Raise a prominent "Needs you" pill plus a glowing amber edge — the attention-routing signal that pulls focus to this agent. Attribute: `needs-attention`. */
|
|
125
|
+
needsAttention?: boolean;
|
|
126
|
+
/** Run status — a JS PROPERTY (object), not an attribute. Shape: `{ tone, label?, pulse? }`, where `tone` is one of `working` | `idle` | `done` | `error` | `blocked` (maps to the kit's tool hues), `label` is an optional short string beside the dot, and `pulse` animates the dot. Set it with `el.status = { tone: 'working', label: 'Working', pulse: true }`. */
|
|
127
|
+
status?: { tone: "working" | "idle" | "done" | "error" | "blocked"; label?: string; pulse?: boolean };
|
|
128
|
+
}
|
|
129
|
+
|
|
33
130
|
export interface KaiArtifactElement extends HTMLElement {
|
|
34
131
|
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
35
132
|
theme?: 'light' | 'dark' | 'auto';
|
|
36
133
|
/** URL the preview iframe frames. Consumer-controlled. */
|
|
37
134
|
src?: string;
|
|
38
135
|
/** Files for the Code tab tree + each file's preview `url`. Set as a JS property (array). */
|
|
39
|
-
files: { path: string; url?: undefined | string; code?: undefined | string; language?: undefined | string; type?: undefined | "html" | "pdf" | "image" | "other" }[];
|
|
40
|
-
/**
|
|
136
|
+
files: { path: string; url?: undefined | string; code?: undefined | string; language?: undefined | string; type?: undefined | "html" | "pdf" | "image" | "other"; additions?: undefined | number; deletions?: undefined | number; status?: undefined | "added" | "modified" | "deleted" | "renamed" | "untracked" }[];
|
|
137
|
+
/** Controlled active tab: `preview` or `code`. When set, the artifact follows it (re-asserted on change). Leave unset for an uncontrolled tab (see `defaultTab`). */
|
|
41
138
|
tab?: "preview" | "code";
|
|
139
|
+
/** Uncontrolled INITIAL tab (used only when `tab` is unset). Default `preview`. Seeds the starting tab; the user can then switch freely without the consumer re-asserting a controlled `tab`. */
|
|
140
|
+
defaultTab?: "preview" | "code";
|
|
42
141
|
/** Selected file path — syncs the tree highlight, Code source, and preview. */
|
|
43
142
|
activeFile?: string;
|
|
44
143
|
/** iframe `sandbox` override. Secure default `allow-scripts allow-forms` (NOT `allow-same-origin`). */
|
|
@@ -65,6 +164,8 @@ export interface KaiArtifactElement extends HTMLElement {
|
|
|
65
164
|
standalone?: boolean;
|
|
66
165
|
/** Show the address but make it read-only (visible, nav-tracking, non-editable). */
|
|
67
166
|
readonlyPath?: boolean;
|
|
167
|
+
/** Friendly address shown in the path field instead of the real current url (read-only, non-navigable). Use when the framed url is not consumer-facing (e.g. a `data:` blob) so a clean address shows instead of leaking it. Scalar string: set as the `display-url` attribute or the `displayUrl` property. */
|
|
168
|
+
displayUrl?: string;
|
|
68
169
|
}
|
|
69
170
|
|
|
70
171
|
export interface KaiAttachmentsElement extends HTMLElement {
|
|
@@ -84,17 +185,70 @@ export interface KaiAttachmentsElement extends HTMLElement {
|
|
|
84
185
|
emptyText?: string;
|
|
85
186
|
}
|
|
86
187
|
|
|
188
|
+
export interface KaiAvatarElement extends HTMLElement {
|
|
189
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
190
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
191
|
+
/** Image URL/data-URI. When absent, the `fallback` initials show instead. */
|
|
192
|
+
src?: string;
|
|
193
|
+
/** Alt text for the image. Defaults to `fallback`. */
|
|
194
|
+
alt?: string;
|
|
195
|
+
/** Short text shown when there's no image — usually initials (e.g. "JD", "AI"). */
|
|
196
|
+
fallback?: string;
|
|
197
|
+
/** Size token: `sm` | `md` (default) | `lg`. */
|
|
198
|
+
size?: "sm" | "md" | "lg";
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface KaiBadgeElement extends HTMLElement {
|
|
202
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
203
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
204
|
+
/** `default` (muted pill) · `count` (compact number badge) · `citation` (filled primary, for inline citation markers). Defaults to `default`. */
|
|
205
|
+
variant?: "default" | "count" | "citation";
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface KaiButtonElement extends HTMLElement {
|
|
209
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
210
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
211
|
+
/** Visual style. `default` (filled), `subtle` (muted text, hover tint — the toolbar icon look), `ghost` (transparent, hover fill), `outline`, or `destructive`. Defaults to `default`. */
|
|
212
|
+
variant?: "default" | "subtle" | "ghost" | "outline" | "destructive";
|
|
213
|
+
/** Size token. `icon` / `icon-sm` are square (for icon-only buttons); `sm` / `md` / `lg` size text buttons. Defaults to `md`. */
|
|
214
|
+
size?: "sm" | "md" | "lg" | "icon" | "icon-sm";
|
|
215
|
+
/** Leading icon: a named icon (e.g. `"mic"`, `"plus"`), an image URL/data-URI, or plain text. Renders before any slotted label. */
|
|
216
|
+
icon?: string;
|
|
217
|
+
/** Trailing icon, after the label (e.g. `"chevron-down"` for a menu affordance). */
|
|
218
|
+
iconTrailing?: string;
|
|
219
|
+
/** Accessible name. REQUIRED for icon-only buttons (no visible text); ignored when you slot visible text, which already names the button. */
|
|
220
|
+
label?: string;
|
|
221
|
+
/** Disable the button (non-interactive, dimmed). */
|
|
222
|
+
disabled?: boolean;
|
|
223
|
+
/** Stretch the button to the full width of its container (a block button) — e.g. a card CTA or a stacked action. Attribute: `full`. */
|
|
224
|
+
full?: boolean;
|
|
225
|
+
/** Justify the button's content: `start`, `center` (default), or `end`. Combine with `full` for a full-width, left-aligned button. */
|
|
226
|
+
align?: "start" | "center" | "end";
|
|
227
|
+
/** Native button `type`. Defaults to `button` (so it never submits a form). */
|
|
228
|
+
type?: "button" | "submit" | "reset";
|
|
229
|
+
}
|
|
230
|
+
|
|
87
231
|
export interface KaiCardElement extends HTMLElement {
|
|
88
232
|
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
89
233
|
theme?: 'light' | 'dark' | 'auto';
|
|
90
|
-
/**
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
|
|
96
|
-
/**
|
|
234
|
+
/** Surface treatment: `outlined` (default) | `filled` | `plain` | `accent`. Attribute: `appearance`. */
|
|
235
|
+
appearance?: "outlined" | "filled" | "plain" | "accent";
|
|
236
|
+
/** `vertical` (default, media on top) | `horizontal` (media at the start) | `responsive` (horizontal when the card's container is wide enough, else vertical — a container query on the card's own width). Attribute: `orientation`. */
|
|
237
|
+
orientation?: "vertical" | "horizontal" | "responsive";
|
|
238
|
+
/** The card width below which a `responsive` card collapses to vertical and the footer actions stack. A CSS length; default `28rem`. Attribute: `collapse`. */
|
|
239
|
+
collapse?: string;
|
|
240
|
+
/** Tighter spacing for dense lists. Attribute: `dense`. */
|
|
97
241
|
dense?: boolean;
|
|
242
|
+
/** Show a close (×) that hides the card and emits `kai-dismiss`. Attribute: `dismissible`. Off by default. */
|
|
243
|
+
dismissible?: boolean;
|
|
244
|
+
/** Render the whole card as a link. Attribute: `href`. Wins over `clickable`. */
|
|
245
|
+
href?: string;
|
|
246
|
+
/** `target` for the `href` anchor. Attribute: `target`. */
|
|
247
|
+
target?: string;
|
|
248
|
+
/** `rel` for the `href` anchor. Attribute: `rel`. */
|
|
249
|
+
rel?: string;
|
|
250
|
+
/** Make the whole card a button (`role="button"`, Enter/Space, hover affordance) that emits `kai-card-click`. Attribute: `clickable`. Ignored when `href` is set. */
|
|
251
|
+
clickable?: boolean;
|
|
98
252
|
}
|
|
99
253
|
|
|
100
254
|
export interface KaiCardsElement extends HTMLElement {
|
|
@@ -111,8 +265,14 @@ export interface KaiCardsElement extends HTMLElement {
|
|
|
111
265
|
export interface KaiChainOfThoughtElement extends HTMLElement {
|
|
112
266
|
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
113
267
|
theme?: 'light' | 'dark' | 'auto';
|
|
114
|
-
/** The reasoning steps. Set as a JS property. Compound sub-parts collapse to this one data model (Route 1). */
|
|
115
|
-
steps: { label: string; content?: undefined | string }[];
|
|
268
|
+
/** The reasoning steps. Set as a JS property. Compound sub-parts collapse to this one data model (Route 1). Each `{ label, content?, id? }`. */
|
|
269
|
+
steps: { label: string; content?: undefined | string; id?: undefined | string }[];
|
|
270
|
+
/** Open mode: `'multiple'` (default — any number of steps open at once) or `'single'` (at most one open; opening a step closes the others). */
|
|
271
|
+
type?: "single" | "multiple";
|
|
272
|
+
/** Controlled open step key(s). When set, it WINS over user interaction (the consumer owns the open set). String in `single` mode, string[] in `multiple` mode. Set as a JS property. */
|
|
273
|
+
value?: string | string[];
|
|
274
|
+
/** Uncontrolled INITIAL open step key(s) — seeds which steps render expanded. Ignored once `value` is provided. Set as a JS property. */
|
|
275
|
+
defaultValue?: string | string[];
|
|
116
276
|
}
|
|
117
277
|
|
|
118
278
|
export interface KaiChatElement extends HTMLElement {
|
|
@@ -120,8 +280,8 @@ export interface KaiChatElement extends HTMLElement {
|
|
|
120
280
|
theme?: 'light' | 'dark' | 'auto';
|
|
121
281
|
/** 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 = [...]`). */
|
|
122
282
|
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 }; feedback?: undefined | "like" | "dislike" }[];
|
|
123
|
-
/**
|
|
124
|
-
value?: string;
|
|
283
|
+
/** Value of the input. A **string** is controlled (the host owns the text and updates it on `kai-value-change`). A **ComposerDoc** is a one-time seed that pre-populates pills; the user then edits freely. Leave unset for uncontrolled. */
|
|
284
|
+
value?: string | ({ type: "text"; text: string } | { type: "entity"; entity: { kind: string; id: string; label: string; icon?: string; promptText?: string; data?: Record<string, unknown> } })[];
|
|
125
285
|
/** Placeholder text shown in the empty input. */
|
|
126
286
|
placeholder?: string;
|
|
127
287
|
/** When true, shows the loading/streaming state and disables submit (use while awaiting the assistant's reply). */
|
|
@@ -133,7 +293,7 @@ export interface KaiChatElement extends HTMLElement {
|
|
|
133
293
|
/** 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. */
|
|
134
294
|
persistSuggestions?: boolean;
|
|
135
295
|
/** Body/prose font scale for rendered markdown (`'xs' | 'sm' | 'base' | 'lg'`). Defaults to `'sm'`. */
|
|
136
|
-
proseSize?: "
|
|
296
|
+
proseSize?: "sm" | "lg" | "xs" | "base";
|
|
137
297
|
/** Shiki theme name for syntax-highlighted code blocks (e.g. `'github-dark-dimmed'`). */
|
|
138
298
|
codeTheme?: string;
|
|
139
299
|
/** Enable Shiki syntax highlighting in code blocks. Turn off to render plain `<pre>` blocks (lighter, no highlighter load). Default true. */
|
|
@@ -152,16 +312,26 @@ export interface KaiChatElement extends HTMLElement {
|
|
|
152
312
|
headerStart?: boolean;
|
|
153
313
|
/** Whether the host has `slot="header-end"` content (right of the controls). */
|
|
154
314
|
headerEnd?: boolean;
|
|
315
|
+
/** REPLACE — full custom header in place of the built-in title/model/context bar. */
|
|
316
|
+
headerFull?: boolean;
|
|
317
|
+
/** INJECT — left sidebar column (e.g. a conversation list / your own nav). */
|
|
318
|
+
sidebar?: boolean;
|
|
319
|
+
/** REPLACE — custom zero-state rendered in the message area while the thread is empty (replaces the empty message list only; the composer and its suggestions still render). */
|
|
320
|
+
empty?: boolean;
|
|
321
|
+
/** REPLACE — full custom composer in place of the built-in prompt input. The projected content wires its own submit (the data-flow boundary). */
|
|
322
|
+
composer?: boolean;
|
|
323
|
+
/** INJECT — accessory row just above the composer (e.g. extra actions). */
|
|
324
|
+
composerActions?: boolean;
|
|
325
|
+
/** INJECT — footer row below the composer (disclaimers, token meter, …). */
|
|
326
|
+
footer?: boolean;
|
|
155
327
|
/** Show a Search (Globe) button in the input toolbar; fires a `search` event. */
|
|
156
328
|
search?: boolean;
|
|
157
329
|
/** Show a Voice (Mic) button in the input toolbar; fires a `voice` event. */
|
|
158
330
|
voice?: boolean;
|
|
159
|
-
/**
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
|
|
163
|
-
/** Single-line palette rows. */
|
|
164
|
-
slashCompact?: boolean;
|
|
331
|
+
/** Rich entity triggers — each `{ char, kind, items }` opens a caret-anchored menu that inserts an atomic pill (`/` skills, `@` agents/plugins). Set as a JS property; forwarded to the input. */
|
|
332
|
+
triggers?: { char: string; kind: string; items?: { id: string; label: string; icon?: string; description?: string; group?: string; kind?: string; promptText?: string; data?: Record<string, unknown> }[] }[];
|
|
333
|
+
/** Default icon per entity kind (kind → image src) for pills/menu items. */
|
|
334
|
+
kindIcons?: Record<string, string>;
|
|
165
335
|
/** Whether each message's action bar is always visible (`'always'`, default) or only revealed on hover of that message row (`'hover'`). */
|
|
166
336
|
actionsReveal?: "always" | "hover";
|
|
167
337
|
}
|
|
@@ -174,9 +344,9 @@ export interface KaiCheckpointElement extends HTMLElement {
|
|
|
174
344
|
/** Tooltip on hover. */
|
|
175
345
|
tooltip?: string;
|
|
176
346
|
/** Visual button style. */
|
|
177
|
-
variant?: "
|
|
347
|
+
variant?: "default" | "ghost" | "outline";
|
|
178
348
|
/** Button size (use an `icon*` size for an icon-only checkpoint). */
|
|
179
|
-
size?: "sm" | "
|
|
349
|
+
size?: "sm" | "md" | "lg" | "icon" | "icon-sm";
|
|
180
350
|
}
|
|
181
351
|
|
|
182
352
|
export interface KaiChoiceElement extends HTMLElement {
|
|
@@ -190,6 +360,31 @@ export interface KaiChoiceElement extends HTMLElement {
|
|
|
190
360
|
heading?: string;
|
|
191
361
|
/** Set when the user resolved this card; renders the read-only view. Property: `el.resolution = { kind:'action', action:'…' }`. */
|
|
192
362
|
resolution?: Record<string, unknown>;
|
|
363
|
+
/** Controlled selection — the selected option id. When set, the consumer owns the current pick (RadioGroup `value`). Attribute: `value`. */
|
|
364
|
+
value?: string;
|
|
365
|
+
/** Option id to pre-select on mount (uncontrolled seed). Attribute: `default-value`. */
|
|
366
|
+
defaultValue?: string;
|
|
367
|
+
/** Disable the whole radiogroup + Submit (e.g. while the agent is busy). Attribute: `disabled`. */
|
|
368
|
+
disabled?: boolean;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export interface KaiCoachmarkElement extends HTMLElement {
|
|
372
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
373
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
374
|
+
/** Drive/observe open state (Shoelace-style: settable + reflected to the `open` attribute; the element still self-manages). Set `el.open = true`, or `<kai-coachmark open>`; listen for `kai-open-change`. */
|
|
375
|
+
open?: boolean;
|
|
376
|
+
/** Initial open state on mount (uncontrolled seed). */
|
|
377
|
+
defaultOpen?: boolean;
|
|
378
|
+
/** The bold title. Named `headline` because `title` collides with the global `HTMLElement.title` attribute (it throws at registration). */
|
|
379
|
+
headline?: string;
|
|
380
|
+
/** A small badge pill beside the headline (e.g. "New"). */
|
|
381
|
+
badge?: string;
|
|
382
|
+
/** Floating placement relative to the anchor (default `bottom`). */
|
|
383
|
+
placement?: string;
|
|
384
|
+
/** Color tone: `primary` (default, theme accent), `info` (blue), `success` (green), `warning` (amber), or `error` (red) — reusing the kit's tool hues. */
|
|
385
|
+
tone?: "error" | "primary" | "info" | "success" | "warning";
|
|
386
|
+
/** Render the arrow that points at the anchor (default `true`). Set `arrow="false"` for a plain bubble with no pointer. */
|
|
387
|
+
arrow?: boolean;
|
|
193
388
|
}
|
|
194
389
|
|
|
195
390
|
export interface KaiCodeBlockElement extends HTMLElement {
|
|
@@ -204,7 +399,18 @@ export interface KaiCodeBlockElement extends HTMLElement {
|
|
|
204
399
|
/** Disable syntax highlighting (renders plain text, no Shiki). */
|
|
205
400
|
codeHighlight?: boolean;
|
|
206
401
|
/** Code text sizing. */
|
|
207
|
-
proseSize?: "
|
|
402
|
+
proseSize?: "sm" | "lg" | "xs" | "base";
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export interface KaiCommandElement extends HTMLElement {
|
|
406
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
407
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
408
|
+
/** Flat list of items. Set as a JS property — not an HTML attribute. */
|
|
409
|
+
items?: { id: string; label: string; icon?: string; description?: string; shortcut?: string; group?: string }[];
|
|
410
|
+
/** Placeholder text for the search input. */
|
|
411
|
+
placeholder?: string;
|
|
412
|
+
/** Label shown when no items match the current query. */
|
|
413
|
+
emptyLabel?: string;
|
|
208
414
|
}
|
|
209
415
|
|
|
210
416
|
export interface KaiCompareElement extends HTMLElement {
|
|
@@ -219,13 +425,36 @@ export interface KaiCompareElement extends HTMLElement {
|
|
|
219
425
|
/** Layout: `'auto'` (default — columns when wide, tabs when narrow, by CONTAINER width) | `'columns'` (side-by-side) | `'tabs'` (pills to switch). Attribute: `layout`. */
|
|
220
426
|
layout?: "auto" | "columns" | "tabs";
|
|
221
427
|
/** Prose/text size for the rendered candidates. Attribute: `prose-size`. */
|
|
222
|
-
proseSize?: "
|
|
428
|
+
proseSize?: "sm" | "lg" | "xs" | "base";
|
|
223
429
|
/** Shiki theme for code blocks in the candidates. Attribute: `code-theme`. */
|
|
224
430
|
codeTheme?: string;
|
|
225
431
|
/** Whether code blocks are syntax-highlighted. Attribute: `code-highlight`. */
|
|
226
432
|
codeHighlight?: boolean;
|
|
227
433
|
}
|
|
228
434
|
|
|
435
|
+
export interface KaiComposerElement extends HTMLElement {
|
|
436
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
437
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
438
|
+
/** Controlled value — string or a full ComposerDoc (set as JS property). */
|
|
439
|
+
value?: string | ({ type: "text"; text: string } | { type: "entity"; entity: { kind: string; id: string; label: string; icon?: string; promptText?: string; data?: Record<string, unknown> } })[];
|
|
440
|
+
/** Placeholder text shown when the composer is empty. */
|
|
441
|
+
placeholder?: string;
|
|
442
|
+
/** Disable the composer entirely (non-interactive). */
|
|
443
|
+
disabled?: boolean;
|
|
444
|
+
/** Show a loading/streaming state and block submit. */
|
|
445
|
+
loading?: boolean;
|
|
446
|
+
/** Maximum height in px before the content scrolls. Default 240. */
|
|
447
|
+
maxHeight?: string | number;
|
|
448
|
+
/** Whether pressing Enter (without Shift) submits. Default true. */
|
|
449
|
+
submitOnEnter?: boolean;
|
|
450
|
+
/** Trigger definitions — set as a JS property. */
|
|
451
|
+
triggers?: { char: string; kind: string; items?: { id: string; label: string; icon?: string; description?: string; group?: string; kind?: string; promptText?: string; data?: Record<string, unknown> }[] }[];
|
|
452
|
+
/** Keyword highlight rules — set as a JS property. */
|
|
453
|
+
highlights?: (string | { pattern: string; flags?: string; class?: string })[];
|
|
454
|
+
/** Default icon per entity kind (kind → image URL/data-URI) for items without their own `icon`. Overrides the built-in agent/plugin glyphs. JS property. */
|
|
455
|
+
kindIcons?: Record<string, string>;
|
|
456
|
+
}
|
|
457
|
+
|
|
229
458
|
export interface KaiConfirmElement extends HTMLElement {
|
|
230
459
|
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
231
460
|
theme?: 'light' | 'dark' | 'auto';
|
|
@@ -258,9 +487,35 @@ export interface KaiConversationsElement extends HTMLElement {
|
|
|
258
487
|
/** 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. */
|
|
259
488
|
groups: { id: string; userId?: undefined | string; teamId?: undefined | string; name: string; sortOrder: number; createdAt: string }[];
|
|
260
489
|
/** A flat list of conversation summaries; the component buckets them by recency for you. Ignored when `groups` is provided. Set as a JS property. */
|
|
261
|
-
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 }[];
|
|
490
|
+
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; trailing?: undefined | string }[];
|
|
262
491
|
/** The id of the currently-open conversation, highlighted in the list. */
|
|
263
492
|
activeId?: string;
|
|
493
|
+
/** Controlled collapsed state. Set as a JS property (`el.collapsed = true`) to drive the rail from your app, updating it in response to `kai-collapse-toggle`. Omit for uncontrolled (the element manages it). Collapsed shrinks the rail to a floating reopen button. */
|
|
494
|
+
collapsed?: boolean;
|
|
495
|
+
/** Initial collapsed state when uncontrolled (default false). Use the `default-collapsed` attribute to start collapsed in plain HTML. */
|
|
496
|
+
defaultCollapsed?: boolean;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
export interface KaiDialogElement extends HTMLElement {
|
|
500
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
501
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
502
|
+
/** Drive/observe open state (Shoelace-style: settable + reflected to the `open` attribute; the element still self-manages on Escape/backdrop). Set `el.open = true`, or `<kai-dialog open>`; listen for `kai-open-change`. */
|
|
503
|
+
open?: boolean;
|
|
504
|
+
/** Initial open state on mount (uncontrolled seed). */
|
|
505
|
+
defaultOpen?: boolean;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export interface KaiEditableLabelElement extends HTMLElement {
|
|
509
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
510
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
511
|
+
/** The label text — settable and reflected to the `value` attribute. Read `el.value` for live state. */
|
|
512
|
+
value?: string;
|
|
513
|
+
/** Controlled edit state. `el.editing = true` opens the field; reflected to the `editing` attribute. */
|
|
514
|
+
editing?: boolean;
|
|
515
|
+
/** Placeholder shown while editing / when the value is empty. */
|
|
516
|
+
placeholder?: string;
|
|
517
|
+
/** Disable entering edit mode. */
|
|
518
|
+
disabled?: boolean;
|
|
264
519
|
}
|
|
265
520
|
|
|
266
521
|
export interface KaiEmbedElement extends HTMLElement {
|
|
@@ -303,12 +558,14 @@ export interface KaiFeedbackBarElement extends HTMLElement {
|
|
|
303
558
|
export interface KaiFileTreeElement extends HTMLElement {
|
|
304
559
|
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
305
560
|
theme?: 'light' | 'dark' | 'auto';
|
|
306
|
-
/** The files to render. Set as a JS property (array of `{ path, url?, code?, language?, type? }`). */
|
|
307
|
-
files: { path: string; url?: undefined | string; code?: undefined | string; language?: undefined | string; type?: undefined | "html" | "pdf" | "image" | "other" }[];
|
|
561
|
+
/** The files to render. Set as a JS property (array of `{ path, url?, code?, language?, type?, additions?, deletions?, status? }`). */
|
|
562
|
+
files: { path: string; url?: undefined | string; code?: undefined | string; language?: undefined | string; type?: undefined | "html" | "pdf" | "image" | "other"; additions?: undefined | number; deletions?: undefined | number; status?: undefined | "added" | "modified" | "deleted" | "renamed" | "untracked" }[];
|
|
308
563
|
/** Selected file path — highlighted in the tree. */
|
|
309
564
|
activeFile?: string;
|
|
310
565
|
/** Folder paths expanded initially. Omit to start with all folders open. */
|
|
311
566
|
defaultExpanded?: string[];
|
|
567
|
+
/** Show a changed-files summary header (file count + summed `+/-` + Collapse-all). Attribute: `summary`. Off by default. */
|
|
568
|
+
summary?: boolean;
|
|
312
569
|
}
|
|
313
570
|
|
|
314
571
|
export interface KaiFileUploadElement extends HTMLElement {
|
|
@@ -335,6 +592,38 @@ export interface KaiFormElement extends HTMLElement {
|
|
|
335
592
|
heading?: string;
|
|
336
593
|
/** Set when the user resolved this card; renders the read-only view. Property: `el.resolution = { kind:'submit', data:{…} }`. */
|
|
337
594
|
resolution?: Record<string, unknown>;
|
|
595
|
+
/** Controlled field values (JS property). When set, it wins over local edits. */
|
|
596
|
+
values?: Record<string, unknown>;
|
|
597
|
+
/** Initial values overlaying the schema defaults (uncontrolled seed; JS property). */
|
|
598
|
+
defaultValues?: Record<string, unknown>;
|
|
599
|
+
/** Disable all fields + submit. Attribute: `disabled`. */
|
|
600
|
+
disabled?: boolean;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
export interface KaiHoverCardElement extends HTMLElement {
|
|
604
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
605
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
606
|
+
/** Delay (ms) before the card opens on hover. Defaults to 0 (focus opens it immediately too). */
|
|
607
|
+
openDelay?: number;
|
|
608
|
+
/** Delay (ms) before it closes after the pointer leaves. Defaults to 300. */
|
|
609
|
+
closeDelay?: number;
|
|
610
|
+
/** Preferred placement: `'top' | 'bottom' | 'left' | 'right'` (+ optional `-start`/`-end`). Defaults to `'bottom'`; flips to stay in view. */
|
|
611
|
+
placement?: string;
|
|
612
|
+
/** Drive/observe open state (Shoelace-style: settable + reflected to the `open` attribute, the element still self-manages on hover). Set `el.open = true`, or `<kai-hover-card open>`; listen for `kai-open-change`. */
|
|
613
|
+
open?: boolean;
|
|
614
|
+
/** Initial open state on mount (uncontrolled seed). */
|
|
615
|
+
defaultOpen?: boolean;
|
|
616
|
+
/** Suppress the hover behavior entirely without unmounting. */
|
|
617
|
+
disabled?: boolean;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
export interface KaiIconElement extends HTMLElement {
|
|
621
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
622
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
623
|
+
/** A curated icon name (e.g. `"mic"`, `"globe"`), an image URL/data-URI, or plain text. */
|
|
624
|
+
name?: string;
|
|
625
|
+
/** Size token: `sm` | `md` (default) | `lg`. */
|
|
626
|
+
size?: "sm" | "md" | "lg";
|
|
338
627
|
}
|
|
339
628
|
|
|
340
629
|
export interface KaiImageElement extends HTMLElement {
|
|
@@ -350,6 +639,50 @@ export interface KaiImageElement extends HTMLElement {
|
|
|
350
639
|
mediaType?: string;
|
|
351
640
|
}
|
|
352
641
|
|
|
642
|
+
export interface KaiInputElement extends HTMLElement {
|
|
643
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
644
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
645
|
+
/** Native input type: `text` (default) · `email` · `url` · `search` · `tel` · `password` · `number`. Single-line only. */
|
|
646
|
+
type?: string;
|
|
647
|
+
/** Controlled value — settable and reflected to the `value` attribute. `el.value = 'hi'` drives it (no event); typing updates it and fires `kai-input`. Read `el.value` for live state. */
|
|
648
|
+
value?: string;
|
|
649
|
+
/** Placeholder shown when empty. */
|
|
650
|
+
placeholder?: string;
|
|
651
|
+
/** Field label, linked to the input. */
|
|
652
|
+
label?: string;
|
|
653
|
+
/** Helper text below the control. */
|
|
654
|
+
hint?: string;
|
|
655
|
+
/** Error text; flips the field invalid (`aria-invalid` + destructive border). */
|
|
656
|
+
error?: string;
|
|
657
|
+
/** Control density: `sm` or `md`. Defaults to `md`. */
|
|
658
|
+
size?: "sm" | "md";
|
|
659
|
+
/** Disable interaction. */
|
|
660
|
+
disabled?: boolean;
|
|
661
|
+
/** Make the input read-only. */
|
|
662
|
+
readonly?: boolean;
|
|
663
|
+
/** Mark the input required. */
|
|
664
|
+
required?: boolean;
|
|
665
|
+
/** Force the invalid state without an `error` string. */
|
|
666
|
+
invalid?: boolean;
|
|
667
|
+
/** Form-control name. */
|
|
668
|
+
name?: string;
|
|
669
|
+
/** Autofill hint forwarded to the inner input (e.g. `email`, `current-password`). */
|
|
670
|
+
autocomplete?: string;
|
|
671
|
+
/** Virtual-keyboard hint forwarded to the inner input (e.g. `numeric`, `email`). */
|
|
672
|
+
inputmode?: string;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export interface KaiKbdElement extends HTMLElement {
|
|
676
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
677
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
678
|
+
/** Shortcut spec — tokens joined by `+` (e.g. `Mod+Shift+K`). Omit it to show default-slot content instead. Display only; the element does not bind keys. */
|
|
679
|
+
keys?: string;
|
|
680
|
+
/** `mac` uses ⌘/⌥, `other` uses Ctrl. `auto` (default) sniffs the OS. */
|
|
681
|
+
platform?: "other" | "auto" | "mac";
|
|
682
|
+
/** Cap size: `sm` or `md`. Defaults to `md`. */
|
|
683
|
+
size?: "sm" | "md";
|
|
684
|
+
}
|
|
685
|
+
|
|
353
686
|
export interface KaiLinkPreviewElement extends HTMLElement {
|
|
354
687
|
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
355
688
|
theme?: 'light' | 'dark' | 'auto';
|
|
@@ -365,7 +698,7 @@ export interface KaiLoaderElement extends HTMLElement {
|
|
|
365
698
|
/** The animation style: `'circular' | 'classic' | 'pulse' | 'pulse-dot' | 'dots' | 'typing' | 'wave' | 'bars' | 'terminal' | 'text-blink' | 'text-shimmer' | 'loading-dots'`. Defaults to `'circular'`. */
|
|
366
699
|
variant?: "circular" | "classic" | "pulse" | "pulse-dot" | "dots" | "typing" | "wave" | "bars" | "terminal" | "text-blink" | "text-shimmer" | "loading-dots";
|
|
367
700
|
/** Loader size: `'sm' | 'md' | 'lg'`. Defaults to `'md'`. */
|
|
368
|
-
size?: "sm" | "
|
|
701
|
+
size?: "sm" | "md" | "lg";
|
|
369
702
|
/** Label for the text-based variants. */
|
|
370
703
|
text?: string;
|
|
371
704
|
}
|
|
@@ -376,13 +709,36 @@ export interface KaiMarkdownElement extends HTMLElement {
|
|
|
376
709
|
/** The markdown source to render. */
|
|
377
710
|
content: string;
|
|
378
711
|
/** Text/markdown sizing. */
|
|
379
|
-
proseSize?: "
|
|
712
|
+
proseSize?: "sm" | "lg" | "xs" | "base";
|
|
380
713
|
/** Shiki theme for fenced code blocks. */
|
|
381
714
|
codeTheme?: string;
|
|
382
715
|
/** Disable syntax highlighting (no Shiki loads). */
|
|
383
716
|
codeHighlight?: boolean;
|
|
384
717
|
}
|
|
385
718
|
|
|
719
|
+
export interface KaiMenuElement extends HTMLElement {
|
|
720
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
721
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
722
|
+
/** Tree of menu items. Set as a JS property — not an HTML attribute. */
|
|
723
|
+
items?: { id?: string; label?: string; icon?: string; shortcut?: string; checked?: boolean; radioGroup?: string; disabled?: boolean; separator?: boolean; heading?: boolean; items?: Record<string, unknown>[] }[];
|
|
724
|
+
/** Optional placement hint (unused by the underlying Dropdown which always positions bottom-start, kept for future extension). */
|
|
725
|
+
placement?: string;
|
|
726
|
+
/** Built-in trigger: leading icon (a named icon like `"plus"`, an image URL/data-URI, or text). Use this instead of slotting `slot="trigger"` for the common case — a slotted trigger overrides it. */
|
|
727
|
+
triggerIcon?: string;
|
|
728
|
+
/** Built-in trigger: a text label (e.g. `"High"`). */
|
|
729
|
+
triggerLabel?: string;
|
|
730
|
+
/** Built-in trigger: a trailing icon (e.g. `"chevron-down"` for a select look). */
|
|
731
|
+
triggerIconTrailing?: string;
|
|
732
|
+
/** Accessible name for an icon-only trigger (no visible label). */
|
|
733
|
+
label?: string;
|
|
734
|
+
/** Drive/observe open state (Shoelace-style: settable + reflected to the `open` attribute, the menu still self-manages on click/keyboard). Set `el.open = true`, or `<kai-menu open>`; listen for `kai-open-change`. */
|
|
735
|
+
open?: boolean;
|
|
736
|
+
/** Initial open state on mount (uncontrolled seed). */
|
|
737
|
+
defaultOpen?: boolean;
|
|
738
|
+
/** Disable the trigger — click/keyboard and `show()` no longer open the menu. */
|
|
739
|
+
disabled?: boolean;
|
|
740
|
+
}
|
|
741
|
+
|
|
386
742
|
export interface KaiMessageElement extends HTMLElement {
|
|
387
743
|
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
388
744
|
theme?: 'light' | 'dark' | 'auto';
|
|
@@ -395,7 +751,7 @@ export interface KaiMessageElement extends HTMLElement {
|
|
|
395
751
|
/** Force markdown on/off. Defaults to on for assistant, off for user. */
|
|
396
752
|
markdown?: boolean;
|
|
397
753
|
/** Text/markdown sizing for the message body. */
|
|
398
|
-
proseSize?: "
|
|
754
|
+
proseSize?: "sm" | "lg" | "xs" | "base";
|
|
399
755
|
/** Shiki theme name used for fenced code blocks in the content. */
|
|
400
756
|
codeTheme?: string;
|
|
401
757
|
/** Disable syntax highlighting for code blocks (no Shiki loads). */
|
|
@@ -406,6 +762,8 @@ export interface KaiMessageElement extends HTMLElement {
|
|
|
406
762
|
avatarSrc?: string;
|
|
407
763
|
/** Convenience avatar fallback text (used when `message.avatar` is not set). */
|
|
408
764
|
avatarFallback?: string;
|
|
765
|
+
/** Avatar rail mode. `'none'` omits the avatar rail entirely so the body spans the full row (predictable layout when you never show avatars). Any other value keeps the default behaviour: the built-in avatar when one resolves, or your `slot="avatar"` content when projected (which REPLACES the built-in). */
|
|
766
|
+
avatar?: string;
|
|
409
767
|
}
|
|
410
768
|
|
|
411
769
|
export interface KaiModelSwitcherElement extends HTMLElement {
|
|
@@ -415,6 +773,66 @@ export interface KaiModelSwitcherElement extends HTMLElement {
|
|
|
415
773
|
models: { id: string; name: string; provider?: undefined | string; description?: undefined | string; group?: undefined | string }[];
|
|
416
774
|
/** The currently-selected model id. Defaults to the first model. */
|
|
417
775
|
currentModel?: string;
|
|
776
|
+
/** Drive/observe the dropdown's open state (Shoelace-style: settable + reflected to the `open` attribute, the dropdown still self-manages on click/keyboard). Set `el.open = true`, or `<kai-model-switcher open>`; listen for `kai-open-change`. */
|
|
777
|
+
open?: boolean;
|
|
778
|
+
/** Initial open state on mount (uncontrolled seed). */
|
|
779
|
+
defaultOpen?: boolean;
|
|
780
|
+
/** Disable the trigger — click/keyboard and `show()` no longer open the dropdown. */
|
|
781
|
+
disabled?: boolean;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
export interface KaiNavElement extends HTMLElement {
|
|
785
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
786
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
787
|
+
/** The nav items. Set as a JS property (array, not an attribute). Each item may carry `children` (a collapsible group), a `status` dot, and trailing `meta` text. */
|
|
788
|
+
items?: { id: string; label?: string; icon?: string; badge?: string; trailing?: string; disabled?: boolean; children?: Record<string, unknown>[]; status?: { tone: "error" | "primary" | "info" | "success" | "warning" | "neutral"; label?: string; pulse?: boolean }; meta?: string; action?: { icon: string; label: string }; closable?: boolean }[];
|
|
789
|
+
/** Active item id (controlled). */
|
|
790
|
+
value?: string;
|
|
791
|
+
/** Initial active id when uncontrolled. */
|
|
792
|
+
defaultValue?: string;
|
|
793
|
+
/** Ids of group items collapsed on first render (groups default to expanded). Set as a JS property (array). */
|
|
794
|
+
defaultCollapsed?: string[];
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
export interface KaiNoticeElement extends HTMLElement {
|
|
798
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
799
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
800
|
+
/** `neutral` (default) · `info` · `warning` · `error` · `success`. Drives the leading icon's color and the a11y role (`alert` for errors, else `status`). */
|
|
801
|
+
severity?: "error" | "info" | "success" | "warning" | "neutral";
|
|
802
|
+
/** Leading icon: omit for the severity default, `"none"` to hide it, or a named icon to override. */
|
|
803
|
+
icon?: string;
|
|
804
|
+
/** Show a dismiss (×) that hides the notice and emits `kai-dismiss`. */
|
|
805
|
+
dismissible?: boolean;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
export interface KaiPaneElement extends HTMLElement {
|
|
809
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
810
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
811
|
+
/** The pane title (the agent / window name). Named `headline` because `title` collides with the global `HTMLElement.title` attribute (it throws at registration). Attribute: `headline`. */
|
|
812
|
+
headline?: string;
|
|
813
|
+
/** A role / label shown under the title (e.g. "Reviewer", "claude-sonnet"). Attribute: `subtitle`. */
|
|
814
|
+
subtitle?: string;
|
|
815
|
+
/** Show the restore glyph instead of maximize, and signal the maximized view-state. Drive it yourself in response to `kai-maximize`. Attribute: `maximized`. */
|
|
816
|
+
maximized?: boolean;
|
|
817
|
+
/** Highlight the frame with a ring/border to mark the ACTIVE pane. Attribute: `focused`. */
|
|
818
|
+
focused?: boolean;
|
|
819
|
+
/** Show a split-pane window control that fires `kai-split`. Off by default. Attribute: `show-split`. */
|
|
820
|
+
showSplit?: boolean;
|
|
821
|
+
/** Show a dock-to-side window control that fires `kai-dock`. Off by default. Attribute: `show-dock`. */
|
|
822
|
+
showDock?: boolean;
|
|
823
|
+
/** A tone-colored status dot (+ optional label) in the header. An object `{ tone, label?, pulse? }` set as a JS PROPERTY (not an attribute). */
|
|
824
|
+
status?: { tone: "working" | "idle" | "done" | "error" | "blocked"; label?: string; pulse?: boolean };
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
export interface KaiPaneGroupElement extends HTMLElement {
|
|
828
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
829
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
830
|
+
/** The tabs to render. An array of `{ id, name, status?, needsAttention?, number? }` set as a JS PROPERTY (not an HTML attribute). */
|
|
831
|
+
tabs?: { id: string; name: string; status?: { tone: "working" | "idle" | "done" | "error" | "blocked"; label?: string; pulse?: boolean }; needsAttention?: boolean; number?: number }[];
|
|
832
|
+
/** The active tab id (controlled, and reflected to the `active` ATTRIBUTE so `::part`/`[active]` selectors and the per-tab named slot follow it). Set it as the `active` attribute or drive it from `kai-tab-change`; omit for uncontrolled (the first tab). */
|
|
833
|
+
active?: string;
|
|
834
|
+
/** Highlight the frame as the ACTIVE group in a multi-group layout. Attribute: `focused`. */
|
|
835
|
+
focused?: boolean;
|
|
418
836
|
}
|
|
419
837
|
|
|
420
838
|
export interface KaiPopoverElement extends HTMLElement {
|
|
@@ -424,15 +842,41 @@ export interface KaiPopoverElement extends HTMLElement {
|
|
|
424
842
|
placement?: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
|
|
425
843
|
/** Gap in px between the trigger and the panel. */
|
|
426
844
|
gutter?: number;
|
|
427
|
-
/**
|
|
845
|
+
/** Drive/observe open state (Shoelace-style: settable + reflected to the `open` attribute, the element still self-manages on click). Set `el.open = true`, or `<kai-popover open>`; listen for `kai-open-change`. */
|
|
428
846
|
open?: boolean;
|
|
847
|
+
/** Initial open state on mount (uncontrolled seed). */
|
|
848
|
+
defaultOpen?: boolean;
|
|
849
|
+
/** Turn the popover off while keeping the trigger mounted (clicks and `show()` no longer open it). */
|
|
850
|
+
disabled?: boolean;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
export interface KaiProgressBarElement extends HTMLElement {
|
|
854
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
855
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
856
|
+
/** Current progress value (0..max). Attribute: `value`. */
|
|
857
|
+
value?: number;
|
|
858
|
+
/** The value `value` runs to (default 100). Attribute: `max`. */
|
|
859
|
+
max?: number;
|
|
860
|
+
/** Optional caption above the track. Attribute: `label`. */
|
|
861
|
+
label?: string;
|
|
862
|
+
/** Fill color: `primary` (default), `success`, `warning`, `error`, `info`. Attribute: `tone`. */
|
|
863
|
+
tone?: string;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
export interface KaiPromptDockElement extends HTMLElement {
|
|
867
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
868
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
869
|
+
/** How the tray frames the input — the SPATIAL inset axis: `inset` (default, the classic recessed frame on every side) | `edge` (top/bottom inset only; the input sits flush left/right so the lips span the full width) | `none` (no inset; the lips attach directly as a plain stack). Attribute: `frame`. */
|
|
870
|
+
frame?: "none" | "inset" | "edge";
|
|
871
|
+
/** How the tray surface looks — the VISUAL axis, orthogonal to `frame`: `soft` (default, sunken surface + border + radius) | `outlined` (transparent + border + radius) | `filled` (sunken, no border, + radius) | `plain` (bare). Attribute: `appearance`. */
|
|
872
|
+
appearance?: "outlined" | "filled" | "plain" | "soft";
|
|
429
873
|
}
|
|
430
874
|
|
|
431
875
|
export interface KaiPromptInputElement extends HTMLElement {
|
|
432
876
|
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
433
877
|
theme?: 'light' | 'dark' | 'auto';
|
|
434
|
-
/**
|
|
435
|
-
value?: string;
|
|
878
|
+
/** Value of the input, as a JS property. A **string** is the controlled text mirror (the host owns it and updates on `kai-value-change`). A **ComposerDoc** (array of text/entity segments) is a one-time **seed** that pre-populates pills (skills/agents/plugins); the user then edits freely. Leave unset for uncontrolled behavior. `kai-submit`/`kai-value-change` always emit `value` as the flattened string (back-compat) plus the structured `doc` + `entities`. */
|
|
879
|
+
value?: string | ({ type: "text"; text: string } | { type: "entity"; entity: { kind: string; id: string; label: string; icon?: string; promptText?: string; data?: Record<string, unknown> } })[];
|
|
436
880
|
/** Placeholder text shown in the empty input. */
|
|
437
881
|
placeholder?: string;
|
|
438
882
|
/** Disable the input and submit button entirely (non-interactive). */
|
|
@@ -443,20 +887,22 @@ export interface KaiPromptInputElement extends HTMLElement {
|
|
|
443
887
|
suggestions?: string[];
|
|
444
888
|
/** What clicking a suggestion does: `'submit'` (default) sends it immediately as if typed and submitted; `'fill'` just places it in the input. */
|
|
445
889
|
suggestionMode?: "submit" | "fill";
|
|
446
|
-
/** Slash commands — when set, typing `/` opens the command palette. Set as a JS property. */
|
|
447
|
-
slashCommands?: { id: string; label: string; description?: string; category?: string }[];
|
|
448
|
-
/** Command ids to highlight as active. */
|
|
449
|
-
slashActiveIds?: string[];
|
|
450
|
-
/** Single-line palette rows. */
|
|
451
|
-
slashCompact?: boolean;
|
|
452
890
|
/** Show a Search (Globe) button in the left toolbar; clicking it fires a `search` event. */
|
|
453
891
|
search?: boolean;
|
|
454
892
|
/** Show a Voice (Mic) button in the left toolbar; clicking it fires a `voice` event. */
|
|
455
893
|
voice?: boolean;
|
|
456
894
|
/** 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`. */
|
|
457
895
|
stoppable?: boolean;
|
|
896
|
+
/** Send-button visibility. `'always'` (default) always shows it; `'auto'` shows it only when there's text/attachments (an empty composer hides it — Enter still submits). To hide it entirely (Enter-only), it's pure CSS: `::part(send){display:none}` — no prop needed. Restyle via `::part(send)`. The Stop button (`stoppable` + `loading`) is unaffected. */
|
|
897
|
+
submit?: "always" | "auto";
|
|
898
|
+
/** When `false`, hides the built-in paperclip attach button even though the element otherwise supports attachments. Use this when a `+` menu in `toolbar-start` already exposes "Add files", to avoid a duplicate control. Defaults to `true`. */
|
|
899
|
+
attach?: boolean;
|
|
458
900
|
/** 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). */
|
|
459
901
|
attachments?: { id: string; type: "file" | "source-document"; filename?: string; mediaType?: string; url?: string; title?: string }[];
|
|
902
|
+
/** Rich entity triggers — each `{ char, kind, items }` opens a caret-anchored menu that inserts an atomic pill. Convention: `/` → skills, `@` → agents (plugins are the grouping/provenance of those items). Set as a JS property. */
|
|
903
|
+
triggers?: { char: string; kind: string; items?: { id: string; label: string; icon?: string; description?: string; group?: string; kind?: string; promptText?: string; data?: Record<string, unknown> }[] }[];
|
|
904
|
+
/** Default icon per entity kind (kind → image URL/data-URI) for pills/menu items without their own `icon`. Overrides the built-in agent/plugin glyphs. JS property. */
|
|
905
|
+
kindIcons?: Record<string, string>;
|
|
460
906
|
}
|
|
461
907
|
|
|
462
908
|
export interface KaiReasoningElement extends HTMLElement {
|
|
@@ -466,12 +912,16 @@ export interface KaiReasoningElement extends HTMLElement {
|
|
|
466
912
|
text: string;
|
|
467
913
|
/** Trigger label. */
|
|
468
914
|
label?: string;
|
|
469
|
-
/**
|
|
915
|
+
/** Drive/observe open state (Shoelace-style: settable + reflected to the `open` attribute; the element still self-manages on trigger click + while streaming). Set `el.open = true`; listen for `kai-open-change`. */
|
|
470
916
|
open?: boolean;
|
|
917
|
+
/** Initial open state on mount (uncontrolled seed). */
|
|
918
|
+
defaultOpen?: boolean;
|
|
471
919
|
/** While true, auto-expands (and re-collapses when it flips false). */
|
|
472
920
|
streaming?: boolean;
|
|
473
921
|
/** Render `text` as markdown. */
|
|
474
922
|
markdown?: boolean;
|
|
923
|
+
/** Gate the disclosure trigger — programmatic `show()/hide()/toggle()` still work, but the trigger click no longer toggles. */
|
|
924
|
+
disabled?: boolean;
|
|
475
925
|
}
|
|
476
926
|
|
|
477
927
|
export interface KaiRemoteElement extends HTMLElement {
|
|
@@ -491,7 +941,7 @@ export interface KaiResizableElement extends HTMLElement {
|
|
|
491
941
|
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
492
942
|
theme?: 'light' | 'dark' | 'auto';
|
|
493
943
|
/** Layout axis: `horizontal` (row, default) or `vertical` (column). */
|
|
494
|
-
orientation?: "
|
|
944
|
+
orientation?: "vertical" | "horizontal";
|
|
495
945
|
/** Which item index is maximized (null = none). Declarative source of truth. */
|
|
496
946
|
maximizedIndex?: null | number;
|
|
497
947
|
}
|
|
@@ -509,6 +959,8 @@ export interface KaiResizableItemElement extends HTMLElement {
|
|
|
509
959
|
locked?: boolean;
|
|
510
960
|
/** Hide this panel; its divider is dropped and the rest reflow. */
|
|
511
961
|
hidden?: boolean;
|
|
962
|
+
/** Collapse this panel — same layout effect as `hidden` (divider dropped, the rest reflow), but it WORKS as a bare boolean from framework JSX. A plain `<kai-resizable-item collapsed>` in React/Solid/Vue/Svelte collapses the panel at the first render; `hidden` does not, because a JSX boolean sets neither the `hidden` attribute nor the IDL property on a custom element, so the parent never sees it. The facade reflects `collapsed` to a `collapsed` attribute the parent reads. Prefer this over `hidden` for declarative collapse. */
|
|
963
|
+
collapsed?: boolean;
|
|
512
964
|
}
|
|
513
965
|
|
|
514
966
|
export interface KaiResponseStreamElement extends HTMLElement {
|
|
@@ -533,6 +985,34 @@ export interface KaiScopePickerElement extends HTMLElement {
|
|
|
533
985
|
availableTags: string[];
|
|
534
986
|
/** The label shown on the trigger for the active scope. */
|
|
535
987
|
currentLabel?: string;
|
|
988
|
+
/** Drive/observe the dropdown's open state (Shoelace-style: settable + reflected to the `open` attribute, the dropdown still self-manages on click/keyboard). Set `el.open = true`, or `<kai-scope-picker open>`; listen for `kai-open-change`. */
|
|
989
|
+
open?: boolean;
|
|
990
|
+
/** Initial open state on mount (uncontrolled seed). */
|
|
991
|
+
defaultOpen?: boolean;
|
|
992
|
+
/** Disable the trigger — click/keyboard and `show()` no longer open the dropdown. */
|
|
993
|
+
disabled?: boolean;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
export interface KaiScreenElement extends HTMLElement {
|
|
997
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
998
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
999
|
+
/** Drive/observe open state (Shoelace-style: settable + reflected to the `open` attribute; the element still self-manages). Set `el.open = true`, or `<kai-screen open>`; listen for `kai-open-change`. */
|
|
1000
|
+
open?: boolean;
|
|
1001
|
+
/** Initial open state on mount (uncontrolled seed). */
|
|
1002
|
+
defaultOpen?: boolean;
|
|
1003
|
+
/** Header title text. A projected `title` slot overrides it. (Named `headline` because `title` collides with the global `HTMLElement.title` attribute.) */
|
|
1004
|
+
headline?: string;
|
|
1005
|
+
/** Show the back button (default true). */
|
|
1006
|
+
back?: boolean;
|
|
1007
|
+
/** Opt out of marking sibling elements inert/aria-hidden while open (for unusual layouts). */
|
|
1008
|
+
noInert?: boolean;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
export interface KaiScrollAreaElement extends HTMLElement {
|
|
1012
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
1013
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
1014
|
+
/** Which axis scrolls. `vertical` (default) · `horizontal` · `both`. The cross axis is clamped so content can't overflow it. */
|
|
1015
|
+
orientation?: "vertical" | "horizontal" | "both";
|
|
536
1016
|
}
|
|
537
1017
|
|
|
538
1018
|
export interface KaiScrollButtonElement extends HTMLElement {
|
|
@@ -541,9 +1021,75 @@ export interface KaiScrollButtonElement extends HTMLElement {
|
|
|
541
1021
|
/** 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="...">`. */
|
|
542
1022
|
for?: string;
|
|
543
1023
|
/** Button visual variant: `'outline' | 'ghost' | 'default'`. Defaults to `'outline'`. */
|
|
544
|
-
variant?: "
|
|
1024
|
+
variant?: "default" | "ghost" | "outline";
|
|
545
1025
|
/** Button size token. Defaults to `'icon'` (square). */
|
|
546
|
-
size?: "sm" | "
|
|
1026
|
+
size?: "sm" | "md" | "lg" | "icon" | "icon-sm";
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
export interface KaiSearchElement extends HTMLElement {
|
|
1030
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
1031
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
1032
|
+
/** Controlled query — settable and reflected to the `value` attribute. Read `el.value` for live state. */
|
|
1033
|
+
value?: string;
|
|
1034
|
+
/** Placeholder. Defaults to `Search…`. */
|
|
1035
|
+
placeholder?: string;
|
|
1036
|
+
/** Leading icon-NAME string (a curated name, URL, or text), resolved to a glyph the same way `kai-button`'s `icon` is. Defaults to `search`. */
|
|
1037
|
+
icon?: string;
|
|
1038
|
+
/** Debounce window for `kai-search`, in ms. Defaults to `200`. */
|
|
1039
|
+
debounce?: number;
|
|
1040
|
+
/** Show a spinner in place of the leading icon while results load. */
|
|
1041
|
+
loading?: boolean;
|
|
1042
|
+
/** Optional shortcut hint shown (as a `kai-kbd`) while the field is empty, e.g. `Mod+K`. Display only; it does not bind the key. */
|
|
1043
|
+
shortcut?: string;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
export interface KaiSegmentedElement extends HTMLElement {
|
|
1047
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
1048
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
1049
|
+
/** The selectable segments, left to right. Set as a JS property (array). */
|
|
1050
|
+
options: { value: string; label: string; icon?: undefined | string }[];
|
|
1051
|
+
/** Controlled selected `value` — settable and reflected to the `value` attribute. `el.value = 'preview'` drives it; choosing a segment updates it and fires `kai-change`. Read `el.value` for live state. */
|
|
1052
|
+
value?: string;
|
|
1053
|
+
/** Control density: `sm` or `md`. Defaults to `md`. */
|
|
1054
|
+
size?: "sm" | "md";
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
export interface KaiSeparatorElement extends HTMLElement {
|
|
1058
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
1059
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
1060
|
+
/** `horizontal` (default, block + full-width) or `vertical` (a rule inside a flex/grid row — it stretches to the row height). */
|
|
1061
|
+
orientation?: "vertical" | "horizontal";
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
export interface KaiSettingItemElement extends HTMLElement {
|
|
1065
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
1066
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
1067
|
+
/** Row label (primary text). Attribute: `label`. */
|
|
1068
|
+
label?: string;
|
|
1069
|
+
/** Optional secondary description under the label. Attribute: `description`. */
|
|
1070
|
+
description?: string;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
export interface KaiSettingsGroupElement extends HTMLElement {
|
|
1074
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
1075
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
1076
|
+
/** Small section heading shown above the card. Attribute: `heading`. */
|
|
1077
|
+
heading?: string;
|
|
1078
|
+
/** Optional muted description under the heading. Attribute: `description`. */
|
|
1079
|
+
description?: string;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
export interface KaiSkeletonElement extends HTMLElement {
|
|
1083
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
1084
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
1085
|
+
/** `text` (one or more lines), `rect` (a block), or `circle` (round). Defaults to `text`. */
|
|
1086
|
+
variant?: "text" | "rect" | "circle";
|
|
1087
|
+
/** CSS width (e.g. `'12rem'`, `'60%'`). Defaults to full width (responsive); for `circle` it is the diameter. */
|
|
1088
|
+
width?: string;
|
|
1089
|
+
/** CSS height. Defaults per variant (a text line height; circle = width). */
|
|
1090
|
+
height?: string;
|
|
1091
|
+
/** `text` only: number of lines; the last is shorter. Defaults to 1. */
|
|
1092
|
+
lines?: number;
|
|
547
1093
|
}
|
|
548
1094
|
|
|
549
1095
|
export interface KaiSkillsElement extends HTMLElement {
|
|
@@ -579,15 +1125,30 @@ export interface KaiSourcesElement extends HTMLElement {
|
|
|
579
1125
|
numbered?: boolean;
|
|
580
1126
|
}
|
|
581
1127
|
|
|
1128
|
+
export interface KaiStatusElement extends HTMLElement {
|
|
1129
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
1130
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
1131
|
+
/** Presence/notification state → color. `new` (default) maps to the blue hue. */
|
|
1132
|
+
status?: "new" | "online" | "busy" | "away" | "offline";
|
|
1133
|
+
/** Animated ping ring (off by default; respects prefers-reduced-motion). */
|
|
1134
|
+
pulse?: boolean;
|
|
1135
|
+
/** Accessible name. Without it the dot is decorative. */
|
|
1136
|
+
label?: string;
|
|
1137
|
+
/** `sm` (default) or `md`. */
|
|
1138
|
+
size?: "sm" | "md";
|
|
1139
|
+
}
|
|
1140
|
+
|
|
582
1141
|
export interface KaiSuggestionsElement extends HTMLElement {
|
|
583
1142
|
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
584
1143
|
theme?: 'light' | 'dark' | 'auto';
|
|
585
1144
|
/** The suggestions. Strings, or `{ label, value }` when the displayed text and the emitted value differ. Set as a JS property. */
|
|
586
|
-
suggestions: (string | { label: string; value?: undefined | string })[];
|
|
1145
|
+
suggestions: (string | { label: string; value?: undefined | string; icon?: undefined | string })[];
|
|
587
1146
|
/** Chip style: `'outline'` (default), `'ghost'`, or `'default'` (filled). */
|
|
588
|
-
variant?: "
|
|
589
|
-
/**
|
|
590
|
-
size?: "
|
|
1147
|
+
variant?: "default" | "ghost" | "outline";
|
|
1148
|
+
/** Row height for `layout="list"`: `'md'` (default) or `'lg'` for taller rows. Chips are unaffected. */
|
|
1149
|
+
size?: "md" | "lg";
|
|
1150
|
+
/** Layout: `'chips'` (default) renders a wrapping row of rounded pills; `'list'` renders a vertical, full-width "Ideas for you" list — each row is left-aligned with a leading `icon`, a label, and a hover background. */
|
|
1151
|
+
layout?: "list" | "chips";
|
|
591
1152
|
/** Full-width left-aligned rows instead of pills. */
|
|
592
1153
|
block?: boolean;
|
|
593
1154
|
/** Substring to highlight within each suggestion. */
|
|
@@ -597,12 +1158,35 @@ export interface KaiSuggestionsElement extends HTMLElement {
|
|
|
597
1158
|
export interface KaiSwitchElement extends HTMLElement {
|
|
598
1159
|
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
599
1160
|
theme?: 'light' | 'dark' | 'auto';
|
|
600
|
-
/**
|
|
1161
|
+
/** Controlled checked state — settable and reflected to the `checked` attribute. `el.checked = true` (or `<kai-switch checked>`) drives it; the toggle UI updates it and fires `kai-change`. Read `el.checked` for live state. */
|
|
601
1162
|
checked?: boolean;
|
|
1163
|
+
/** Initial checked state on mount (uncontrolled seed). Bare attribute (`<kai-switch default-checked>`) turns it on. */
|
|
1164
|
+
defaultChecked?: boolean;
|
|
602
1165
|
/** Disable interaction. */
|
|
603
1166
|
disabled?: boolean;
|
|
604
1167
|
/** Accessible label. */
|
|
605
1168
|
label?: string;
|
|
1169
|
+
/** Form-control name (paired with `value`). */
|
|
1170
|
+
name?: string;
|
|
1171
|
+
/** Submitted value when checked (paired with `name`). Defaults to `'on'`. */
|
|
1172
|
+
value?: string;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
export interface KaiTabsElement extends HTMLElement {
|
|
1176
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
1177
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
1178
|
+
/** Tabs to render. Set as a JS property, not an HTML attribute. */
|
|
1179
|
+
items?: { id: string; label?: string; icon?: string; disabled?: boolean }[];
|
|
1180
|
+
/** Controlled selected id. Set as a JS property (or the `value` attribute); drive it from your app in response to `kai-tab-change`. Omit for uncontrolled. */
|
|
1181
|
+
value?: string;
|
|
1182
|
+
/** Initial selected id when uncontrolled (use the `default-value` attribute in plain HTML). */
|
|
1183
|
+
defaultValue?: string;
|
|
1184
|
+
/** `segmented` (default, a pill group) or `underline` (an underlined row). */
|
|
1185
|
+
variant?: "segmented" | "underline";
|
|
1186
|
+
/** Stretch the strip to full width, each tab sharing the space equally. */
|
|
1187
|
+
block?: boolean;
|
|
1188
|
+
/** Disable the whole strip. */
|
|
1189
|
+
disabled?: boolean;
|
|
606
1190
|
}
|
|
607
1191
|
|
|
608
1192
|
export interface KaiTasksElement extends HTMLElement {
|
|
@@ -616,6 +1200,14 @@ export interface KaiTasksElement extends HTMLElement {
|
|
|
616
1200
|
heading?: string;
|
|
617
1201
|
/** Set when the user resolved this card; renders the read-only view. Property: `el.resolution = { kind:'submit', data:{ selected:[…] } }`. */
|
|
618
1202
|
resolution?: Record<string, unknown>;
|
|
1203
|
+
/** Controlled selection (task ids; JS property). When set, it wins over local state. */
|
|
1204
|
+
value?: string[];
|
|
1205
|
+
/** Uncontrolled initial selection (task ids; JS property), overlaying per-task `checked`. */
|
|
1206
|
+
defaultValue?: string[];
|
|
1207
|
+
/** Freeze the whole list + Confirm. Attribute: `disabled`. */
|
|
1208
|
+
disabled?: boolean;
|
|
1209
|
+
/** Display-only: rows can't be toggled and show the default cursor (no pointer, hover, or focus affordances). Keeps the look as-is. Attribute: `readonly`. */
|
|
1210
|
+
readonly?: boolean;
|
|
619
1211
|
}
|
|
620
1212
|
|
|
621
1213
|
export interface KaiTextShimmerElement extends HTMLElement {
|
|
@@ -646,13 +1238,17 @@ export interface KaiToastRegionElement extends HTMLElement {
|
|
|
646
1238
|
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
647
1239
|
theme?: 'light' | 'dark' | 'auto';
|
|
648
1240
|
/** The toasts to render. Newest is shown on top. Set as a JS property (array); pass a new array reference to update. */
|
|
649
|
-
toasts: { id: string; message: string; variant?: undefined | "
|
|
1241
|
+
toasts: { id: string; message: string; variant?: undefined | "error" | "info" | "success" | "warning" | "neutral"; appearance?: undefined | "pill" | "card"; inverse?: undefined | boolean; description?: undefined | string; action?: undefined | { label: string; onAction: () => void | false }; duration?: undefined | number; dismissible?: undefined | boolean; target?: undefined | HTMLElement }[];
|
|
650
1242
|
/** Stack anchor: `'top-center'` (default), `'top-right'`, `'bottom-center'`, … */
|
|
651
1243
|
position?: "top-center" | "top-right" | "top-left" | "bottom-center" | "bottom-right" | "bottom-left";
|
|
652
1244
|
/** Max simultaneously-visible toasts; the rest queue. Defaults to `3`. */
|
|
653
1245
|
max?: number;
|
|
654
1246
|
/** Stacking: 'expanded' (default, full column) | 'collapsed' (Sonner-style pile that expands on hover/focus). Attribute: stack. */
|
|
655
1247
|
stack?: "expanded" | "collapsed";
|
|
1248
|
+
/** Default appearance for this region's toasts: `'pill'` (default, compact) | `'card'` (richer, with a description line). A per-toast `appearance` wins. Attribute: `appearance`. */
|
|
1249
|
+
appearance?: "pill" | "card";
|
|
1250
|
+
/** Default high-contrast inverse treatment for this region's toasts. A per-toast `inverse` wins. Off by default. Attribute: `inverse`. */
|
|
1251
|
+
inverse?: boolean;
|
|
656
1252
|
/** Container element to anchor this region to (JS property). Set by the store for a scoped region; unset = the global viewport region. */
|
|
657
1253
|
target?: HTMLElement;
|
|
658
1254
|
}
|
|
@@ -662,8 +1258,31 @@ export interface KaiToolElement extends HTMLElement {
|
|
|
662
1258
|
theme?: 'light' | 'dark' | 'auto';
|
|
663
1259
|
/** The tool-call to display. Set as a JS property. */
|
|
664
1260
|
tool?: { type: string; state: "input-streaming" | "input-available" | "output-available" | "output-error"; input?: Record<string, unknown>; output?: Record<string, unknown>; toolCallId?: string; errorText?: string };
|
|
665
|
-
/**
|
|
1261
|
+
/** Drive/observe open state (Shoelace-style: settable + reflected to the `open` attribute; the element still self-manages on trigger click). Set `el.open = true`, or `<kai-tool open>`; listen for `kai-open-change`. */
|
|
666
1262
|
open?: boolean;
|
|
1263
|
+
/** Initial open state on mount (uncontrolled seed). */
|
|
1264
|
+
defaultOpen?: boolean;
|
|
1265
|
+
/** Gate the disclosure trigger — programmatic `show()/hide()/toggle()` still work, but the trigger click no longer toggles. */
|
|
1266
|
+
disabled?: boolean;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
export interface KaiTooltipElement extends HTMLElement {
|
|
1270
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
1271
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
1272
|
+
/** The hint text shown on hover/focus of the slotted trigger. */
|
|
1273
|
+
content?: string;
|
|
1274
|
+
/** Delay (ms) before the tooltip appears on hover. Defaults to 600. Focus shows it immediately regardless. */
|
|
1275
|
+
openDelay?: number;
|
|
1276
|
+
/** Delay (ms) before it hides after the pointer leaves. Defaults to 0 (hides immediately). */
|
|
1277
|
+
closeDelay?: number;
|
|
1278
|
+
/** Preferred placement: `'top' | 'bottom' | 'left' | 'right'` (+ optional `-start`/`-end`). Defaults to `'top'`; flips to stay in view. */
|
|
1279
|
+
placement?: string;
|
|
1280
|
+
/** Drive/observe open state (Shoelace-style: settable + reflected to the `open` attribute, the element still self-manages on hover/focus). Set `el.open = true`, or `<kai-tooltip open>`; listen for `kai-open-change`. */
|
|
1281
|
+
open?: boolean;
|
|
1282
|
+
/** Initial open state on mount (uncontrolled seed). */
|
|
1283
|
+
defaultOpen?: boolean;
|
|
1284
|
+
/** Turn the tooltip off while keeping the trigger mounted (hover/focus and `show()` no longer open it). */
|
|
1285
|
+
disabled?: boolean;
|
|
667
1286
|
}
|
|
668
1287
|
|
|
669
1288
|
export interface KaiVoiceInputElement extends HTMLElement {
|
|
@@ -673,6 +1292,23 @@ export interface KaiVoiceInputElement extends HTMLElement {
|
|
|
673
1292
|
transcribe?: (audio: Blob) => Promise<string>;
|
|
674
1293
|
/** Disable the mic button (non-interactive). */
|
|
675
1294
|
disabled?: boolean;
|
|
1295
|
+
/** BCP-47 language tag for the native `SpeechRecognition` path (e.g. `en-US`). Attribute: `recognition-lang` (the plain `lang` attribute is reserved by `HTMLElement` and can't be a custom-element property). No effect when `transcribe` is set or the browser lacks SpeechRecognition. */
|
|
1296
|
+
recognitionLang?: string;
|
|
1297
|
+
/** Emit live partial transcripts (`kai-transcript-interim`) during native recognition. Attribute: `interim`. No-op on the transcribe/fallback paths. */
|
|
1298
|
+
interim?: boolean;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
export interface KaiVoiceOutputElement extends HTMLElement {
|
|
1302
|
+
/** Color mode (`auto` follows prefers-color-scheme). */
|
|
1303
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
1304
|
+
/** The utterance to read aloud. */
|
|
1305
|
+
text?: string;
|
|
1306
|
+
/** Speak automatically when `text` is set/changed. */
|
|
1307
|
+
autoplay?: boolean;
|
|
1308
|
+
/** TTS model seam the host supplies — given text, returns an audio `Blob` to play. This is a **function-valued property** (`el.synthesize = async text => blob`); when set, the native `speechSynthesis` path is bypassed. Mirrors `<kai-voice-input>`'s `transcribe`. A value-returning callback can't be modelled as a fire-and-forget event, hence a property. */
|
|
1309
|
+
synthesize?: (text: string) => Promise<Blob>;
|
|
1310
|
+
/** Disable the button (non-interactive). */
|
|
1311
|
+
disabled?: boolean;
|
|
676
1312
|
}
|
|
677
1313
|
|
|
678
1314
|
export interface KaiWorkspaceElement extends HTMLElement {
|
|
@@ -681,7 +1317,7 @@ export interface KaiWorkspaceElement extends HTMLElement {
|
|
|
681
1317
|
/** Pre-bucketed conversation groups for the sidebar. Set as a JS property. */
|
|
682
1318
|
groups: { id: string; userId?: undefined | string; teamId?: undefined | string; name: string; sortOrder: number; createdAt: string }[];
|
|
683
1319
|
/** Flat conversation list (auto-bucketed if `groups` is empty). Set as a JS property. */
|
|
684
|
-
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 }[];
|
|
1320
|
+
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; trailing?: undefined | string }[];
|
|
685
1321
|
/** Id of the open conversation, highlighted in the sidebar. */
|
|
686
1322
|
activeId?: string;
|
|
687
1323
|
/** The active conversation's message thread, newest last. Set as a JS property. */
|
|
@@ -691,7 +1327,7 @@ export interface KaiWorkspaceElement extends HTMLElement {
|
|
|
691
1327
|
loading?: boolean;
|
|
692
1328
|
suggestions?: string[];
|
|
693
1329
|
suggestionMode?: "submit" | "fill";
|
|
694
|
-
proseSize?: "
|
|
1330
|
+
proseSize?: "sm" | "lg" | "xs" | "base";
|
|
695
1331
|
codeTheme?: string;
|
|
696
1332
|
codeHighlight?: boolean;
|
|
697
1333
|
chatTitle?: string;
|
|
@@ -701,12 +1337,13 @@ export interface KaiWorkspaceElement extends HTMLElement {
|
|
|
701
1337
|
scrollButton?: boolean;
|
|
702
1338
|
search?: boolean;
|
|
703
1339
|
voice?: boolean;
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
1340
|
+
/** Rich entity triggers (`/` skills, `@` agents/plugins) forwarded to the input. */
|
|
1341
|
+
triggers?: { char: string; kind: string; items?: { id: string; label: string; icon?: string; description?: string; group?: string; kind?: string; promptText?: string; data?: Record<string, unknown> }[] }[];
|
|
1342
|
+
/** Default icon per entity kind (kind → image src) forwarded to the input. */
|
|
1343
|
+
kindIcons?: Record<string, string>;
|
|
1344
|
+
/** Sidebar default width as a percent of the workspace (default 26). */
|
|
708
1345
|
sidebarWidth?: number;
|
|
709
|
-
/** Sidebar min width in px (default
|
|
1346
|
+
/** Sidebar min width in px (default 240). */
|
|
710
1347
|
sidebarMinWidth?: number;
|
|
711
1348
|
/** Sidebar max width in px (default 420). */
|
|
712
1349
|
sidebarMaxWidth?: number;
|
|
@@ -714,36 +1351,62 @@ export interface KaiWorkspaceElement extends HTMLElement {
|
|
|
714
1351
|
sidebarCollapsed?: boolean;
|
|
715
1352
|
/** Initial collapsed state when uncontrolled (default false). Use the `default-sidebar-collapsed` attribute to start collapsed in plain HTML. */
|
|
716
1353
|
defaultSidebarCollapsed?: boolean;
|
|
1354
|
+
/** Auto-collapse the rail when the workspace's own width drops below this many px, and re-expand when it grows back above. Uncontrolled only (it never fights an app-driven `sidebarCollapsed`); omit to disable. Fires `kai-sidebar-toggle`. Attribute: `collapse-below`. */
|
|
1355
|
+
collapseBelow?: number;
|
|
1356
|
+
/** Render Recents as dense single-line rows (a leading dot + title, no count). */
|
|
1357
|
+
compact?: boolean;
|
|
1358
|
+
/** Suppress the built-in ConversationList so the `sidebar-header` slot owns the whole rail flex region (for apps that supply their own rail nav). Default false. Attribute: `no-conversations`. */
|
|
1359
|
+
noConversations?: boolean;
|
|
717
1360
|
}
|
|
718
1361
|
|
|
719
1362
|
declare global {
|
|
720
1363
|
interface HTMLElementTagNameMap {
|
|
1364
|
+
'kai-agent-card': KaiAgentCardElement;
|
|
721
1365
|
'kai-artifact': KaiArtifactElement;
|
|
722
1366
|
'kai-attachments': KaiAttachmentsElement;
|
|
1367
|
+
'kai-avatar': KaiAvatarElement;
|
|
1368
|
+
'kai-badge': KaiBadgeElement;
|
|
1369
|
+
'kai-button': KaiButtonElement;
|
|
723
1370
|
'kai-card': KaiCardElement;
|
|
724
1371
|
'kai-cards': KaiCardsElement;
|
|
725
1372
|
'kai-chain-of-thought': KaiChainOfThoughtElement;
|
|
726
1373
|
'kai-chat': KaiChatElement;
|
|
727
1374
|
'kai-checkpoint': KaiCheckpointElement;
|
|
728
1375
|
'kai-choice': KaiChoiceElement;
|
|
1376
|
+
'kai-coachmark': KaiCoachmarkElement;
|
|
729
1377
|
'kai-code-block': KaiCodeBlockElement;
|
|
1378
|
+
'kai-command': KaiCommandElement;
|
|
730
1379
|
'kai-compare': KaiCompareElement;
|
|
1380
|
+
'kai-composer': KaiComposerElement;
|
|
731
1381
|
'kai-confirm': KaiConfirmElement;
|
|
732
1382
|
'kai-context': KaiContextElement;
|
|
733
1383
|
'kai-conversations': KaiConversationsElement;
|
|
1384
|
+
'kai-dialog': KaiDialogElement;
|
|
1385
|
+
'kai-editable-label': KaiEditableLabelElement;
|
|
734
1386
|
'kai-embed': KaiEmbedElement;
|
|
735
1387
|
'kai-empty': KaiEmptyElement;
|
|
736
1388
|
'kai-feedback-bar': KaiFeedbackBarElement;
|
|
737
1389
|
'kai-file-tree': KaiFileTreeElement;
|
|
738
1390
|
'kai-file-upload': KaiFileUploadElement;
|
|
739
1391
|
'kai-form': KaiFormElement;
|
|
1392
|
+
'kai-hover-card': KaiHoverCardElement;
|
|
1393
|
+
'kai-icon': KaiIconElement;
|
|
740
1394
|
'kai-image': KaiImageElement;
|
|
1395
|
+
'kai-input': KaiInputElement;
|
|
1396
|
+
'kai-kbd': KaiKbdElement;
|
|
741
1397
|
'kai-link-preview': KaiLinkPreviewElement;
|
|
742
1398
|
'kai-loader': KaiLoaderElement;
|
|
743
1399
|
'kai-markdown': KaiMarkdownElement;
|
|
1400
|
+
'kai-menu': KaiMenuElement;
|
|
744
1401
|
'kai-message': KaiMessageElement;
|
|
745
1402
|
'kai-model-switcher': KaiModelSwitcherElement;
|
|
1403
|
+
'kai-nav': KaiNavElement;
|
|
1404
|
+
'kai-notice': KaiNoticeElement;
|
|
1405
|
+
'kai-pane': KaiPaneElement;
|
|
1406
|
+
'kai-pane-group': KaiPaneGroupElement;
|
|
746
1407
|
'kai-popover': KaiPopoverElement;
|
|
1408
|
+
'kai-progress-bar': KaiProgressBarElement;
|
|
1409
|
+
'kai-prompt-dock': KaiPromptDockElement;
|
|
747
1410
|
'kai-prompt-input': KaiPromptInputElement;
|
|
748
1411
|
'kai-reasoning': KaiReasoningElement;
|
|
749
1412
|
'kai-remote': KaiRemoteElement;
|
|
@@ -751,18 +1414,30 @@ declare global {
|
|
|
751
1414
|
'kai-resizable-item': KaiResizableItemElement;
|
|
752
1415
|
'kai-response-stream': KaiResponseStreamElement;
|
|
753
1416
|
'kai-scope-picker': KaiScopePickerElement;
|
|
1417
|
+
'kai-screen': KaiScreenElement;
|
|
1418
|
+
'kai-scroll-area': KaiScrollAreaElement;
|
|
754
1419
|
'kai-scroll-button': KaiScrollButtonElement;
|
|
1420
|
+
'kai-search': KaiSearchElement;
|
|
1421
|
+
'kai-segmented': KaiSegmentedElement;
|
|
1422
|
+
'kai-separator': KaiSeparatorElement;
|
|
1423
|
+
'kai-setting-item': KaiSettingItemElement;
|
|
1424
|
+
'kai-settings-group': KaiSettingsGroupElement;
|
|
1425
|
+
'kai-skeleton': KaiSkeletonElement;
|
|
755
1426
|
'kai-skills': KaiSkillsElement;
|
|
756
1427
|
'kai-source': KaiSourceElement;
|
|
757
1428
|
'kai-sources': KaiSourcesElement;
|
|
1429
|
+
'kai-status': KaiStatusElement;
|
|
758
1430
|
'kai-suggestions': KaiSuggestionsElement;
|
|
759
1431
|
'kai-switch': KaiSwitchElement;
|
|
1432
|
+
'kai-tabs': KaiTabsElement;
|
|
760
1433
|
'kai-tasks': KaiTasksElement;
|
|
761
1434
|
'kai-text-shimmer': KaiTextShimmerElement;
|
|
762
1435
|
'kai-thinking-bar': KaiThinkingBarElement;
|
|
763
1436
|
'kai-toast-region': KaiToastRegionElement;
|
|
764
1437
|
'kai-tool': KaiToolElement;
|
|
1438
|
+
'kai-tooltip': KaiTooltipElement;
|
|
765
1439
|
'kai-voice-input': KaiVoiceInputElement;
|
|
1440
|
+
'kai-voice-output': KaiVoiceOutputElement;
|
|
766
1441
|
'kai-workspace': KaiWorkspaceElement;
|
|
767
1442
|
}
|
|
768
1443
|
}
|