@poolse/react-ui 0.1.0 → 0.2.0-alpha.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/CHANGELOG.md +69 -0
- package/dist/index.cjs +887 -388
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +87 -33
- package/dist/index.d.ts +87 -33
- package/dist/index.js +887 -391
- package/dist/index.js.map +1 -1
- package/dist/styles.css +415 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,75 @@ All notable changes to `@poolse/react-ui` are documented here. Format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
|
|
5
5
|
[semver](https://semver.org).
|
|
6
6
|
|
|
7
|
+
## [0.2.0] — 2026-06-01
|
|
8
|
+
|
|
9
|
+
### Added — new components
|
|
10
|
+
|
|
11
|
+
- `<MessageActions>` — hover-triggered popover with react / reply
|
|
12
|
+
(open thread) / edit / delete affordances. Built on `PoolseIcon`
|
|
13
|
+
and reuses the existing `ReactionPicker`.
|
|
14
|
+
- `<EditableMessageBubble>` — extends `MessageBubble` with an
|
|
15
|
+
inline-edit mode (controlled `editing` prop, textarea with
|
|
16
|
+
Enter-to-save / Esc-to-cancel).
|
|
17
|
+
- `<ThreadView>` — side-pane component for thread replies.
|
|
18
|
+
Composes `useThread` + `MessageBubble` + `MessageComposer` with
|
|
19
|
+
the same brand styling as the main view. Includes a root-message
|
|
20
|
+
preview at the top.
|
|
21
|
+
|
|
22
|
+
### Added — `<ConversationView>` feature toggles (all default ON)
|
|
23
|
+
|
|
24
|
+
- `reactions` — render `<ReactionStrip>` under each message.
|
|
25
|
+
- `mentions` — swap `<MessageComposer>` for `<MentionInput>` when
|
|
26
|
+
the conversation has loaded members.
|
|
27
|
+
- `attachments` — paperclip icon in the composer triggers a file
|
|
28
|
+
picker → presigned upload → send with `attachment_ids`. Inline
|
|
29
|
+
renders attached images / file cards via `<AttachmentPreview>`.
|
|
30
|
+
- `actions` — hover-revealed `<MessageActions>` next to each message,
|
|
31
|
+
with edit/delete only shown for own messages.
|
|
32
|
+
- `threads` — clicking "reply in thread" from a message opens a
|
|
33
|
+
right-side `<ThreadView>`.
|
|
34
|
+
- `readReceipts` — check-double glyph on own messages once another
|
|
35
|
+
member's `last_read_message_id` advances past them. Auto-computed
|
|
36
|
+
from `useMembers`. Now updates in real time via the new
|
|
37
|
+
`member:read` realtime event.
|
|
38
|
+
|
|
39
|
+
Each toggle defaults to `true`, so dropping in
|
|
40
|
+
`<ConversationView conversationId={id} />` gets you the full chat
|
|
41
|
+
surface out of the box. Set any to `false` to slim down the view.
|
|
42
|
+
|
|
43
|
+
### Added — new props
|
|
44
|
+
|
|
45
|
+
- `<ConversationView onMarkedRead={(convId) => ...}>` — fires once
|
|
46
|
+
per fresh tail after auto-mark-read commits. Pair with
|
|
47
|
+
`useConversations().markConversationRead` to clear a sidebar
|
|
48
|
+
unread badge immediately (before the realtime echo).
|
|
49
|
+
|
|
50
|
+
## [0.1.2] — 2026-06-01
|
|
51
|
+
|
|
52
|
+
### Added
|
|
53
|
+
|
|
54
|
+
- `<ConversationList>` gains optional controlled-mode props:
|
|
55
|
+
`conversations`, `loading`, `error`. When passed, the component
|
|
56
|
+
renders from those instead of calling `useConversations()`
|
|
57
|
+
internally. Lets a parent own the conversations list state — useful
|
|
58
|
+
when the host app creates conversations via a custom backend route
|
|
59
|
+
(e.g., the showcase's `/api/conversations`) and needs to push the
|
|
60
|
+
new conversation into the list immediately, without waiting for
|
|
61
|
+
the realtime push. When omitted, auto-fetches as before (no
|
|
62
|
+
breaking change for existing callers).
|
|
63
|
+
|
|
64
|
+
## [0.1.1] — 2026-06-01
|
|
65
|
+
|
|
66
|
+
### Fixed
|
|
67
|
+
|
|
68
|
+
- `<ConversationView>` no longer wraps each rendered message in a
|
|
69
|
+
`<div>`. The wrapper was a block-level element that took 100% of
|
|
70
|
+
the flex row width, which pinned every bubble (self + other) to
|
|
71
|
+
the left regardless of `MessageBubble`'s `align-self` rule. Now
|
|
72
|
+
using a `<Fragment>` so the bubble is the direct flex child.
|
|
73
|
+
- Pulls `@poolse/react@^0.1.1` for the matching `useMessages`
|
|
74
|
+
sender_id fix on optimistic sends.
|
|
75
|
+
|
|
7
76
|
## [0.1.0] — 2026-06-01
|
|
8
77
|
|
|
9
78
|
First publishable release.
|