mirror of
https://github.com/bitbaum/chatkit.git
synced 2026-12-05 14:01:44 +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
917 B
Plaintext
1 line
917 B
Plaintext
{"version":3,"file":"use-attachments.d.ts","sourceRoot":"","sources":["../../src/react/use-attachments.ts"],"names":[],"mappings":"AAEA,OAAO,EAA4C,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtF,OAAO,EAQL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC;uEACmE;IACnE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,EAAE,GAAG,IAAI,KAAK,IAAI,CAAC;IACpD,wDAAwD;IACxD,YAAY,EAAE,CAAC,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC;IAC7C,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,MAAM,EAAE,MAAM,UAAU,EAAE,CAAC;IAC3B,KAAK,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,MAAM,CAAC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,GAAE,OAAO,CAAC,gBAAgB,CAAM,EACtC,KAAK,GAAE,OAAO,CAAC,eAAe,CAAM,GACnC,qBAAqB,CAoLvB"} |