@poolse/react-native 3.7.1 → 3.9.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 +30 -0
- package/README.md +37 -0
- package/dist/index.cjs +1536 -348
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +203 -4
- package/dist/index.d.ts +203 -4
- package/dist/index.js +1529 -351
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,36 @@ All notable changes to `@poolse/react-native` are documented here.
|
|
|
4
4
|
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/);
|
|
5
5
|
versions follow [semver](https://semver.org).
|
|
6
6
|
|
|
7
|
+
## [3.9.0] - 2026-11-22
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `RecordingBanner`, `RecordingIndicator`, `ConsentPrompt`,
|
|
12
|
+
`RecordingNoticeRow`, `LiveTranscriptPanel`, `TranscriptViewer` — the same
|
|
13
|
+
props as `@poolse/react-ui` (`style` in place of `className`).
|
|
14
|
+
- `MessageRow` renders the `{"kind":"recording"}` system message as a line
|
|
15
|
+
instead of raw JSON (`nameForUserId`), and `ConversationList` /
|
|
16
|
+
`PoolseInbox` word it in previews.
|
|
17
|
+
|
|
18
|
+
## [3.8.0] - 2026-11-21
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- `useBackgroundClients(clients, active)` / `applyBackground`: only the
|
|
23
|
+
workspace on screen keeps its socket; all close in the background.
|
|
24
|
+
- `<SendStatus>` under unsent messages (Retry / Delete), `<EmptyState>`
|
|
25
|
+
defaults for the conversation list (and `query` / `noResultsState`), an
|
|
26
|
+
empty conversation and an empty thread.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- Drafts are per client and namespaced (the pre-3.8 key is moved), cleared
|
|
31
|
+
by `destroy({ clearStorage: true })`.
|
|
32
|
+
- `useAppStateLifecycle` uses `client.setBackground`.
|
|
33
|
+
- Message rows read as "Ana: text" with a "Message actions" accessibility
|
|
34
|
+
action (they all read "Message actions" before); reaction chips, header,
|
|
35
|
+
composer buttons and the text input have roles and labels.
|
|
36
|
+
|
|
7
37
|
## [3.7.1] - 2026-11-21
|
|
8
38
|
|
|
9
39
|
### Fixed
|
package/README.md
CHANGED
|
@@ -156,6 +156,33 @@ background; `useAppStateLifecycle({ presence: false })` leaves that out.
|
|
|
156
156
|
`useAppStatePresence()` does only that part, and `<PoolseInbox>` does it by
|
|
157
157
|
default (`trackActivity={false}` to stop).
|
|
158
158
|
|
|
159
|
+
## Several workspaces: `useBackgroundClients()`
|
|
160
|
+
|
|
161
|
+
With more than one workspace signed in, keep one `Poolse` per workspace and
|
|
162
|
+
call this once, outside the providers, instead of `useAppStateLifecycle`:
|
|
163
|
+
|
|
164
|
+
```tsx
|
|
165
|
+
useBackgroundClients(clients, current, { keepConnected: inCall ? [callClient] : [] });
|
|
166
|
+
// Push handler: connect the push's workspace for 30 s.
|
|
167
|
+
clientFor(data.tenant_id)?.wake();
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Only the workspace on screen keeps its socket; the others close theirs
|
|
171
|
+
(caches stay warm in memory, so switching is instant) and reconnect when
|
|
172
|
+
switched to. With the app in the background every socket closes. Presence
|
|
173
|
+
follows the app state on the client on screen (`presence: false` to skip).
|
|
174
|
+
`useAppStateLifecycle` now uses `setBackground` too. Unread totals for the
|
|
175
|
+
others: `useUnreadTotals(client)` refreshes when a client is woken or
|
|
176
|
+
foregrounded.
|
|
177
|
+
|
|
178
|
+
Drafts are kept per client (namespaced by server + user) and removed by
|
|
179
|
+
`client.destroy({ clearStorage: true })`. Unsent messages show "Waiting for
|
|
180
|
+
network…" or "Not sent" with Retry / Delete. `ConversationList`,
|
|
181
|
+
`ConversationView` and `ThreadView` default to an `EmptyState` that says what
|
|
182
|
+
to do next (`ConversationList query` / `noResultsState` for search). Message
|
|
183
|
+
rows read as "Ana: text" to VoiceOver/TalkBack with a "Message actions"
|
|
184
|
+
accessibility action; reaction chips say "👍 3, you reacted".
|
|
185
|
+
|
|
159
186
|
## `ConversationList`
|
|
160
187
|
|
|
161
188
|
```tsx
|
|
@@ -193,6 +220,16 @@ give it `hasMore`, `loadingMore` and `onLoadMore`.
|
|
|
193
220
|
`PoolseLogo`, `Primitives`.
|
|
194
221
|
- Call screen: `CallControlButton`, `CallAvatar`, `AudioRouteSheet`,
|
|
195
222
|
`callColors`, `useCallDuration`.
|
|
223
|
+
- Recording and transcripts: `RecordingBanner`, `RecordingIndicator`,
|
|
224
|
+
`ConsentPrompt`, `RecordingNoticeRow` (rendered by `MessageRow`),
|
|
225
|
+
`LiveTranscriptPanel`, `TranscriptViewer` — the same props as
|
|
226
|
+
`@poolse/react-ui`, with `style` for `className`. Drive them with
|
|
227
|
+
`useRecording` / `useLiveTranscript` / `useTranscript` from
|
|
228
|
+
`@poolse/react`. Calls on phones run in the native call core: after
|
|
229
|
+
`ConsentPrompt`'s `onAccepted`, turn the microphone (and camera) back on
|
|
230
|
+
there — the server lets you publish again, but the tracks were
|
|
231
|
+
unpublished. Hide participants whose identity starts with `poolse:`
|
|
232
|
+
(`isServiceParticipant`).
|
|
196
233
|
|
|
197
234
|
The names follow `@poolse/react-ui`, but the props differ in places (for
|
|
198
235
|
example `ThreadView` needs `visible` and `onClose`, and there is no
|