@adea-ai/ui 0.65.0 → 0.66.0

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-composer.js","names":["ChevronsDownUp","ChevronsUpDown","MoreHorizontal","ArrowUp","Show","createEffect","createSignal","on","onCleanup","onMount","JSX","Button","DropdownMenu","DropdownMenuContent","DropdownMenuItem","DropdownMenuTrigger","Spinner","BusySendButton","BusySendButtonProps","BusySendMode","createComposerImeGuard","ChatComposerControl","focus","expandAndFocus","ChatComposerProps","value","onValueChange","onSubmit","input","text","action","Promise","resetKey","disabled","readOnly","blockedReason","placeholder","inputLabel","collapse","onChange","controlRef","control","sendableActions","Partial","Record","busy","Omit","knowledge","Element","followUps","band","approval","notices","attachments","leadingActions","trailingActions","menuItems","context","approvalFocus","ChatComposer","props","ime","pending","setPending","error","setError","field","HTMLTextAreaElement","restoreBar","HTMLButtonElement","focusFrame","focusTarget","selection","start","end","direction","generation","active","collapsed","unavailable","cancelFocus","undefined","cancelAnimationFrame","requestFocus","target","requestAnimationFrame","setSelectionRange","Math","min","length","changeCollapsed","selectionStart","selectionEnd","selectionDirection","onBlur","defer","mode","canSend","selected","trim","submit","started","preview","first","split","find","line","slice","_el$","_tmpl$1","_el$5","firstChild","_$insert","_$createComponent","when","children","_el$2","_tmpl$","_el$3","_tmpl$2","_el$4","_tmpl$3","_el$6","_tmpl$4","_el$7","_tmpl$5","_el$8","_tmpl$6","message","_el$15","_tmpl$10","fallback","ref","element","type","variant","size","onClick","_tmpl$11","_el$17","_tmpl$12","_el$9","_tmpl$9","_el$1","_el$10","nextSibling","_el$11","_el$13","addEventListener","event","preventDefault","_el$0","_tmpl$7","$$keydown","key","shiftKey","defaultPrevented","claimEnter","metaKey","ctrlKey","_$addEventListener","onFocus","onCompositionEnd","onCompositionStart","$$input","currentTarget","_$use","placement","as","onCloseAutoFocus","_$memo","onSelect","_tmpl$8","aria-label","label","_$mergeProps","alternateActionHint","onFire","_$effect","_p$","_v$","_v$2","_v$3","_v$4","e","_$setAttribute","t","a","o","_el$14","_tmpl$0","_$delegateEvents","_$createComponent","_$memo","_$mergeProps","_$setAttribute","_$delegateEvents"],"sources":["../../../src/components/conversation/chat-composer.tsx"],"sourcesContent":["/*\n * Substantially translated from KiroCrew website/src/components/ChatInput.tsx\n * at 283e136c0f902e965a535a7c9548c57c7504fed0.\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * Licensed under Apache-2.0; see LICENSE and NOTICE.\n */\nimport { ChevronsDownUp, ChevronsUpDown, MoreHorizontal, ArrowUp } from 'lucide-solid'\nimport { Show, createEffect, createSignal, on, onCleanup, onMount, type JSX } from 'solid-js'\nimport { Button } from '../ui/button/button'\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from '../ui/dropdown-menu/dropdown-menu'\nimport { Spinner } from '../ui/spinner/spinner'\nimport { BusySendButton, type BusySendButtonProps, type BusySendMode } from './busy-send-button'\nimport { createComposerImeGuard } from './ime-guard'\n\nexport type ChatComposerControl = {\n /** Focus this instance; false when it is unavailable or collapsed. */\n focus: () => boolean\n /** A typing intent, unlike merely navigating to a conversation. */\n expandAndFocus: () => boolean\n}\nexport type ChatComposerProps = {\n value: string\n onValueChange: (value: string) => void\n /** The host owns attachments and delivery; text/action are captured at the gesture. */\n onSubmit: (input: { text: string; action: 'send' | BusySendMode }) => void | Promise<void>\n /** Host scope fence; changes discard local feedback, not the host draft. */\n resetKey?: unknown\n disabled?: boolean\n readOnly?: boolean\n /** A visible capability or connectivity reason. */\n blockedReason?: string\n placeholder?: string\n inputLabel?: string\n /** Opt-in and controlled: the library neither persists nor broadcasts it. */\n collapse?: { value: boolean; onChange: (value: boolean) => void }\n controlRef?: (control: ChatComposerControl | undefined) => void\n /** Host payload eligibility by action; explicit false refuses even a nonempty draft. */\n sendableActions?: Partial<Record<'send' | BusySendMode, boolean>>\n busy?: Omit<BusySendButtonProps, 'onFire' | 'disabled' | 'alternateActionHint'>\n knowledge?: JSX.Element\n followUps?: JSX.Element\n band?: JSX.Element\n approval?: JSX.Element\n notices?: JSX.Element\n attachments?: JSX.Element\n leadingActions?: JSX.Element\n trailingActions?: JSX.Element\n /** Host-contributed menu items; no upload, skill or permission services here. */\n menuItems?: JSX.Element\n context?: JSX.Element\n /** Host derives this from the pending approval presentation, not UI policy. */\n approvalFocus?: boolean\n}\n\n/**\n * Kiro's composer assembly: context/options, adjacent band, approval/notices,\n * staged content, input/action groups and a context shelf. Reading collapse\n * really unmounts the input and shelf and offers a labeled way back with draft\n * preview. The host retains the only draft, identities, preferences and services.\n *\n * Kobalte owns the options menu. Scoped imperative typing intent replaces the\n * donor global lookup/broadcast so a second composer cannot receive this draft\n * or focus. No animation starts from hidden geometry, no global shortcut, and no\n * runtime/permission/voice/optimizer authority is copied. More specific chips,\n * approval decisions and staged-content semantics are supplied by their owners.\n */\nexport function ChatComposer(props: ChatComposerProps) {\n const ime = createComposerImeGuard()\n const [pending, setPending] = createSignal(false)\n const [error, setError] = createSignal<string | null>(null)\n let field: HTMLTextAreaElement | undefined\n let restoreBar: HTMLButtonElement | undefined\n let focusFrame: number | undefined\n let focusTarget: 'input' | 'bar' | undefined\n let selection:\n | { start: number; end: number; direction: 'forward' | 'backward' | 'none' }\n | undefined\n let generation = 0\n let active = true\n const collapsed = () => props.collapse?.value === true\n const unavailable = () => props.disabled || props.readOnly || !!props.blockedReason\n const cancelFocus = () => {\n if (focusFrame !== undefined) cancelAnimationFrame(focusFrame)\n focusFrame = undefined\n }\n const requestFocus = (target: 'input' | 'bar') => {\n cancelFocus()\n focusTarget = target\n focusFrame = requestAnimationFrame(() => {\n focusFrame = undefined\n if (!active || props.approvalFocus) return\n if (target === 'bar' && collapsed()) restoreBar?.focus()\n if (target === 'input' && !collapsed() && !props.disabled && field) {\n field.focus()\n if (selection)\n field.setSelectionRange(\n Math.min(selection.start, field.value.length),\n Math.min(selection.end, field.value.length),\n selection.direction\n )\n }\n focusTarget = undefined\n })\n }\n const changeCollapsed = (value: boolean) => {\n if (!props.collapse || props.approvalFocus) return\n if (value && field)\n selection = {\n start: field.selectionStart,\n end: field.selectionEnd,\n direction: field.selectionDirection,\n }\n props.collapse.onChange(value)\n requestFocus(value ? 'bar' : 'input')\n }\n const control: ChatComposerControl = {\n focus() {\n if (collapsed() || props.approvalFocus || props.disabled || !field) return false\n field.focus()\n return true\n },\n expandAndFocus() {\n if (props.approvalFocus || props.disabled) return false\n if (collapsed()) changeCollapsed(false)\n else requestFocus('input')\n return true\n },\n }\n onMount(() => props.controlRef?.(control))\n createEffect(\n on(\n () => props.resetKey,\n () => {\n generation += 1\n selection = undefined\n cancelFocus()\n focusTarget = undefined\n setPending(false)\n setError(null)\n ime.onBlur()\n },\n { defer: true }\n )\n )\n onCleanup(() => {\n active = false\n generation += 1\n cancelFocus()\n props.controlRef?.(undefined)\n })\n const action = (): 'send' | BusySendMode => props.busy?.mode ?? 'send'\n const canSend = (selected: 'send' | BusySendMode = action()) =>\n !unavailable() &&\n !pending() &&\n (props.sendableActions?.[selected] ?? props.value.trim().length > 0) &&\n !(selected !== 'send' && props.busy?.unavailable?.[selected])\n const submit = async (selected: 'send' | BusySendMode = action()) => {\n if (!canSend(selected)) return\n const started = generation\n const input = { text: props.value, action: selected }\n setPending(true)\n setError(null)\n try {\n await props.onSubmit(input)\n } catch {\n if (active && started === generation)\n setError('Message not sent. Check your draft and retry when the connection recovers.')\n } finally {\n if (active && started === generation) setPending(false)\n }\n }\n const preview = () => {\n const first =\n props.value\n .split('\\n')\n .find((line) => line.trim().length > 0)\n ?.trim() ?? ''\n return first.length > 120 ? `${first.slice(0, 120)}…` : first\n }\n return (\n <div data-slot=\"chat-composer\" class=\"mx-auto flex w-full max-w-4xl flex-col px-4 pb-1\">\n <Show when={!props.approvalFocus}>\n <Show when={props.knowledge}>\n <div data-slot=\"composer-knowledge\">{props.knowledge}</div>\n </Show>\n <Show when={props.followUps}>\n <div data-slot=\"composer-follow-ups\">{props.followUps}</div>\n </Show>\n </Show>\n <Show when={props.band}>\n <div data-slot=\"composer-band\">{props.band}</div>\n </Show>\n <div aria-hidden=\"true\" class=\"h-1.5 shrink-0\" />\n <Show when={props.approval}>\n <div data-slot=\"composer-approval\">{props.approval}</div>\n </Show>\n <Show when={props.notices}>\n <div data-slot=\"composer-notices\">{props.notices}</div>\n </Show>\n <Show when={props.blockedReason}>\n <p role=\"status\" class=\"text-muted-foreground mb-1 text-xs\">\n {props.blockedReason}\n </p>\n </Show>\n <Show when={error()}>\n {(message) => (\n <p role=\"alert\" class=\"text-destructive mb-1 text-xs\">\n {message()}\n </p>\n )}\n </Show>\n <Show when={!props.approvalFocus}>\n <Show\n when={!collapsed()}\n fallback={\n <Button\n ref={(element) => {\n restoreBar = element\n onCleanup(() => {\n if (restoreBar === element) restoreBar = undefined\n })\n }}\n type=\"button\"\n variant=\"outline\"\n size=\"sm\"\n class=\"w-full justify-start\"\n aria-expanded={false}\n aria-label=\"Show the message input\"\n onClick={() => changeCollapsed(false)}\n >\n <ChevronsUpDown />\n <span aria-hidden=\"true\" class=\"shrink-0\">\n Show the message input\n </span>\n <Show when={preview()}>\n <span aria-hidden=\"true\" class=\"min-w-0 flex-1 truncate\">\n {preview()}\n </span>\n </Show>\n </Button>\n }\n >\n <form\n data-slot=\"composer-input-box\"\n class=\"border-input bg-card flex flex-col overflow-hidden rounded-2xl border transition-colors focus-within:border-ring\"\n onSubmit={(event) => {\n event.preventDefault()\n void submit()\n }}\n >\n <Show when={props.attachments}>\n <div data-slot=\"composer-staged-content\">{props.attachments}</div>\n </Show>\n <textarea\n ref={(element) => {\n field = element\n onCleanup(() => {\n if (field === element) field = undefined\n })\n }}\n data-slot=\"composer-input\"\n aria-label={props.inputLabel ?? 'Message'}\n class=\"field-sizing-content text-foreground placeholder:text-muted-foreground min-h-11 max-h-36 w-full resize-none border-0 bg-transparent px-4 py-3 text-sm outline-none disabled:opacity-50\"\n value={props.value}\n onInput={(event) => props.onValueChange(event.currentTarget.value)}\n disabled={props.disabled}\n readOnly={props.readOnly || pending()}\n placeholder={props.placeholder ?? 'Write a message…'}\n rows={1}\n onCompositionStart={ime.onCompositionStart}\n onCompositionEnd={ime.onCompositionEnd}\n onFocus={ime.onFocus}\n onBlur={ime.onBlur}\n onKeyDown={(event) => {\n if (event.key === 'Escape' && error()) {\n setError(null)\n return\n }\n if (event.key !== 'Enter' || event.shiftKey || event.defaultPrevented) return\n if (ime.claimEnter(event)) {\n const selected =\n props.busy && (event.metaKey || event.ctrlKey)\n ? props.busy.mode === 'steer'\n ? 'queue'\n : 'steer'\n : action()\n void submit(selected)\n }\n }}\n />\n <div\n data-slot=\"composer-action-row\"\n class=\"flex items-center justify-between gap-2 px-2.5 pb-2 pt-0.5\"\n >\n <div class=\"flex min-w-0 items-center gap-1\">\n <Show when={props.collapse || props.menuItems}>\n <DropdownMenu placement=\"top-start\">\n <DropdownMenuTrigger\n as={Button}\n type=\"button\"\n variant=\"ghost\"\n size=\"icon-sm\"\n aria-label=\"Message input options\"\n >\n <MoreHorizontal />\n </DropdownMenuTrigger>\n <DropdownMenuContent\n onCloseAutoFocus={(event) => {\n if (focusTarget) event.preventDefault()\n }}\n >\n {props.menuItems}\n <Show when={props.collapse}>\n <DropdownMenuItem onSelect={() => changeCollapsed(true)}>\n <ChevronsDownUp />\n <div class=\"flex min-w-0 flex-col\">\n <span>Collapse the message input</span>\n <span class=\"text-muted-foreground text-xs\">\n Make room to read; keep your draft\n </span>\n </div>\n </DropdownMenuItem>\n </Show>\n </DropdownMenuContent>\n </DropdownMenu>\n </Show>\n {props.leadingActions}\n </div>\n <div class=\"flex shrink-0 items-center gap-1\">\n {props.trailingActions}\n <Show\n when={props.busy}\n fallback={\n <Button\n type=\"submit\"\n size=\"icon-sm\"\n disabled={!canSend()}\n aria-label={pending() ? 'Sending message' : 'Send message'}\n >\n <Show when={pending()} fallback={<ArrowUp />}>\n <Spinner size=\"sm\" label={false} />\n </Show>\n </Button>\n }\n >\n {(busy) => (\n <BusySendButton\n {...busy()}\n alternateActionHint={\n canSend(busy().mode === 'steer' ? 'queue' : 'steer')\n ? 'Ctrl/Cmd+Enter uses the other action'\n : undefined\n }\n disabled={!canSend()}\n onFire={() => {\n void submit()\n }}\n />\n )}\n </Show>\n </div>\n </div>\n </form>\n <Show when={props.context}>\n <div data-slot=\"composer-context\" class=\"flex min-w-0 items-center gap-2 pt-1\">\n {props.context}\n </div>\n </Show>\n </Show>\n </Show>\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA,SAAgB2D,aAAaC,OAA0B;CACrD,MAAMC,MAAMzC,uBAAuB;CACnC,MAAM,CAAC0C,SAASC,cAAczD,aAAa,KAAK;CAChD,MAAM,CAAC0D,OAAOC,YAAY3D,aAA4B,IAAI;CAC1D,IAAI4D;CACJ,IAAIE;CACJ,IAAIE;CACJ,IAAIC;CACJ,IAAIC;CAGJ,IAAII,aAAa;CACjB,IAAIC,SAAS;CACb,MAAMC,kBAAkBlB,MAAMtB,UAAUb,UAAU;CAClD,MAAMsD,oBAAoBnB,MAAM3B,YAAY2B,MAAM1B,YAAY,CAAC,CAAC0B,MAAMzB;CACtE,MAAM6C,oBAAoB;EACxB,IAAIV,eAAeW,KAAAA,GAAWC,qBAAqBZ,UAAU;EAC7DA,aAAaW,KAAAA;CACf;CACA,MAAME,gBAAgBC,WAA4B;EAChDJ,YAAY;EACZT,cAAca;EACdd,aAAae,4BAA4B;GACvCf,aAAaW,KAAAA;GACb,IAAI,CAACJ,UAAUjB,MAAMF,eAAe;GACpC,IAAI0B,WAAW,SAASN,UAAU,GAAGV,YAAY9C,MAAM;GACvD,IAAI8D,WAAW,WAAW,CAACN,UAAU,KAAK,CAAClB,MAAM3B,YAAYiC,OAAO;IAClEA,MAAM5C,MAAM;IACZ,IAAIkD,WACFN,MAAMoB,kBACJC,KAAKC,IAAIhB,UAAUC,OAAOP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gF,cAAc;UACZ,OAAY;SACd;QAAC,CAAA,CAAA;OAEJ,CAAA,GAAA,IAAA;OAAAC,QAAAC,QAAA;QAAA,IAAAC,MAjGOxH,MAAMvB,cAAc,WAASgJ,OAI/BzH,MAAM3B,UAAQqJ,OACd1H,MAAM1B,YAAY4B,QAAQ,GAACyH,OACxB3H,MAAMxB,eAAe;QAAkBgJ,QAAAD,IAAAK,KAAAC,aAAA1C,OAAA,cAAAoC,IAAAK,IAAAJ,GAAA;QAAAC,SAAAF,IAAAO,MAAA3C,MAAA9G,WAAAkJ,IAAAO,IAAAL;QAAAC,SAAAH,IAAAQ,MAAA5C,MAAA7G,WAAAiJ,IAAAQ,IAAAL;QAAAC,SAAAJ,IAAAS,KAAAH,aAAA1C,OAAA,eAAAoC,IAAAS,IAAAL,IAAA;QAAA,OAAAJ;OAAA,GAAA;QAAAK,GAAAvG,KAAAA;QAAAyG,GAAAzG,KAAAA;QAAA0G,GAAA1G,KAAAA;QAAA2G,GAAA3G,KAAAA;OAAA,CAAA;OAAAiG,aAAAnC,MAAAtH,QAJ7CmC,MAAMnC,KAAK;OAAA,OAAAoH;MAAA,EAAA,CAAA,GAAA5B,gBAoGrB7G,MAAI;OAAA,IAAC8G,OAAI;QAAA,OAAEtD,MAAMH;OAAO;OAAA,IAAA0D,WAAA;QAAA,IAAA0E,SAAAC,QAAA;QAAA9E,OAAA6E,cAEpBjI,MAAMH,OAAO;QAAA,OAAAoI;OAAA;MAAA,CAAA,CAAA;KAAA;IAAA,CAAA;GAAA;EAAA,CAAA,GAAA,IAAA;EAAA,OAAAjF;CAAA,EAAA,CAAA;AAO5B;AAACmF,eAAA,CAAA,SAAA,SAAA,CAAA"}
@@ -1,3 +1,4 @@
1
+ export { ChatComposer, type ChatComposerProps, type ChatComposerControl } from './chat-composer';
1
2
  export { BusySendButton, type BusySendMode, type BusySendButtonProps } from './busy-send-button';
2
3
  export { ConversationAvatar, type ConversationAvatarKind, type ConversationAvatarProps, } from './conversation-avatar';
3
4
  export { ConversationSurface, type ConversationSurfaceProps } from './conversation-surface';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/conversation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAChG,OAAO,EACL,kBAAkB,EAClB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AAC3F,OAAO,EACL,wBAAwB,EACxB,YAAY,EACZ,eAAe,EACf,KAAK,oBAAoB,GAC1B,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,KAAK,eAAe,GACrB,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,cAAc,EACd,WAAW,EACX,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,GACtB,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/conversation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAChG,OAAO,EAAE,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAChG,OAAO,EACL,kBAAkB,EAClB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AAC3F,OAAO,EACL,wBAAwB,EACxB,YAAY,EACZ,eAAe,EACf,KAAK,oBAAoB,GAC1B,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,KAAK,eAAe,GACrB,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,cAAc,EACd,WAAW,EACX,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,GACtB,MAAM,gBAAgB,CAAA"}
@@ -1,7 +1,8 @@
1
1
  import { BusySendButton } from "./busy-send-button.js";
2
+ import { ChatComposer } from "./chat-composer.js";
2
3
  import { ConversationAvatar } from "./conversation-avatar.js";
3
4
  import { ConversationSurface } from "./conversation-surface.js";
4
5
  import { ComposerAttachmentButton, ComposerHint, MessageComposer } from "./message-composer.js";
5
6
  import { MessageBody, MessageDayDivider, MessageGroup, MessageRow } from "./message-row.js";
6
7
  import { AttachmentCard, ThreadPanel } from "./thread-panel.js";
7
- export { AttachmentCard, BusySendButton, ComposerAttachmentButton, ComposerHint, ConversationAvatar, ConversationSurface, MessageBody, MessageComposer, MessageDayDivider, MessageGroup, MessageRow, ThreadPanel };
8
+ export { AttachmentCard, BusySendButton, ChatComposer, ComposerAttachmentButton, ComposerHint, ConversationAvatar, ConversationSurface, MessageBody, MessageComposer, MessageDayDivider, MessageGroup, MessageRow, ThreadPanel };
package/dist/index.js CHANGED
@@ -71,6 +71,7 @@ import { SidebarNav, SidebarNavButton, SidebarNavContent, SidebarNavFooter, Side
71
71
  import { StatusBar, StatusBarItem, StatusBarSpacer } from "./components/layout/status-bar/status-bar.js";
72
72
  import { TopBar, TopBarBreadcrumb, TopBarPill, TopBarSearch, TopBarSection, TopBarTitle } from "./components/layout/top-bar/top-bar.js";
73
73
  import { BusySendButton } from "./components/conversation/busy-send-button.js";
74
+ import { ChatComposer } from "./components/conversation/chat-composer.js";
74
75
  import { ConversationAvatar } from "./components/conversation/conversation-avatar.js";
75
76
  import { ConversationSurface } from "./components/conversation/conversation-surface.js";
76
77
  import { ComposerAttachmentButton, ComposerHint, MessageComposer } from "./components/conversation/message-composer.js";
@@ -92,4 +93,4 @@ import { formatBytes, formatReleaseDate, plainTextFromMarkdown } from "./lib/ver
92
93
  import { UpdateDialog } from "./components/composites/update-dialog/update-dialog.js";
93
94
  import { WorkspaceMark } from "./components/composites/workspace-mark/workspace-mark.js";
94
95
  import { keyedRows } from "./lib/keyed-rows.js";
95
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountMenu, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppShell, AppShellBody, AppShellContent, AppShellMain, AppearanceEditor, AppearancePanel, AppearancePopover, AspectRatio, AttachmentCard, Avatar, AvatarFallback, AvatarImage, Badge, Board, BoardCardBody, BoardCardTitle, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbSeparator, BusySendButton, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CalendarSurface, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxDescription, CheckboxLabel, CodeBlock, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxSection, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, ComposerAttachmentButton, ComposerHint, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ConversationAvatar, ConversationSurface, DatePicker, DetailPanel, DetailPanelBody, DetailPanelField, DetailPanelHeader, DetailPanelSection, Dialog, DialogClose, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffBlock, DiffSummary, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, EntityIcon, Field, FieldDescription, FieldError, FieldInput, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTextArea, HoverCard, HoverCardContent, HoverCardTrigger, InlineCode, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputOtp, InputOtpCaret, Item, ItemDescription, ItemEmpty, ItemGroup, ItemGroupEntry, ItemTitle, Kbd, KbdGroup, Label, ListGroup, ListRow, MAX_LAYOUT_DEPTH, MAX_LAYOUT_LEAVES, MAX_SPLIT_RATIO, MIN_SPLIT_RATIO, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBody, MessageComposer, MessageDayDivider, MessageGroup, MessageRow, ModalDialog, Motion, NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuMenu, NavigationMenuSeparator, NavigationMenuTrigger, NavigationMenuViewport, Page, PageHeader, PageHeaderActions, PageHeaderContent, PageHeaderDescription, PageHeaderTitle, PageSection, Pagination, PaginationEllipsis, PaginationItem, PaginationNext, PaginationPrevious, PalettePreview, Panel, PanelActions, PanelBody, PanelCard, PanelDescription, PanelFooter, PanelHeader, PanelPlaceholder, PanelTitle, PanelToolbar, Popover, PopoverAnchor, PopoverCloseButton, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Presence, Progress, PropertyList, PropertyRow, PropertyTerm, PropertyValue, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, Select, SelectChevronsUpDown, SelectContent, SelectItem, SelectLabel, SelectSection, SelectTrigger, SelectValue, Separator, SettingsField, SettingsPage, SettingsRow, SettingsSection, Sheet, SheetBody, SheetCloseButton, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SideRail, SideRailButton, SideRailContent, SideRailFooter, SideRailHeader, SideRailItem, SideRailSection, SidebarNav, SidebarNavButton, SidebarNavContent, SidebarNavFooter, SidebarNavHeader, SidebarNavItem, SidebarNavSection, SidebarNavTitle, Skeleton, Slider, Spinner, SplitLayout, Stat, StatGroup, StatusBar, StatusBarItem, StatusBarSpacer, StatusChip, StatusList, Switch, SwitchDescription, SwitchLabel, TALL_CODE_BLOCK_PX, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableNumericCell, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeMiniature, ThemeMiniatureSplit, ThemePicker, ThemePreview, ThemeProvider, ThemeSwatch, ThemeToggle, ThreadPanel, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, TopBarBreadcrumb, TopBarPill, TopBarSearch, TopBarSection, TopBarTitle, UpdateDialog, WorkspaceMark, accentPresets, alertVariants, allTokens, badgeVariants, boardCardTitleVariants, builtinThemes, buttonVariants, closePane, cn, colorTokens, computeLayoutFrames, contrastRatio, controlInteractive, controlSize, controlSizeIcon, controlSizes, countLeaves, createLayoutState, cva, defaultDarkThemeId, defaultLightThemeId, defaultThemeSelection, densityTokens, designTokens, diffLineVariants, diffStats, diffTargetPath, elevationTokens, entityIconVariants, focusPane, fontOptions, formatBytes, formatReleaseDate, initialsFrom, inlineScriptLiteral, itemVariants, keyedRows, layoutDepth, listLeaves, monogram, motionTokens, movePane, neighborLeaf, normalizeLayout, parseDiff, plainTextFromMarkdown, radiusTokens, resizeSplit, resolvedDensity, sheetVariants, sidebarNavItemClass, sidebarNavItemStateClass, splitPane, statusDotVariants, surfaceInteractive, swapPanes, themeById, themeCssVariables, themeFamilies, themeScript, themesForAppearance, toast, toaster, toggleVariants, typographyTokens, undoClosePane, undocumentedTokenAliases, useSideRail, useTheme, validateTheme, validateThemeRegistry, zIndexTokens };
96
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountMenu, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppShell, AppShellBody, AppShellContent, AppShellMain, AppearanceEditor, AppearancePanel, AppearancePopover, AspectRatio, AttachmentCard, Avatar, AvatarFallback, AvatarImage, Badge, Board, BoardCardBody, BoardCardTitle, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbSeparator, BusySendButton, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CalendarSurface, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChatComposer, Checkbox, CheckboxDescription, CheckboxLabel, CodeBlock, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxClear, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItem, ComboboxSection, ComboboxTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, ComposerAttachmentButton, ComposerHint, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, ConversationAvatar, ConversationSurface, DatePicker, DetailPanel, DetailPanelBody, DetailPanelField, DetailPanelHeader, DetailPanelSection, Dialog, DialogClose, DialogCloseButton, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DiffBlock, DiffSummary, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, EntityIcon, Field, FieldDescription, FieldError, FieldInput, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTextArea, HoverCard, HoverCardContent, HoverCardTrigger, InlineCode, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputOtp, InputOtpCaret, Item, ItemDescription, ItemEmpty, ItemGroup, ItemGroupEntry, ItemTitle, Kbd, KbdGroup, Label, ListGroup, ListRow, MAX_LAYOUT_DEPTH, MAX_LAYOUT_LEAVES, MAX_SPLIT_RATIO, MIN_SPLIT_RATIO, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBody, MessageComposer, MessageDayDivider, MessageGroup, MessageRow, ModalDialog, Motion, NavigationMenu, NavigationMenuContent, NavigationMenuGroup, NavigationMenuGroupLabel, NavigationMenuItem, NavigationMenuMenu, NavigationMenuSeparator, NavigationMenuTrigger, NavigationMenuViewport, Page, PageHeader, PageHeaderActions, PageHeaderContent, PageHeaderDescription, PageHeaderTitle, PageSection, Pagination, PaginationEllipsis, PaginationItem, PaginationNext, PaginationPrevious, PalettePreview, Panel, PanelActions, PanelBody, PanelCard, PanelDescription, PanelFooter, PanelHeader, PanelPlaceholder, PanelTitle, PanelToolbar, Popover, PopoverAnchor, PopoverCloseButton, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, Presence, Progress, PropertyList, PropertyRow, PropertyTerm, PropertyValue, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, Select, SelectChevronsUpDown, SelectContent, SelectItem, SelectLabel, SelectSection, SelectTrigger, SelectValue, Separator, SettingsField, SettingsPage, SettingsRow, SettingsSection, Sheet, SheetBody, SheetCloseButton, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, SideRail, SideRailButton, SideRailContent, SideRailFooter, SideRailHeader, SideRailItem, SideRailSection, SidebarNav, SidebarNavButton, SidebarNavContent, SidebarNavFooter, SidebarNavHeader, SidebarNavItem, SidebarNavSection, SidebarNavTitle, Skeleton, Slider, Spinner, SplitLayout, Stat, StatGroup, StatusBar, StatusBarItem, StatusBarSpacer, StatusChip, StatusList, Switch, SwitchDescription, SwitchLabel, TALL_CODE_BLOCK_PX, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableNumericCell, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeMiniature, ThemeMiniatureSplit, ThemePicker, ThemePreview, ThemeProvider, ThemeSwatch, ThemeToggle, ThreadPanel, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopBar, TopBarBreadcrumb, TopBarPill, TopBarSearch, TopBarSection, TopBarTitle, UpdateDialog, WorkspaceMark, accentPresets, alertVariants, allTokens, badgeVariants, boardCardTitleVariants, builtinThemes, buttonVariants, closePane, cn, colorTokens, computeLayoutFrames, contrastRatio, controlInteractive, controlSize, controlSizeIcon, controlSizes, countLeaves, createLayoutState, cva, defaultDarkThemeId, defaultLightThemeId, defaultThemeSelection, densityTokens, designTokens, diffLineVariants, diffStats, diffTargetPath, elevationTokens, entityIconVariants, focusPane, fontOptions, formatBytes, formatReleaseDate, initialsFrom, inlineScriptLiteral, itemVariants, keyedRows, layoutDepth, listLeaves, monogram, motionTokens, movePane, neighborLeaf, normalizeLayout, parseDiff, plainTextFromMarkdown, radiusTokens, resizeSplit, resolvedDensity, sheetVariants, sidebarNavItemClass, sidebarNavItemStateClass, splitPane, statusDotVariants, surfaceInteractive, swapPanes, themeById, themeCssVariables, themeFamilies, themeScript, themesForAppearance, toast, toaster, toggleVariants, typographyTokens, undoClosePane, undocumentedTokenAliases, useSideRail, useTheme, validateTheme, validateThemeRegistry, zIndexTokens };
@@ -22,6 +22,11 @@
22
22
  "type": "registry:ui",
