mirror of
https://github.com/bitbaum/chatkit.git
synced 2026-12-03 21:07:24 +01:00
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>
17 lines
980 B
TypeScript
17 lines
980 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, FILES_ACCEPT, acceptFamilies, isImageMime, isTextFile, type AcceptFamily, type AttachSource, } from "../attachments.js";
|
|
export { shrinkImage } from "../image.js";
|
|
//# sourceMappingURL=attach.d.ts.map
|