multica/packages/ui/src
Naiyuan Qing 2f5dbcdde9 feat(ui): add QR code scanner to ConnectPrompt
Add browser-based QR scanning as an alternative to paste mode in the
ConnectPrompt component. Mobile users can scan the Desktop QR code
directly instead of manually copying connection codes.

- Add qr-scanner dependency (WebWorker-based decoding, BarcodeDetector support)
- Create use-qr-scanner hook wrapping camera lifecycle and cleanup
- Create QrScannerView component with viewfinder overlay
- ConnectPrompt auto-detects mobile (touch + narrow viewport) and defaults to scan mode
- Lazy-load scanner component for zero initial bundle impact
- Graceful fallback to paste mode on permission denial or no camera

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 15:41:12 +08:00
..
components feat(ui): add QR code scanner to ConnectPrompt 2026-02-04 15:41:12 +08:00
hooks feat(ui): add QR code scanner to ConnectPrompt 2026-02-04 15:41:12 +08:00
lib feat(ui): extract components, utils, and styles from apps/web 2026-01-30 11:34:05 +08:00
styles feat(web): add scroll fade hint effect to chat message list 2026-01-30 22:14:19 +08:00
index.ts feat(ui): create @multica/ui package skeleton 2026-01-30 11:34:05 +08:00