@poolse/react-ui 3.8.0 → 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 CHANGED
@@ -4,6 +4,22 @@ 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
+ ## [3.9.0] - 2026-11-22
8
+
9
+ ### Added
10
+
11
+ - `RecordingBanner`, `RecordingIndicator`, `ConsentPrompt` (`onAnswer`,
12
+ `onAccepted` — bring the microphone and camera back — `onDeclined`),
13
+ `RecordingNoticeRow`, `LiveTranscriptPanel`, `TranscriptViewer` (speakers,
14
+ timestamps, search, speaker rename). Same props in `@poolse/react-native`.
15
+ - `MessageRow` renders the `{"kind":"recording"}` system message as a line
16
+ instead of raw JSON (`nameForUserId` names people; `ConversationView`
17
+ passes it from the members), and conversation lists word it in previews.
18
+ - `RoomStage` shows the recording banner, indicator and consent prompt
19
+ (`capture`, default `true`) and can offer a Record control (`allowRecord`).
20
+ - poolse's transcript assistant and the recorder no longer appear in
21
+ `CallVideoGrid` / `RoomStage`.
22
+
7
23
  ## [3.8.0] - 2026-11-21
8
24
 
9
25
  ### Added
package/README.md CHANGED
@@ -161,7 +161,12 @@ preview>` draws one on its own.
161
161
  - Lists: `ConversationList`, `MemberList`.
162
162
  - Reactions and emoji: `ReactionStrip`, `ReactionPicker`, `EmojiPicker`.
163
163
  - Rooms and calls: `RoomJoinBar`, `RoomStage` (both take `useRoom()` from
164
- `@poolse/react`), `CallVideoGrid`, `CallControlButton`, `CallDeviceMenu`.
164
+ `@poolse/react`; `RoomStage` shows recording state and the consent prompt
165
+ — `capture`, default on — and a Record control with `allowRecord`),
166
+ `CallVideoGrid`, `CallControlButton`, `CallDeviceMenu`.
167
+ - Recording and transcripts: `RecordingBanner`, `RecordingIndicator`,
168
+ `ConsentPrompt`, `RecordingNoticeRow` (rendered by `MessageRow`),
169
+ `LiveTranscriptPanel`, `TranscriptViewer`. See below.
165
170
  - Identity and brand: `Avatar`, `PresenceBadge`, `UserName`, `useDisplayName`, `PoolseIcon`,
166
171
  `PoolseLogo`, `PoolseFonts`, `usePoolseFonts`.
167
172
  - Theme: `PoolseTheme`, `useTheme`, `useSystemColorScheme`.
@@ -169,6 +174,39 @@ preview>` draws one on its own.
169
174
  Every `labelFor` / `avatarFor` takes your user id (`external_id`), except on
170
175
  `CallVideoGrid` and `RoomStage`, where it takes the poolse user id.
171
176
 
177
+ ## Recording, consent and transcripts
178
+
179
+ ```tsx
180
+ const rec = useRecording(call.id, call.conversation_id, call);
181
+ const media = useCallRoom(call.conversation_id, { livekit });
182
+
183
+ <RecordingBanner
184
+ recording={rec.active}
185
+ transcribing={!!rec.transcription?.active}
186
+ mode={rec.recording?.mode}
187
+ consentRequired={rec.consentRequired}
188
+ myConsent={rec.myConsent}
189
+ onStop={() => void rec.stop()}
190
+ />
191
+ {rec.needsConsent && (
192
+ <ConsentPrompt
193
+ recording={rec.active}
194
+ transcribing={!!rec.transcription?.active}
195
+ onAnswer={rec.consent}
196
+ onAccepted={() => void media.republish()} // CallRoom also does it by itself
197
+ />
198
+ )}
199
+ <LiveTranscriptPanel callId={call.id} onClose={…} />
200
+ <TranscriptViewer callId={pastCallId} onSeek={(ms) => …} />
201
+ ```
202
+
203
+ `ConsentPrompt` fills the nearest positioned ancestor with a scrim
204
+ (`overlay={false}` for the card alone). `TranscriptViewer` searches within the
205
+ transcript (accent- and case-insensitive, Enter / Shift+Enter between hits)
206
+ and renames speakers for people who were in the call (others get an
207
+ explanation). The recording notice in the chat is a centred line like a call
208
+ log, naming people through `MessageRow`'s `nameForUserId`.
209
+
172
210
  ## Theming
173
211
 
174
212
  Wrap the UI in `PoolseTheme` to use one of the eight built-in themes from