Files
CatoandClaude e69585230c fix(attach): Files asks for documents, so Brave on Android opens the file browser (#47)
An empty `accept` means "anything", and Brave on Android answered the Files
input with Camera, Camera, Recorder and "Photos & Videos" — no file browser,
so a PDF could not be picked at all (OrangeCat, 2026-10-27, from a phone).
Files now asks for PDF and text only (FILES_ACCEPT, one "document" family),
which takes every capture app off the table; the type is still decided
after the pick. Release 0.20.1.


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

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

16 lines
870 B
JavaScript

/**
* @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 { ATTACH_SOURCE_INPUT, FILES_ACCEPT, acceptFamilies, isImageMime, isTextFile, } from "../attachments.js";
export { shrinkImage } from "../image.js";
//# sourceMappingURL=attach.js.map