@poolse/react-ui 2.12.0 → 2.13.0

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/CHANGELOG.md CHANGED
@@ -1,260 +1,282 @@
1
- # Changelog
2
-
3
- All notable changes to `@poolse/react-ui` are documented here. Format follows
4
- [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
5
- [semver](https://semver.org).
6
-
7
- ## [2.0.0] — 2026-06-03
8
-
9
- Lockstep release with `@poolse/sdk@2.0.0` and `@poolse/react@2.0.0`.
10
-
11
- ### Breaking
12
-
13
- - **`UserNameProps.externalId`** — was `userId`. Same applies to
14
- `useDisplayName(externalId, …)`.
15
- - **`MemberListProps.labelFor: (externalId) => string`** — was keyed
16
- by uuid. Same change to `avatarFor`.
17
- - **`MemberListProps.onlineExternalIds`** — was `onlineUserIds`.
18
- - **`TypingIndicatorProps.labelFor: (externalId) => string`**.
19
- - **`MessageBubbleProps.labelFor: (externalId) => string`** — both
20
- the main `labelFor` and the QuotedCard's. The bubble reads
21
- `message.sender_external_id` to drive `useUser`.
22
- - **`MessageComposerProps.labelFor: (externalId) => string`**.
23
- - **`MentionInputProps.labelFor: (externalId) => string`**. The
24
- dropdown filters and inserts by external_id; the wire `mentions`
25
- array stays uuid-keyed (backend storage hasn't changed there).
26
- - **`ConversationViewProps.labelFor: (externalId) => string`** —
27
- passes through to every consuming child.
28
-
29
- ### Migration
30
-
31
- See `MIGRATING.md` at the repo root.
32
-
33
- ## [1.1.0] — 2026-06-02
34
-
35
- Lockstep release with `@poolse/sdk@1.1.0` and `@poolse/react@1.1.0`.
36
- `@poolse/react-ui` carries the actual feature work this version; the
37
- other two packages bumped to keep the three in sync, so customers can
38
- pin one version across the whole client surface.
39
-
40
- ### Added — attachments inside the bubble (WhatsApp-style)
41
-
42
- - `<MessageBubble>` now renders attachments INSIDE the bubble rather
43
- than as a separate block underneath. Images compose a mosaic at the
44
- top of the bubble, file cards stack below the mosaic, and the
45
- message body (if any) sits beneath them all. Layout chooses a grid
46
- template by image count: n1 → single full-bleed tile (natural
47
- aspect, capped at 360px), n2 → two equal squares, n3 → one 16:9
48
- hero + two squares beneath, n4+ → 2×2 grid with the 4th tile
49
- showing a `+N more` overlay. The bubble has `overflow: hidden` so
50
- the mosaic is clipped to the bubble's rounded corners and the
51
- asymmetric tail.
52
- - `<MessageBubble showAttachments?: boolean>` — new prop, defaults
53
- to `true`. Pass `false` if you want the bubble to skip the
54
- in-bubble attachments (so you can render them yourself).
55
- `<MessageRow>` forwards its existing `attachments` flag to this
56
- prop, and `<ConversationView>`'s `attachments` flag forwards to
57
- `<MessageRow>`. Existing callers don't need to do anything to get
58
- the new layout.
59
- - New CSS classes: `.poolse-message__media`,
60
- `.poolse-message__media--n1` / `--n2` / `--n3` / `--n4`,
61
- `.poolse-message__media-tile`, `.poolse-message__media-overflow`,
62
- `.poolse-message__files`, `.poolse-message__meta--overlay`, plus
63
- the parent-state modifiers `.poolse-message--has-media` and
64
- `.poolse-message--media-only`.
65
- - When a message has only images (no body text and no file cards),
66
- the meta (time + read tick) renders as a small dark pill overlaid
67
- on the bottom-right of the mosaic, matching the WhatsApp
68
- convention.
69
- - File-card attachments on self bubbles get a tinted white-on-coral
70
- variant so they read against the brand colour.
71
-
72
- ### Changed
73
-
74
- - `<MessageRow>` no longer renders the standalone attachments block
75
- below the bubble — attachments now live inside the bubble via the
76
- new `showAttachments` plumbing.
77
- - README rewritten as a full component reference with the in-bubble
78
- attachment layout documented, the migration note for the removed
79
- CSS class, the full design-token list, the customization layers,
80
- and the accessibility surface.
81
-
82
- ### Removed
83
-
84
- - CSS class `.poolse-message-row__attachments` and its `--self`
85
- modifier are no longer rendered or defined. Any customer rule that
86
- selected on them will silently no-op. Re-target the new classes
87
- above to restore custom styling.
88
-
89
- ### Migration notes
90
-
91
- - If you never touched the `.poolse-message-row__attachments`
92
- selector and you don't pass `attachments={false}` to
93
- `<ConversationView>` / `<MessageRow>`, nothing changes for you —
94
- attachments still appear, just inside the bubble.
95
- - If you styled the old class, switch your selectors to
96
- `.poolse-message__media` / `.poolse-message__files`. The new
97
- classes carry the same semantic content (images and file cards
98
- respectively), and the design-token-driven defaults already match
99
- the surrounding bubble styling.
100
- - If you previously rendered your own attachments outside the bubble
101
- while passing a `<MessageBubble>` directly, pass
102
- `showAttachments={false}` to keep that arrangement.
103
-
104
- ### Internal
105
-
106
- - Test harness: `XMLHttpRequest` is undefined'd in `test/setup.ts`
107
- so the bundled Phoenix LongPoll fallback can't schedule a
108
- setTimeout that fires after happy-dom teardown. Resolves the
109
- unhandled-error exits previously seen on `pnpm test`.
110
-
111
- ## [1.0.0-beta.0] — 2026-06-01
112
-
113
- First beta of the stable component surface. Promotes the full 0.2.x
114
- UI kit (ConversationView with reactions / mentions / attachments /
115
- threads / quotations / readReceipts flags, MessageRow with thread
116
- pill + quote card, MessageComposer / MentionInput with the quote
117
- chip, MessageBubble with the WhatsApp-style QuotedCard + fallback
118
- placeholder, ConversationList with unread badges) to a stable
119
- namespace. No breaking changes relative to `0.2.0-alpha.7`.
120
-
121
- ## [0.2.0] — 2026-06-01
122
-
123
- ### Changed — quote card polish
124
-
125
- - WhatsApp-style quote card visuals: compact padding, 4px Pulse Coral
126
- accent stripe flush with the bubble edge, body text at 0.62 opacity
127
- so the eye lands on the actual message. Self-bubble variant tints
128
- with a dark overlay; other-bubble variant tints slightly darker than
129
- the surface for visual "depth."
130
- - Optimistic quote preview: when you quote-reply, the card renders
131
- immediately on the locally-inserted bubble (looked up from the
132
- in-memory message list) instead of flashing in once the realtime
133
- echo arrives ~100ms later.
134
-
135
- ### Added — quote replies (WhatsApp-style)
136
-
137
- - `<ConversationView quotations?>` (default `true`) — new feature
138
- toggle. Adds a "Reply" action to the hover menu distinct from
139
- "Reply in thread". Reply pre-fills the composer with a quote chip
140
- above the input; on send, the new message carries `quoted_message_id`
141
- and stays in the main feed (no thread promotion).
142
- - `<MessageBubble>` renders a small quoted-message card above the body
143
- when `message.quoted_message` is set. Click → scroll-to-original
144
- with a 1.6s highlight pulse on the target row.
145
- - `<MessageComposer>` + `<MentionInput>` gain controlled
146
- `replyingTo?: Message` and `onCancelReply?: () => void` props.
147
- Renders a quote chip above the input with an (x) to cancel; Esc
148
- also dismisses.
149
- - `<MessageActions>` gains `onQuote?: () => void` — wired in
150
- `<MessageRow>` to call back to the caller's quote state.
151
-
152
- ### Added — unread badges on `<ConversationList>`
153
-
154
- - `<ConversationList unreadCounts>` now accepts a per-conversation
155
- unread map and renders a small Pulse Coral pill on each row when
156
- `unread > 0`. Auto-falls-back to `useConversations().unreadCounts`
157
- when the component runs in uncontrolled mode, so sidebars work
158
- out of the box with no extra wiring.
159
-
160
- ### Added — thread pill + copy action
161
-
162
- - `<MessageRow>` renders a subtle "💬 N replies" pill below any message
163
- whose `reply_count > 0`. Clicking the pill opens the thread side-pane
164
- via the existing `onOpenThread` callback. Hidden in `<ThreadView>`
165
- (threads-within-threads aren't supported in 0.2).
166
- - `<MessageActions>` gains an optional `onCopy` action. `<MessageRow>`
167
- wires it to `navigator.clipboard.writeText(message.body)` whenever
168
- the message has a non-empty body.
169
-
170
- ### Changed — better error visibility
171
-
172
- - `<MemberList>` now renders `error.message` under the "Failed to load
173
- members." headline so callers see the actual cause without opening
174
- DevTools.
175
-
176
- ### Added — new components
177
-
178
- - `<MessageActions>` — hover-triggered popover with react / reply
179
- (open thread) / edit / delete affordances. Built on `PoolseIcon`
180
- and reuses the existing `ReactionPicker`.
181
- - `<EditableMessageBubble>` — extends `MessageBubble` with an
182
- inline-edit mode (controlled `editing` prop, textarea with
183
- Enter-to-save / Esc-to-cancel).
184
- - `<ThreadView>` — side-pane component for thread replies.
185
- Composes `useThread` + `MessageBubble` + `MessageComposer` with
186
- the same brand styling as the main view. Includes a root-message
187
- preview at the top.
188
-
189
- ### Added — `<ConversationView>` feature toggles (all default ON)
190
-
191
- - `reactions` — render `<ReactionStrip>` under each message.
192
- - `mentions` — swap `<MessageComposer>` for `<MentionInput>` when
193
- the conversation has loaded members.
194
- - `attachments` — paperclip icon in the composer triggers a file
195
- picker → presigned upload → send with `attachment_ids`. Inline
196
- renders attached images / file cards via `<AttachmentPreview>`.
197
- - `actions` — hover-revealed `<MessageActions>` next to each message,
198
- with edit/delete only shown for own messages.
199
- - `threads` — clicking "reply in thread" from a message opens a
200
- right-side `<ThreadView>`.
201
- - `readReceipts` — check-double glyph on own messages once another
202
- member's `last_read_message_id` advances past them. Auto-computed
203
- from `useMembers`. Now updates in real time via the new
204
- `member:read` realtime event.
205
-
206
- Each toggle defaults to `true`, so dropping in
207
- `<ConversationView conversationId={id} />` gets you the full chat
208
- surface out of the box. Set any to `false` to slim down the view.
209
-
210
- ### Added — new props
211
-
212
- - `<ConversationView onMarkedRead={(convId) => ...}>` — fires once
213
- per fresh tail after auto-mark-read commits. Pair with
214
- `useConversations().markConversationRead` to clear a sidebar
215
- unread badge immediately (before the realtime echo).
216
-
217
- ## [0.1.2] — 2026-06-01
218
-
219
- ### Added
220
-
221
- - `<ConversationList>` gains optional controlled-mode props:
222
- `conversations`, `loading`, `error`. When passed, the component
223
- renders from those instead of calling `useConversations()`
224
- internally. Lets a parent own the conversations list state — useful
225
- when the host app creates conversations via a custom backend route
226
- (e.g., the showcase's `/api/conversations`) and needs to push the
227
- new conversation into the list immediately, without waiting for
228
- the realtime push. When omitted, auto-fetches as before (no
229
- breaking change for existing callers).
230
-
231
- ## [0.1.1] — 2026-06-01
232
-
233
- ### Fixed
234
-
235
- - `<ConversationView>` no longer wraps each rendered message in a
236
- `<div>`. The wrapper was a block-level element that took 100% of
237
- the flex row width, which pinned every bubble (self + other) to
238
- the left regardless of `MessageBubble`'s `align-self` rule. Now
239
- using a `<Fragment>` so the bubble is the direct flex child.
240
- - Pulls `@poolse/react@^0.1.1` for the matching `useMessages`
241
- sender_id fix on optimistic sends.
242
-
243
- ## [0.1.0] — 2026-06-01
244
-
245
- First publishable release.
246
-
247
- ### Added
248
-
249
- - Composed `<ConversationView>` — full chat surface in one drop-in.
250
- - Individual pieces: `<MessageBubble>`, `<MessageComposer>`,
251
- `<TypingIndicator>`, `<Avatar>`.
252
- - Conversation + member panels: `<ConversationList>`, `<MemberList>`.
253
- - Rich content: `<AttachmentPreview>` (image / file),
254
- `<ReactionStrip>` + `<ReactionPicker>`, `<MentionInput>`.
255
- - Brand chrome: `<PoolseIcon>` (41 icons), `<PoolseLogo>` (mark / lockup
256
- / wordmark / mono), `<PoolseFonts />` (auto-loaded by
257
- `<ConversationView>`).
258
- - Full `--poolse-*` CSS variable system mirroring the brand kit:
259
- colors, type, radii, warm-tinted shadows, light + dark themes.
260
- - Render-prop escape hatches on every list/conversation component.
1
+ # Changelog
2
+
3
+ All notable changes to `@poolse/react-ui` are documented here. Format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
5
+ [semver](https://semver.org).
6
+
7
+ ## [2.13.0] — 2026-08-23
8
+
9
+ ### Changed
10
+
11
+ - **`CallVideoGrid` is now layout-aware.** One other person gets the
12
+ whole frame with your own camera in a corner tile; three or more get a
13
+ grid, two columns up to six and three beyond that. Splitting a
14
+ two-person call into equal boxes spent most of the screen on
15
+ letterboxing.
16
+ - Camera-off participants render a coloured initials avatar rather than
17
+ a bare letter, matching the mobile SDK.
18
+ - Mute is shown with the `mic-off` icon instead of the word "muted".
19
+
20
+ ### Added
21
+
22
+ - Call icons: `phone`, `phone-off`, `mic-off`, `video`, `video-off`,
23
+ `speaker`, `speaker-off`, `camera-flip`, `bluetooth`, `headphones`,
24
+ `chevron-up`.
25
+ - New class hooks: `.callstage`, `.callstage__pip`,
26
+ `.callgrid__tile--bleed`, `.callgrid__avatar`. No CSS ships with the
27
+ component — the host app still owns the look.
28
+
29
+ ## [2.0.0] — 2026-06-03
30
+
31
+ Lockstep release with `@poolse/sdk@2.0.0` and `@poolse/react@2.0.0`.
32
+
33
+ ### Breaking
34
+
35
+ - **`UserNameProps.externalId`** — was `userId`. Same applies to
36
+ `useDisplayName(externalId, …)`.
37
+ - **`MemberListProps.labelFor: (externalId) => string`** — was keyed
38
+ by uuid. Same change to `avatarFor`.
39
+ - **`MemberListProps.onlineExternalIds`** — was `onlineUserIds`.
40
+ - **`TypingIndicatorProps.labelFor: (externalId) => string`**.
41
+ - **`MessageBubbleProps.labelFor: (externalId) => string`** — both
42
+ the main `labelFor` and the QuotedCard's. The bubble reads
43
+ `message.sender_external_id` to drive `useUser`.
44
+ - **`MessageComposerProps.labelFor: (externalId) => string`**.
45
+ - **`MentionInputProps.labelFor: (externalId) => string`**. The
46
+ dropdown filters and inserts by external_id; the wire `mentions`
47
+ array stays uuid-keyed (backend storage hasn't changed there).
48
+ - **`ConversationViewProps.labelFor: (externalId) => string`** —
49
+ passes through to every consuming child.
50
+
51
+ ### Migration
52
+
53
+ See `MIGRATING.md` at the repo root.
54
+
55
+ ## [1.1.0] — 2026-06-02
56
+
57
+ Lockstep release with `@poolse/sdk@1.1.0` and `@poolse/react@1.1.0`.
58
+ `@poolse/react-ui` carries the actual feature work this version; the
59
+ other two packages bumped to keep the three in sync, so customers can
60
+ pin one version across the whole client surface.
61
+
62
+ ### Added — attachments inside the bubble (WhatsApp-style)
63
+
64
+ - `<MessageBubble>` now renders attachments INSIDE the bubble rather
65
+ than as a separate block underneath. Images compose a mosaic at the
66
+ top of the bubble, file cards stack below the mosaic, and the
67
+ message body (if any) sits beneath them all. Layout chooses a grid
68
+ template by image count: n1 → single full-bleed tile (natural
69
+ aspect, capped at 360px), n2 → two equal squares, n3 → one 16:9
70
+ hero + two squares beneath, n4+ → 2×2 grid with the 4th tile
71
+ showing a `+N more` overlay. The bubble has `overflow: hidden` so
72
+ the mosaic is clipped to the bubble's rounded corners and the
73
+ asymmetric tail.
74
+ - `<MessageBubble showAttachments?: boolean>` — new prop, defaults
75
+ to `true`. Pass `false` if you want the bubble to skip the
76
+ in-bubble attachments (so you can render them yourself).
77
+ `<MessageRow>` forwards its existing `attachments` flag to this
78
+ prop, and `<ConversationView>`'s `attachments` flag forwards to
79
+ `<MessageRow>`. Existing callers don't need to do anything to get
80
+ the new layout.
81
+ - New CSS classes: `.poolse-message__media`,
82
+ `.poolse-message__media--n1` / `--n2` / `--n3` / `--n4`,
83
+ `.poolse-message__media-tile`, `.poolse-message__media-overflow`,
84
+ `.poolse-message__files`, `.poolse-message__meta--overlay`, plus
85
+ the parent-state modifiers `.poolse-message--has-media` and
86
+ `.poolse-message--media-only`.
87
+ - When a message has only images (no body text and no file cards),
88
+ the meta (time + read tick) renders as a small dark pill overlaid
89
+ on the bottom-right of the mosaic, matching the WhatsApp
90
+ convention.
91
+ - File-card attachments on self bubbles get a tinted white-on-coral
92
+ variant so they read against the brand colour.
93
+
94
+ ### Changed
95
+
96
+ - `<MessageRow>` no longer renders the standalone attachments block
97
+ below the bubble — attachments now live inside the bubble via the
98
+ new `showAttachments` plumbing.
99
+ - README rewritten as a full component reference with the in-bubble
100
+ attachment layout documented, the migration note for the removed
101
+ CSS class, the full design-token list, the customization layers,
102
+ and the accessibility surface.
103
+
104
+ ### Removed
105
+
106
+ - CSS class `.poolse-message-row__attachments` and its `--self`
107
+ modifier are no longer rendered or defined. Any customer rule that
108
+ selected on them will silently no-op. Re-target the new classes
109
+ above to restore custom styling.
110
+
111
+ ### Migration notes
112
+
113
+ - If you never touched the `.poolse-message-row__attachments`
114
+ selector and you don't pass `attachments={false}` to
115
+ `<ConversationView>` / `<MessageRow>`, nothing changes for you —
116
+ attachments still appear, just inside the bubble.
117
+ - If you styled the old class, switch your selectors to
118
+ `.poolse-message__media` / `.poolse-message__files`. The new
119
+ classes carry the same semantic content (images and file cards
120
+ respectively), and the design-token-driven defaults already match
121
+ the surrounding bubble styling.
122
+ - If you previously rendered your own attachments outside the bubble
123
+ while passing a `<MessageBubble>` directly, pass
124
+ `showAttachments={false}` to keep that arrangement.
125
+
126
+ ### Internal
127
+
128
+ - Test harness: `XMLHttpRequest` is undefined'd in `test/setup.ts`
129
+ so the bundled Phoenix LongPoll fallback can't schedule a
130
+ setTimeout that fires after happy-dom teardown. Resolves the
131
+ unhandled-error exits previously seen on `pnpm test`.
132
+
133
+ ## [1.0.0-beta.0] — 2026-06-01
134
+
135
+ First beta of the stable component surface. Promotes the full 0.2.x
136
+ UI kit (ConversationView with reactions / mentions / attachments /
137
+ threads / quotations / readReceipts flags, MessageRow with thread
138
+ pill + quote card, MessageComposer / MentionInput with the quote
139
+ chip, MessageBubble with the WhatsApp-style QuotedCard + fallback
140
+ placeholder, ConversationList with unread badges) to a stable
141
+ namespace. No breaking changes relative to `0.2.0-alpha.7`.
142
+
143
+ ## [0.2.0] — 2026-06-01
144
+
145
+ ### Changed — quote card polish
146
+
147
+ - WhatsApp-style quote card visuals: compact padding, 4px Pulse Coral
148
+ accent stripe flush with the bubble edge, body text at 0.62 opacity
149
+ so the eye lands on the actual message. Self-bubble variant tints
150
+ with a dark overlay; other-bubble variant tints slightly darker than
151
+ the surface for visual "depth."
152
+ - Optimistic quote preview: when you quote-reply, the card renders
153
+ immediately on the locally-inserted bubble (looked up from the
154
+ in-memory message list) instead of flashing in once the realtime
155
+ echo arrives ~100ms later.
156
+
157
+ ### Added — quote replies (WhatsApp-style)
158
+
159
+ - `<ConversationView quotations?>` (default `true`) — new feature
160
+ toggle. Adds a "Reply" action to the hover menu distinct from
161
+ "Reply in thread". Reply pre-fills the composer with a quote chip
162
+ above the input; on send, the new message carries `quoted_message_id`
163
+ and stays in the main feed (no thread promotion).
164
+ - `<MessageBubble>` renders a small quoted-message card above the body
165
+ when `message.quoted_message` is set. Click → scroll-to-original
166
+ with a 1.6s highlight pulse on the target row.
167
+ - `<MessageComposer>` + `<MentionInput>` gain controlled
168
+ `replyingTo?: Message` and `onCancelReply?: () => void` props.
169
+ Renders a quote chip above the input with an (x) to cancel; Esc
170
+ also dismisses.
171
+ - `<MessageActions>` gains `onQuote?: () => void` — wired in
172
+ `<MessageRow>` to call back to the caller's quote state.
173
+
174
+ ### Added — unread badges on `<ConversationList>`
175
+
176
+ - `<ConversationList unreadCounts>` now accepts a per-conversation
177
+ unread map and renders a small Pulse Coral pill on each row when
178
+ `unread > 0`. Auto-falls-back to `useConversations().unreadCounts`
179
+ when the component runs in uncontrolled mode, so sidebars work
180
+ out of the box with no extra wiring.
181
+
182
+ ### Added — thread pill + copy action
183
+
184
+ - `<MessageRow>` renders a subtle "💬 N replies" pill below any message
185
+ whose `reply_count > 0`. Clicking the pill opens the thread side-pane
186
+ via the existing `onOpenThread` callback. Hidden in `<ThreadView>`
187
+ (threads-within-threads aren't supported in 0.2).
188
+ - `<MessageActions>` gains an optional `onCopy` action. `<MessageRow>`
189
+ wires it to `navigator.clipboard.writeText(message.body)` whenever
190
+ the message has a non-empty body.
191
+
192
+ ### Changed — better error visibility
193
+
194
+ - `<MemberList>` now renders `error.message` under the "Failed to load
195
+ members." headline so callers see the actual cause without opening
196
+ DevTools.
197
+
198
+ ### Added — new components
199
+
200
+ - `<MessageActions>` — hover-triggered popover with react / reply
201
+ (open thread) / edit / delete affordances. Built on `PoolseIcon`
202
+ and reuses the existing `ReactionPicker`.
203
+ - `<EditableMessageBubble>` — extends `MessageBubble` with an
204
+ inline-edit mode (controlled `editing` prop, textarea with
205
+ Enter-to-save / Esc-to-cancel).
206
+ - `<ThreadView>` — side-pane component for thread replies.
207
+ Composes `useThread` + `MessageBubble` + `MessageComposer` with
208
+ the same brand styling as the main view. Includes a root-message
209
+ preview at the top.
210
+
211
+ ### Added — `<ConversationView>` feature toggles (all default ON)
212
+
213
+ - `reactions` — render `<ReactionStrip>` under each message.
214
+ - `mentions` — swap `<MessageComposer>` for `<MentionInput>` when
215
+ the conversation has loaded members.
216
+ - `attachments` — paperclip icon in the composer triggers a file
217
+ picker → presigned upload → send with `attachment_ids`. Inline
218
+ renders attached images / file cards via `<AttachmentPreview>`.
219
+ - `actions` — hover-revealed `<MessageActions>` next to each message,
220
+ with edit/delete only shown for own messages.
221
+ - `threads` — clicking "reply in thread" from a message opens a
222
+ right-side `<ThreadView>`.
223
+ - `readReceipts` — check-double glyph on own messages once another
224
+ member's `last_read_message_id` advances past them. Auto-computed
225
+ from `useMembers`. Now updates in real time via the new
226
+ `member:read` realtime event.
227
+
228
+ Each toggle defaults to `true`, so dropping in
229
+ `<ConversationView conversationId={id} />` gets you the full chat
230
+ surface out of the box. Set any to `false` to slim down the view.
231
+
232
+ ### Added — new props
233
+
234
+ - `<ConversationView onMarkedRead={(convId) => ...}>` — fires once
235
+ per fresh tail after auto-mark-read commits. Pair with
236
+ `useConversations().markConversationRead` to clear a sidebar
237
+ unread badge immediately (before the realtime echo).
238
+
239
+ ## [0.1.2] — 2026-06-01
240
+
241
+ ### Added
242
+
243
+ - `<ConversationList>` gains optional controlled-mode props:
244
+ `conversations`, `loading`, `error`. When passed, the component
245
+ renders from those instead of calling `useConversations()`
246
+ internally. Lets a parent own the conversations list state — useful
247
+ when the host app creates conversations via a custom backend route
248
+ (e.g., the showcase's `/api/conversations`) and needs to push the
249
+ new conversation into the list immediately, without waiting for
250
+ the realtime push. When omitted, auto-fetches as before (no
251
+ breaking change for existing callers).
252
+
253
+ ## [0.1.1] — 2026-06-01
254
+
255
+ ### Fixed
256
+
257
+ - `<ConversationView>` no longer wraps each rendered message in a
258
+ `<div>`. The wrapper was a block-level element that took 100% of
259
+ the flex row width, which pinned every bubble (self + other) to
260
+ the left regardless of `MessageBubble`'s `align-self` rule. Now
261
+ using a `<Fragment>` so the bubble is the direct flex child.
262
+ - Pulls `@poolse/react@^0.1.1` for the matching `useMessages`
263
+ sender_id fix on optimistic sends.
264
+
265
+ ## [0.1.0] — 2026-06-01
266
+
267
+ First publishable release.
268
+
269
+ ### Added
270
+
271
+ - Composed `<ConversationView>` — full chat surface in one drop-in.
272
+ - Individual pieces: `<MessageBubble>`, `<MessageComposer>`,
273
+ `<TypingIndicator>`, `<Avatar>`.
274
+ - Conversation + member panels: `<ConversationList>`, `<MemberList>`.
275
+ - Rich content: `<AttachmentPreview>` (image / file),
276
+ `<ReactionStrip>` + `<ReactionPicker>`, `<MentionInput>`.
277
+ - Brand chrome: `<PoolseIcon>` (41 icons), `<PoolseLogo>` (mark / lockup
278
+ / wordmark / mono), `<PoolseFonts />` (auto-loaded by
279
+ `<ConversationView>`).
280
+ - Full `--poolse-*` CSS variable system mirroring the brand kit:
281
+ colors, type, radii, warm-tinted shadows, light + dark themes.
282
+ - Render-prop escape hatches on every list/conversation component.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Poolse
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Poolse
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.