Files
chatkit/dist/react/attach.d.ts
T
CatoandClaude d8fe1df86f feat(app): send handle, per-turn failures and the slots ChatApp adopters asked for (#45)
The first four products to move onto ChatApp (heidi#226, orangecat#1447,
solon#309, substrata#262) each listed what it could not do and wrote a
workaround. This closes those gaps, additively:

- ChatApp ref (ChatAppHandle: send, fill, focus, newChat, openConversation),
  initialMessage (once, StrictMode-safe) and deepLinkParam (fills, never
  sends unless deepLinkAutoSend)
- Retry re-sends the failed turn's pictures
- ChatTurnError: the failure reason travels with its own turn
- stopKeepsPartial, per ChatApp and per turn
- starters with lang, historySlot/historyEmpty, attachExtras rows in the
  attach sheet, chips on the sent message (chipsFor), onTemporaryEnd with
  turn.chatId, renderFooter(m, { isLatest, index, send, fill }), thread.after
- the live Stop button is a 44px target


Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-27 12:33:31 +01:00

17 lines
966 B
TypeScript

/**
* @bitbaum/chatkit/attach — picking files, for any screen, not only a chat.
*
* import { AttachMenu, ATTACH_SOURCE_INPUT, shrinkImage } from "@bitbaum/chatkit/attach";
*
* An avatar uploader, a product-photo grid and a chat composer all need the
* same thing from a phone: Camera, Photos and Files as separate choices, never
* one input with a mixed `accept` (see ATTACH_SOURCE_INPUT). This entry point
* carries exactly that, without the composer, so an app that has no chat does
* not re-roll a file input — the copy is what drifts. CI enforces it:
* `chatkit-check-file-inputs`.
*/
export { AttachMenu, DEFAULT_ATTACH_MENU_LABELS } from "./AttachMenu.js";
export type { AttachExtra, AttachMenuLabels } from "./AttachMenu.js";
export { ATTACH_SOURCE_INPUT, acceptFamilies, isImageMime, isTextFile, type AcceptFamily, type AttachSource, } from "../attachments.js";
export { shrinkImage } from "../image.js";
//# sourceMappingURL=attach.d.ts.map