@poolse/react-ui 2.0.5 → 2.0.7
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 +17 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -112,10 +112,19 @@ If you want to keep most of the default behavior, render `<MessageRow>` yourself
|
|
|
112
112
|
|
|
113
113
|
### Composed surfaces
|
|
114
114
|
|
|
115
|
-
| Component | What
|
|
116
|
-
| -------------------- |
|
|
117
|
-
| `<
|
|
118
|
-
| `<
|
|
115
|
+
| Component | What |
|
|
116
|
+
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
117
|
+
| `<PoolseInbox>` | Full inbox shell — two-column side-by-side list + detail on wide viewports, push-pane on ≤720px. Imperative ref API for `open`, `openDirect`, `openGroup`, `promptNewChat`, `promptNewGroup`, `close`. Built-in user picker + group-details sheet when a `users` directory is provided. |
|
|
118
|
+
| `<ConversationView>` | Full chat (above) — `useMessages` + `useMembers` + `useTyping` + composer + thread pane wired together. |
|
|
119
|
+
| `<ChatHeader>` | Standalone title bar — direct chats resolve the OTHER member's name + avatar via `labelFor` / `avatarFor`, groups show member count, presence-driven green dot. Optional `onBack`, `onPress`, `onMembersPress`, plus a free-form `rightSlot` for custom actions (e.g. an "Invite" button). |
|
|
120
|
+
| `<ThreadView>` | The right-side reply pane. `useThread`-driven; close button + Esc + drag-drop. Used internally by `<ConversationView>`; export it for custom layouts. |
|
|
121
|
+
|
|
122
|
+
### Sheets / modals
|
|
123
|
+
|
|
124
|
+
| Component | What |
|
|
125
|
+
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
126
|
+
| `<UserPickerSheet>` | Modal for picking a direct-chat target or a group's members. `mode: 'single'` is one-tap-to-start, `mode: 'group'` adds a name input + multi-select. Accepts an `InboxUser` directory. |
|
|
127
|
+
| `<GroupDetailsSheet>` | Modal showing a group's name, avatar, and the existing `<MemberList>` roster with presence dots. Optional `footer` slot for "Leave group" / "Invite" actions. |
|
|
119
128
|
|
|
120
129
|
### Message surface
|
|
121
130
|
|
|
@@ -143,10 +152,10 @@ If you want to keep most of the default behavior, render `<MessageRow>` yourself
|
|
|
143
152
|
|
|
144
153
|
### Conversation roster
|
|
145
154
|
|
|
146
|
-
| Component | What
|
|
147
|
-
| -------------------- |
|
|
148
|
-
| `<ConversationList>` | Sidebar list of the user's conversations. Avatar + name +
|
|
149
|
-
| `<MemberList>` | Roster for one conversation. Role badges, online dot, optional remove button gated by a `canRemove(membership)` predicate.
|
|
155
|
+
| Component | What |
|
|
156
|
+
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
157
|
+
| `<ConversationList>` | Sidebar list of the user's conversations. Avatar + name + `last_message_preview` + timestamp + unread pill. Direct rows resolve the other member's name/avatar via `labelFor` / `avatarFor` (the same resolvers `<ChatHeader>` and `<PoolseInbox>` take), so a customer can wire one mapping everywhere. Controlled mode: pass `conversations`/`loading`/`error` to render from external state instead of `useConversations()`. |
|
|
158
|
+
| `<MemberList>` | Roster for one conversation. Role badges, online dot, optional remove button gated by a `canRemove(membership)` predicate. |
|
|
150
159
|
|
|
151
160
|
### Reactions
|
|
152
161
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poolse/react-ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Plug-and-play React components for poolse — realtime chat infrastructure. Brand-aligned defaults, CSS-variable theming, render-prop escape hatches.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"react-markdown": "^9.0.1",
|
|
48
48
|
"remark-gfm": "^4.0.0",
|
|
49
|
-
"@poolse/
|
|
50
|
-
"@poolse/
|
|
49
|
+
"@poolse/react": "2.0.7",
|
|
50
|
+
"@poolse/sdk": "2.0.7"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": ">=18"
|