mirror of
https://github.com/bitbaum/chatkit.git
synced 2026-12-04 05:07:23 +01:00
- `@bitbaum/chatkit/attach`: AttachMenu, ATTACH_SOURCE_INPUT, isTextFile, acceptFamilies and shrinkImage without the composer, so an app with no chat (avatars, product photos, receipts) uses the same picker instead of re-rolling a file input. AttachMenu takes `sources` (an image uploader offers Camera + Photos; one source skips the sheet) and a `trigger`. - `chatkit-check-file-inputs` (bin): fails CI on a literal accept that mixes file families — the shape that hid screenshots on Android in loki, orangecat and evig. Same rule as the package (acceptFamilies), so there is one definition; a justified exception is marked on the line. - shrinkImage moves out of the composer hook into src/image.ts (unchanged). - README: install releases from npm, never a commit — heidi and substrata stayed on the broken paperclip because they pinned old versions. Claude-Session: https://claude.ai/code/session_01BWXjqiHm8jFta4FXuc7Tck Co-authored-by: Claude <noreply@anthropic.com>
1 line
382 B
Plaintext
1 line
382 B
Plaintext
{"version":3,"file":"attach.d.ts","sourceRoot":"","sources":["../../src/react/attach.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AACzE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,UAAU,EACV,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"} |