@poolse/react-ui 1.0.1-beta.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -15
- package/dist/index.cjs +611 -233
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +35 -4
- package/dist/index.d.ts +35 -4
- package/dist/index.js +610 -235
- package/dist/index.js.map +1 -1
- package/dist/styles.css +367 -18
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -39,21 +39,36 @@ That's it. Auto-loads the brand fonts (Bricolage Grotesque / Hanken Grotesk / Je
|
|
|
39
39
|
|
|
40
40
|
## Components
|
|
41
41
|
|
|
42
|
-
| Component | Use
|
|
43
|
-
| -------------------------------------- |
|
|
44
|
-
| `<ConversationView>` | Full chat surface:
|
|
45
|
-
| `<ConversationList>` | Sidebar of conversations the user belongs to
|
|
46
|
-
| `<MemberList>` | Roster for a conversation, with role badges + optional remove
|
|
47
|
-
| `<MessageBubble>` | One message — coral for self, surface for others; read-receipt glyph
|
|
48
|
-
| `<MessageComposer>` | Pill input + circular brand send button
|
|
49
|
-
| `<MentionInput>` | Composer with `@` autocomplete
|
|
50
|
-
| `<TypingIndicator>` | Three bouncing dots + names label |
|
|
51
|
-
| `<AttachmentPreview>` | Inline image (lazy thumbnail) OR file card with download
|
|
52
|
-
| `<
|
|
53
|
-
| `<
|
|
54
|
-
| `<
|
|
55
|
-
| `<
|
|
56
|
-
| `<
|
|
42
|
+
| Component | Use |
|
|
43
|
+
| -------------------------------------- | --------------------------------------------------------------------------------------------------------- |
|
|
44
|
+
| `<ConversationView>` | Full chat surface: messages, typing, composer, reactions, threads, attachments — drag-drop + lightbox |
|
|
45
|
+
| `<ConversationList>` | Sidebar of conversations the user belongs to |
|
|
46
|
+
| `<MemberList>` | Roster for a conversation, with role badges + optional remove |
|
|
47
|
+
| `<MessageBubble>` | One message — coral for self, surface for others; markdown body; read-receipt glyph |
|
|
48
|
+
| `<MessageComposer>` | Pill input + circular brand send button |
|
|
49
|
+
| `<MentionInput>` | Composer with `@` autocomplete (combobox ARIA) |
|
|
50
|
+
| `<TypingIndicator>` | Three bouncing dots + names label; live region for screen readers |
|
|
51
|
+
| `<AttachmentPreview>` | Inline image (lazy thumbnail) + lightbox on click, OR file card with download |
|
|
52
|
+
| `<UploadQueueStrip>` | Chips with progress bar + cancel/dismiss for in-flight uploads |
|
|
53
|
+
| `<ReactionStrip>` + `<ReactionPicker>` | Pills with counts + emoji picker (keyboard-navigable) |
|
|
54
|
+
| `<Avatar>` | Initials gradient + presence dot + image fallback |
|
|
55
|
+
| `<UserName>` / `useDisplayName` | Resolve a user_id to its display name via `userResolver` (3-tier fallback chain) |
|
|
56
|
+
| `<ThreadView>` | Right-pane reply thread with focus management + ESC close |
|
|
57
|
+
| `<PoolseIcon name="…" />` | Any icon from the 41-icon brand set |
|
|
58
|
+
| `<PoolseLogo>` | Brand mark / lockup / wordmark, theme-aware |
|
|
59
|
+
| `<PoolseFonts />` | Inject the brand fonts (idempotent; `ConversationView` does this for you) |
|
|
60
|
+
|
|
61
|
+
## What you get for free
|
|
62
|
+
|
|
63
|
+
- **Multi-file uploads** — composer picker accepts multiple files; drag-and-drop a batch onto the conversation pane and they ship as one message
|
|
64
|
+
- **Progress + cancel** — every upload shows a chip above the composer with live progress bar (XHR-driven) and per-item cancel
|
|
65
|
+
- **Image lightbox** — click any image attachment to view full-size; ESC closes, click-outside closes, body scroll locks
|
|
66
|
+
- **Markdown messages** — GFM-flavored (bold/italic/lists/code/blockquotes/strikethrough/autolinks); long messages auto-trim with a "Read more" toggle
|
|
67
|
+
- **Group-chat avatars + sender labels** — auto-on when a conversation has 3+ members; resolved via your `userResolver`
|
|
68
|
+
- **WhatsApp-style grouping** — same-sender messages within 5 min cluster visually; day separators between calendar days
|
|
69
|
+
- **Quote replies + threads** — quote stays in the main feed; "Reply in thread" opens the side pane
|
|
70
|
+
- **A11y baseline** — `role="log"` messages list, live regions for typing + status, focus management on overlays, scoped `prefers-reduced-motion`, keyboard-only emoji picker
|
|
71
|
+
- **Mobile baseline** — 44px touch targets, 16px composer font (no iOS auto-zoom), `safe-area-inset` on lightbox + composer, tap-reveal for message actions, full-screen thread pane below 760px
|
|
57
72
|
|
|
58
73
|
## Theming
|
|
59
74
|
|