23
23
  "target": "components/conversation/busy-send-button.tsx"
24
24
  },
25
+ {
26
+ "path": "src/components/conversation/chat-composer.tsx",
27
+ "type": "registry:ui",
28
+ "target": "components/conversation/chat-composer.tsx"
29
+ },
25
30
  {
26
31
  "path": "src/components/conversation/conversation-avatar.tsx",
27
32
  "type": "registry:ui",
@@ -1836,6 +1836,11 @@
1836
1836
  "type": "registry:ui",
1837
1837
  "target": "components/conversation/busy-send-button.tsx"
1838
1838
  },
1839
+ {
1840
+ "path": "src/components/conversation/chat-composer.tsx",
1841
+ "type": "registry:ui",
1842
+ "target": "components/conversation/chat-composer.tsx"
1843
+ },
1839
1844
  {
1840
1845
  "path": "src/components/conversation/conversation-avatar.tsx",
1841
1846
  "type": "registry:ui",
@@ -457,7 +457,7 @@ export function UpdateDialog(props: UpdateDialogProps) {
457
457
  </Show>
458
458
 
459
459
  <Show when={notes()}>
460
- <section class="flex flex-col gap-2" aria-labelledby="update-release-notes">
460
+ <div class="flex flex-col gap-2">
461
461
  <div class="flex items-center gap-2">
462
462
  <h2 id="update-release-notes" class="text-sm font-semibold">
463
463
  What changed in this release
@@ -477,11 +477,11 @@ export function UpdateDialog(props: UpdateDialogProps) {
477
477
  >
478
478
  {notes()}
479
479
  </div>
480
- </section>
480
+ </div>
481
481
  </Show>
482
482
 
483
483
  <Show when={changelog()}>
484
- <section class="flex flex-col gap-2" aria-labelledby="update-changelog">
484
+ <div class="flex flex-col gap-2">
485
485
  <h2 id="update-changelog" class="text-sm font-semibold">
486
486
  Installed changelog
487
487
  </h2>
@@ -499,7 +499,7 @@ export function UpdateDialog(props: UpdateDialogProps) {
499
499
  >
500
500
  {changelog()}
501
501
  </div>
502
- </section>
502
+ </div>
503
503
  </Show>
504
504
  </div>
505
505
 
@@ -0,0 +1,378 @@
1
+ /*
2
+ * Substantially translated from KiroCrew website/src/components/ChatInput.tsx
3
+ * at 283e136c0f902e965a535a7c9548c57c7504fed0.
4
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
5
+ * Licensed under Apache-2.0; see LICENSE and NOTICE.
6
+ */
7
+ import { ChevronsDownUp, ChevronsUpDown, MoreHorizontal, ArrowUp } from 'lucide-solid'
8
+ import { Show, createEffect, createSignal, on, onCleanup, onMount, type JSX } from 'solid-js'
9
+ import { Button } from '../ui/button/button'
10
+ import {
11
+ DropdownMenu,
12
+ DropdownMenuContent,
13
+ DropdownMenuItem,
14
+ DropdownMenuTrigger,
15
+ } from '../ui/dropdown-menu/dropdown-menu'
16
+ import { Spinner } from '../ui/spinner/spinner'
17
+ import { BusySendButton, type BusySendButtonProps, type BusySendMode } from './busy-send-button'
18
+ import { createComposerImeGuard } from './ime-guard'
19
+
20
+ export type ChatComposerControl = {
21
+ /** Focus this instance; false when it is unavailable or collapsed. */
22
+ focus: () => boolean
23
+ /** A typing intent, unlike merely navigating to a conversation. */
24
+ expandAndFocus: () => boolean
25
+ }
26
+ export type ChatComposerProps = {
27
+ value: string
28
+ onValueChange: (value: string) => void
29
+ /** The host owns attachments and delivery; text/action are captured at the gesture. */
30
+ onSubmit: (input: { text: string; action: 'send' | BusySendMode }) => void | Promise<void>
31
+ /** Host scope fence; changes discard local feedback, not the host draft. */
32
+ resetKey?: unknown
33
+ disabled?: boolean
34
+ readOnly?: boolean
35
+ /** A visible capability or connectivity reason. */
36
+ blockedReason?: string
37
+ placeholder?: string
38
+ inputLabel?: string
39
+ /** Opt-in and controlled: the library neither persists nor broadcasts it. */
40
+ collapse?: { value: boolean; onChange: (value: boolean) => void }
41
+ controlRef?: (control: ChatComposerControl | undefined) => void
42
+ /** Host payload eligibility by action; explicit false refuses even a nonempty draft. */
43
+ sendableActions?: Partial<Record<'send' | BusySendMode, boolean>>
44
+ busy?: Omit<BusySendButtonProps, 'onFire' | 'disabled' | 'alternateActionHint'>
45
+ knowledge?: JSX.Element
46
+ followUps?: JSX.Element
47
+ band?: JSX.Element
48
+ approval?: JSX.Element
49
+ notices?: JSX.Element
50
+ attachments?: JSX.Element
51
+ leadingActions?: JSX.Element
52
+ trailingActions?: JSX.Element
53
+ /** Host-contributed menu items; no upload, skill or permission services here. */
54
+ menuItems?: JSX.Element
55
+ context?: JSX.Element
56
+ /** Host derives this from the pending approval presentation, not UI policy. */
57
+ approvalFocus?: boolean
58
+ }
59
+
60
+ /**
61
+ * Kiro's composer assembly: context/options, adjacent band, approval/notices,
62
+ * staged content, input/action groups and a context shelf. Reading collapse
63
+ * really unmounts the input and shelf and offers a labeled way back with draft
64
+ * preview. The host retains the only draft, identities, preferences and services.
65
+ *
66
+ * Kobalte owns the options menu. Scoped imperative typing intent replaces the
67
+ * donor global lookup/broadcast so a second composer cannot receive this draft
68
+ * or focus. No animation starts from hidden geometry, no global shortcut, and no
69
+ * runtime/permission/voice/optimizer authority is copied. More specific chips,
70
+ * approval decisions and staged-content semantics are supplied by their owners.
71
+ */
72
+ export function ChatComposer(props: ChatComposerProps) {
73
+ const ime = createComposerImeGuard()
74
+ const [pending, setPending] = createSignal(false)
75
+ const [error, setError] = createSignal<string | null>(null)
76
+ let field: HTMLTextAreaElement | undefined
77
+ let restoreBar: HTMLButtonElement | undefined
78
+ let focusFrame: number | undefined
79
+ let focusTarget: 'input' | 'bar' | undefined
80
+ let selection:
81
+ | { start: number; end: number; direction: 'forward' | 'backward' | 'none' }
82
+ | undefined
83
+ let generation = 0
84
+ let active = true
85
+ const collapsed = () => props.collapse?.value === true
86
+ const unavailable = () => props.disabled || props.readOnly || !!props.blockedReason
87
+ const cancelFocus = () => {
88
+ if (focusFrame !== undefined) cancelAnimationFrame(focusFrame)
89
+ focusFrame = undefined
90
+ }
91
+ const requestFocus = (target: 'input' | 'bar') => {
92
+ cancelFocus()
93
+ focusTarget = target
94
+ focusFrame = requestAnimationFrame(() => {
95
+ focusFrame = undefined
96
+ if (!active || props.approvalFocus) return
97
+ if (target === 'bar' && collapsed()) restoreBar?.focus()
98
+ if (target === 'input' && !collapsed() && !props.disabled && field) {
99
+ field.focus()
100
+ if (selection)
101
+ field.setSelectionRange(
102
+ Math.min(selection.start, field.value.length),
103
+ Math.min(selection.end, field.value.length),
104
+ selection.direction
105
+ )
106
+ }
107
+ focusTarget = undefined
108
+ })
109
+ }
110
+ const changeCollapsed = (value: boolean) => {
111
+ if (!props.collapse || props.approvalFocus) return
112
+ if (value && field)
113
+ selection = {
114
+ start: field.selectionStart,
115
+ end: field.selectionEnd,
116
+ direction: field.selectionDirection,
117
+ }
118
+ props.collapse.onChange(value)
119
+ requestFocus(value ? 'bar' : 'input')
120
+ }
121
+ const control: ChatComposerControl = {
122
+ focus() {
123
+ if (collapsed() || props.approvalFocus || props.disabled || !field) return false
124
+ field.focus()
125
+ return true
126
+ },
127
+ expandAndFocus() {
128
+ if (props.approvalFocus || props.disabled) return false
129
+ if (collapsed()) changeCollapsed(false)
130
+ else requestFocus('input')
131
+ return true
132
+ },
133
+ }
134
+ onMount(() => props.controlRef?.(control))
135
+ createEffect(
136
+ on(
137
+ () => props.resetKey,
138
+ () => {
139
+ generation += 1
140
+ selection = undefined
141
+ cancelFocus()
142
+ focusTarget = undefined
143
+ setPending(false)
144
+ setError(null)
145
+ ime.onBlur()
146
+ },
147
+ { defer: true }
148
+ )
149
+ )
150
+ onCleanup(() => {
151
+ active = false
152
+ generation += 1
153
+ cancelFocus()
154
+ props.controlRef?.(undefined)
155
+ })
156
+ const action = (): 'send' | BusySendMode => props.busy?.mode ?? 'send'
157
+ const canSend = (selected: 'send' | BusySendMode = action()) =>
158
+ !unavailable() &&
159
+ !pending() &&
160
+ (props.sendableActions?.[selected] ?? props.value.trim().length > 0) &&
161
+ !(selected !== 'send' && props.busy?.unavailable?.[selected])
162
+ const submit = async (selected: 'send' | BusySendMode = action()) => {
163
+ if (!canSend(selected)) return
164
+ const started = generation
165
+ const input = { text: props.value, action: selected }
166
+ setPending(true)
167
+ setError(null)
168
+ try {
169
+ await props.onSubmit(input)
170
+ } catch {
171
+ if (active && started === generation)
172
+ setError('Message not sent. Check your draft and retry when the connection recovers.')
173
+ } finally {
174
+ if (active && started === generation) setPending(false)
175
+ }
176
+ }
177
+ const preview = () => {
178
+ const first =
179
+ props.value
180
+ .split('\n')
181
+ .find((line) => line.trim().length > 0)
182
+ ?.trim() ?? ''
183
+ return first.length > 120 ? `${first.slice(0, 120)}…` : first
184
+ }
185
+ return (
186
+ <div data-slot="chat-composer" class="mx-auto flex w-full max-w-4xl flex-col px-4 pb-1">
187
+ <Show when={!props.approvalFocus}>
188
+ <Show when={props.knowledge}>
189
+ <div data-slot="composer-knowledge">{props.knowledge}</div>
190
+ </Show>
191
+ <Show when={props.followUps}>
192
+ <div data-slot="composer-follow-ups">{props.followUps}</div>
193
+ </Show>
194
+ </Show>
195
+ <Show when={props.band}>
196
+ <div data-slot="composer-band">{props.band}</div>
197
+ </Show>
198
+ <div aria-hidden="true" class="h-1.5 shrink-0" />
199
+ <Show when={props.approval}>
200
+ <div data-slot="composer-approval">{props.approval}</div>
201
+ </Show>
202
+ <Show when={props.notices}>
203
+ <div data-slot="composer-notices">{props.notices}</div>
204
+ </Show>
205
+ <Show when={props.blockedReason}>
206
+ <p role="status" class="text-muted-foreground mb-1 text-xs">
207
+ {props.blockedReason}
208
+ </p>
209
+ </Show>
210
+ <Show when={error()}>
211
+ {(message) => (
212
+ <p role="alert" class="text-destructive mb-1 text-xs">
213
+ {message()}
214
+ </p>
215
+ )}
216
+ </Show>
217
+ <Show when={!props.approvalFocus}>
218
+ <Show
219
+ when={!collapsed()}
220
+ fallback={
221
+ <Button
222
+ ref={(element) => {
223
+ restoreBar = element
224
+ onCleanup(() => {
225
+ if (restoreBar === element) restoreBar = undefined
226
+ })
227
+ }}
228
+ type="button"
229
+ variant="outline"
230
+ size="sm"
231
+ class="w-full justify-start"
232
+ aria-expanded={false}
233
+ aria-label="Show the message input"
234
+ onClick={() => changeCollapsed(false)}
235
+ >
236
+ <ChevronsUpDown />
237
+ <span aria-hidden="true" class="shrink-0">
238
+ Show the message input
239
+ </span>
240
+ <Show when={preview()}>
241
+ <span aria-hidden="true" class="min-w-0 flex-1 truncate">
242
+ {preview()}
243
+ </span>
244
+ </Show>
245
+ </Button>
246
+ }
247
+ >
248
+ <form
249
+ data-slot="composer-input-box"
250
+ class="border-input bg-card flex flex-col overflow-hidden rounded-2xl border transition-colors focus-within:border-ring"
251
+ onSubmit={(event) => {
252
+ event.preventDefault()
253
+ void submit()
254
+ }}
255
+ >
256
+ <Show when={props.attachments}>
257
+ <div data-slot="composer-staged-content">{props.attachments}</div>
258
+ </Show>
259
+ <textarea
260
+ ref={(element) => {
261
+ field = element
262
+ onCleanup(() => {
263
+ if (field === element) field = undefined
264
+ })
265
+ }}
266
+ data-slot="composer-input"
267
+ aria-label={props.inputLabel ?? 'Message'}
268
+ class="field-sizing-content text-foreground placeholder:text-muted-foreground min-h-11 max-h-36 w-full resize-none border-0 bg-transparent px-4 py-3 text-sm outline-none disabled:opacity-50"
269
+ value={props.value}
270
+ onInput={(event) => props.onValueChange(event.currentTarget.value)}
271
+ disabled={props.disabled}
272
+ readOnly={props.readOnly || pending()}
273
+ placeholder={props.placeholder ?? 'Write a message…'}
274
+ rows={1}
275
+ onCompositionStart={ime.onCompositionStart}
276
+ onCompositionEnd={ime.onCompositionEnd}
277
+ onFocus={ime.onFocus}
278
+ onBlur={ime.onBlur}
279
+ onKeyDown={(event) => {
280
+ if (event.key === 'Escape' && error()) {
281
+ setError(null)
282
+ return
283
+ }
284
+ if (event.key !== 'Enter' || event.shiftKey || event.defaultPrevented) return
285
+ if (ime.claimEnter(event)) {
286
+ const selected =
287
+ props.busy && (event.metaKey || event.ctrlKey)
288
+ ? props.busy.mode === 'steer'
289
+ ? 'queue'
290
+ : 'steer'
291
+ : action()
292
+ void submit(selected)
293
+ }
294
+ }}
295
+ />
296
+ <div
297
+ data-slot="composer-action-row"
298
+ class="flex items-center justify-between gap-2 px-2.5 pb-2 pt-0.5"
299
+ >
300
+ <div class="flex min-w-0 items-center gap-1">
301
+ <Show when={props.collapse || props.menuItems}>
302
+ <DropdownMenu placement="top-start">
303
+ <DropdownMenuTrigger
304
+ as={Button}
305
+ type="button"
306
+ variant="ghost"
307
+ size="icon-sm"
308
+ aria-label="Message input options"
309
+ >
310
+ <MoreHorizontal />
311
+ </DropdownMenuTrigger>
312
+ <DropdownMenuContent
313
+ onCloseAutoFocus={(event) => {
314
+ if (focusTarget) event.preventDefault()
315
+ }}
316
+ >
317
+ {props.menuItems}
318
+ <Show when={props.collapse}>
319
+ <DropdownMenuItem onSelect={() => changeCollapsed(true)}>
320
+ <ChevronsDownUp />
321
+ <div class="flex min-w-0 flex-col">
322
+ <span>Collapse the message input</span>
323
+ <span class="text-muted-foreground text-xs">
324
+ Make room to read; keep your draft
325
+ </span>
326
+ </div>
327
+ </DropdownMenuItem>
328
+ </Show>
329
+ </DropdownMenuContent>
330
+ </DropdownMenu>
331
+ </Show>
332
+ {props.leadingActions}
333
+ </div>
334
+ <div class="flex shrink-0 items-center gap-1">
335
+ {props.trailingActions}
336
+ <Show
337
+ when={props.busy}
338
+ fallback={
339
+ <Button
340
+ type="submit"
341
+ size="icon-sm"
342
+ disabled={!canSend()}
343
+ aria-label={pending() ? 'Sending message' : 'Send message'}
344
+ >
345
+ <Show when={pending()} fallback={<ArrowUp />}>
346
+ <Spinner size="sm" label={false} />
347
+ </Show>
348
+ </Button>
349
+ }
350
+ >
351
+ {(busy) => (
352
+ <BusySendButton
353
+ {...busy()}
354
+ alternateActionHint={
355
+ canSend(busy().mode === 'steer' ? 'queue' : 'steer')
356
+ ? 'Ctrl/Cmd+Enter uses the other action'
357
+ : undefined
358
+ }
359
+ disabled={!canSend()}
360
+ onFire={() => {
361
+ void submit()
362
+ }}
363
+ />
364
+ )}
365
+ </Show>
366
+ </div>
367
+ </div>
368
+ </form>
369
+ <Show when={props.context}>
370
+ <div data-slot="composer-context" class="flex min-w-0 items-center gap-2 pt-1">
371
+ {props.context}
372
+ </div>
373
+ </Show>
374
+ </Show>
375
+ </Show>
376
+ </div>
377
+ )
378
+ }
@@ -1,3 +1,4 @@
1
+ export { ChatComposer, type ChatComposerProps, type ChatComposerControl } from './chat-composer'
1
2
  export { BusySendButton, type BusySendMode, type BusySendButtonProps } from './busy-send-button'
2
3
  export {
3
4
  ConversationAvatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adea-ai/ui",
3
- "version": "0.65.0",
3
+ "version": "0.66.0",
4
4
  "description": "The Adea design system: Kobalte-backed Solid components, semantic OKLCH tokens, and the app-shell layout primitives shared by Adea and Cortana.",
5
5
  "keywords": [
6
6
  "adea",
@@ -86,6 +86,7 @@
86
86
  "theme:check": "bun scripts/build-default-theme.ts --check",
87
87
  "check:packed-layout": "node scripts/check-packed-layout.mjs",
88
88
  "check:packed-consumer": "bun scripts/check-packed-consumer.ts",
89
+ "check:packed-conversation": "bun scripts/check-packed-conversation.ts",
89
90
  "check:packed-layout-renderer": "bun scripts/check-packed-layout-renderer.ts",
90
91
  "check:packed-appearance": "bun scripts/check-packed-appearance.ts"
91
92
  },
package/registry.json CHANGED
@@ -1836,6 +1836,11 @@
1836
1836
  "type": "registry:ui",
1837
1837
  "target": "components/conversation/busy-send-button.tsx"
1838
1838
  },
1839
+ {
1840
+ "path": "src/components/conversation/chat-composer.tsx",
1841
+ "type": "registry:ui",
1842
+ "target": "components/conversation/chat-composer.tsx"
1843
+ },
1839
1844
  {
1840
1845
  "path": "src/components/conversation/conversation-avatar.tsx",
1841
1846
  "type": "registry:ui",
@@ -457,7 +457,7 @@ export function UpdateDialog(props: UpdateDialogProps) {
457
457
  </Show>
458
458
 
459
459
  <Show when={notes()}>
460
- <section class="flex flex-col gap-2" aria-labelledby="update-release-notes">
460
+ <div class="flex flex-col gap-2">
461
461
  <div class="flex items-center gap-2">
462
462
  <h2 id="update-release-notes" class="text-sm font-semibold">
463
463
  What changed in this release
@@ -477,11 +477,11 @@ export function UpdateDialog(props: UpdateDialogProps) {
477
477
  >
478
478
  {notes()}
479
479
  </div>
480
- </section>
480
+ </div>
481
481
  </Show>
482
482
 
483
483
  <Show when={changelog()}>
484
- <section class="flex flex-col gap-2" aria-labelledby="update-changelog">
484
+ <div class="flex flex-col gap-2">
485
485
  <h2 id="update-changelog" class="text-sm font-semibold">
486
486
  Installed changelog
487
487
  </h2>
@@ -499,7 +499,7 @@ export function UpdateDialog(props: UpdateDialogProps) {
499
499
  >
500
500
  {changelog()}
501
501
  </div>
502
- </section>
502
+ </div>
503
503
  </Show>
504
504
  </div>
505
505