@poolse/react-ui 3.8.0 → 3.10.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,72 @@ 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.10.0] - 2026-11-23
8
+
9
+ ### Added
10
+
11
+ - Agents in calls: `CallAgentTag` (the Agent badge with "Taking notes" /
12
+ "Listening" / "Speaking"), `InviteAgentMenu`, `WhisperPanel` ("Only you
13
+ see this"), `EscalationCard`, `EscalationList`. `CallVideoGrid` and
14
+ `StagePanel` name agents by their label with the badge (an `agents` prop
15
+ fills in what metadata lacks); agent tiles show no mute icon.
16
+ - `MessageComposer` / `MentionInput`: `formattingToolbar` (MS4), `commands`
17
+ (IN3), the data-loss-prevention dialog with Send anyway (AD6,
18
+ `DlpWarningDialog`); `MentionInput` `groups` (MS9).
19
+ - `PollCard` (MS3), `BlockRenderer` (IN4), `PinsList`, `ForwardDialog`,
20
+ `ForwardedLabel` (MS13), `FilesList` (MS18), `ForumPostList` (MS7),
21
+ `CatchUpCard` (MS20), `TranslatedText` (MS21), `NoteCard` and
22
+ `noteIdFromLink` (NT6).
23
+ - `VoiceRecorder`, `VoiceMessagePlayer`, `VideoMessagePlayer` with 1×,
24
+ 1.5×, 2× and transcripts (MS15, MS16).
25
+ - `MessageActions`: `onTogglePin` / `pinned`, `onForward`, `onTranslate` /
26
+ `translated`, `customEmoji`. `EmojiPicker`, `ReactionStrip`,
27
+ `ReactionPicker` take the workspace's emoji (`EmojiGlyph`).
28
+ - `ThreadView`: Follow button and Also send to channel (`follow`,
29
+ `alsoSendToChannel`, MS19).
30
+
31
+ - Live meetings: `StagePanel`, `QuestionsPanel`, `BreakoutBanner`,
32
+ `BreakoutHostPanel`, `LobbyWaiting`, `LobbyAdmitList`, `CaptionsOverlay`,
33
+ `MarkMomentButton`, `ConnectionIndicator`, `NetworkBanner`,
34
+ `RoomPresence`, `AgendaPanel`, `ReactionsOverlay`, `ReactionBar`,
35
+ `InCallChatPanel` (tags messages with `call_id`), `CaptionsButton`,
36
+ `BackgroundMenu`, `MoveCallHereBar`.
37
+ - `MeetingCard` (RSVP through `PUT /meetings/:id/rsvp` by default, and
38
+ Join) and `formatMeetingTime`.
39
+ - `ConversationView` `sendDefaults`: fields merged into every send.
40
+ - `Whiteboard`, `WhiteboardItemSvg`, `AnnotationOverlay`.
41
+ - `usePictureInPicture` and `CallPictureInPicture` (Document PiP, video
42
+ PiP fallback).
43
+ - Peers: `react-dom`; optional `yjs` and `@livekit/track-processors`.
44
+
45
+ - `AgentBadge`; `Avatar agent`; the badge on `UserName`, `MemberList`,
46
+ `MentionInput` suggestions, sender labels (all layouts) and `ChatHeader`.
47
+ - `ApprovalCard`, `MessageApproval` (under an agent message with
48
+ `agent_meta.approval_id`), `ApprovalList`.
49
+ - `MessageCitations` under agent answers; `ConversationView` /
50
+ `MessageExtrasProvider` `onOpenCitation` (message sources of the
51
+ conversation are focused by default).
52
+ - `SummaryCard` (rendered for `call_summary` messages, live),
53
+ `SummaryMessageRow`, `AskMeetings`, `ClipPlayer` (attachment, `clipId` or a
54
+ range), `RecordingPlayer` (speeds, skip silence, chapters, synced
55
+ transcript); `onOpenMoment(moment: MeetingMoment)`.
56
+
57
+ ## [3.9.0] - 2026-11-22
58
+
59
+ ### Added
60
+
61
+ - `RecordingBanner`, `RecordingIndicator`, `ConsentPrompt` (`onAnswer`,
62
+ `onAccepted` — bring the microphone and camera back — `onDeclined`),
63
+ `RecordingNoticeRow`, `LiveTranscriptPanel`, `TranscriptViewer` (speakers,
64
+ timestamps, search, speaker rename). Same props in `@poolse/react-native`.
65
+ - `MessageRow` renders the `{"kind":"recording"}` system message as a line
66
+ instead of raw JSON (`nameForUserId` names people; `ConversationView`
67
+ passes it from the members), and conversation lists word it in previews.
68
+ - `RoomStage` shows the recording banner, indicator and consent prompt
69
+ (`capture`, default `true`) and can offer a Record control (`allowRecord`).
70
+ - poolse's transcript assistant and the recorder no longer appear in
71
+ `CallVideoGrid` / `RoomStage`.
72
+
7
73
  ## [3.8.0] - 2026-11-21
8
74
 
9
75
  ### 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,131 @@ 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
+
210
+ ## Agents and meetings
211
+
212
+ ```tsx
213
+ <ConversationView
214
+ conversationId={id}
215
+ onOpenCitation={(c, msg) => …} // message sources here are focused by default
216
+ onOpenMoment={(m) => openRecording(m.recordingId, m.recordingMs ?? 0)} // or the transcript at m.startMs
217
+ />
218
+ <ApprovalList /> // everything waiting for your answer
219
+ <AskMeetings onOpenMoment={openMoment} />
220
+ <RecordingPlayer ref={player} recordingId={rec.id} startMs={moment.recordingMs} />
221
+ ```
222
+
223
+ - **Agent badge (AG1).** `<AgentBadge>`; `<Avatar agent>` (rounded square,
224
+ "(agent)" in its label); `UserName`, member rows, mention suggestions,
225
+ sender labels and a DM's header add it by themselves for agents.
226
+ - **Approvals (AG4).** Under an agent message with `agent_meta.approval_id`,
227
+ `<MessageApproval>` shows `<ApprovalCard>` to the person asked: the tool,
228
+ its arguments (first 4, "Show all"), Approve / Deny with an optional
229
+ reason, then Running… / Done / Failed / Denied / Expired. The card follows
230
+ the shared store, so `<ApprovalList>` and other devices stay in step.
231
+ - **Sources (AG5).** `<MessageCitations>` under an answer: numbered links
232
+ (`[n]`), meeting sources with their time.
233
+ - **Summaries (RT6).** `call_summary` messages render as `<SummaryCard>`:
234
+ overview, decisions, action items (assignee's name, else the name said;
235
+ due date or the words used), open questions, the style's sections, key
236
+ moments. Every timed line calls `onOpenMoment` with a `MeetingMoment`.
237
+ It fetches the full summary when the message copy is shortened and
238
+ follows `summary:ready`.
239
+ - **Clips (RT9).** `<ClipPlayer clipId>` ("Cutting the clip…" until
240
+ `clip:ready`), `<ClipPlayer attachment>` for one shared in chat (inline
241
+ when the attachment carries `clip`), or `clip={{ recordingId, startMs,
242
+ endMs }}` for a range.
243
+ - **Playback (RT13).** `<RecordingPlayer recordingId>` — the playback
244
+ endpoint, HTML5 media, 1× / 1.25× / 1.5× / 2×, "Skip silence" (the gaps
245
+ between transcript lines), chapters, the transcript scrolling along (tap a
246
+ line to play from it); expired links renew by themselves. The ref has
247
+ `seek(recordingMs)` and `seekTranscript(startMs)`.
248
+ - Custom layouts wrap rows in `<MessageExtrasProvider value={{ onOpenCitation,
249
+ onOpenMoment, nameForUserId, externalIdForUserId }}>`.
250
+
251
+ ## Live meetings
252
+
253
+ Every piece takes the matching `@poolse/react` hook, so the call screen
254
+ decides the layout:
255
+
256
+ ```tsx
257
+ <StagePanel stage={useStage(convId, callId, me.id)} participants={media.participants} />
258
+ <QuestionsPanel questions={useQuestions(convId, callId)} canModerate={stage.isModerator} />
259
+ <BreakoutBanner breakouts={breakouts} onJoinRoom={joinRoom} onReturn={backToMain} />
260
+ <BreakoutHostPanel breakouts={breakouts} userIds={others} />
261
+ <LobbyAdmitList lobby={useLobby(convId, callId)} />
262
+ <CaptionsOverlay transcript={useLiveTranscript(callId)} />
263
+ <MarkMomentButton moments={useMoments(convId, callId)} />
264
+ <NetworkBanner report={useCallQuality(media.room)} />
265
+ <ConnectionIndicator quality={participant.connectionQuality} />
266
+ <AgendaPanel agenda={useAgenda(convId, callId)} />
267
+ <ReactionsOverlay reactions={reactions.reactions} /> <ReactionBar send={reactions.send} />
268
+ <InCallChatPanel conversationId={convId} callId={callId} />
269
+ <CaptionsButton captions={useCaptions(convId, callId, me.id)} />
270
+ <BackgroundMenu media={media} images={[{ url: '/bg/office.jpg', label: 'Office' }]} />
271
+ <MoveCallHereBar visible={inCallElsewhere(live, me.id, media.status === 'connected')} onMove={move} />
272
+ <RoomPresence call={useRoomPresence().presence[roomId]} /> {/* sidebar */}
273
+ <MeetingCard card={meetingCardOf(msg)!} onJoin={join} /> {/* RSVPs via the server */}
274
+ <Whiteboard board={useWhiteboard(callId, Y, { selfUserId: me.id })} />
275
+ <AnnotationOverlay ink={useScreenAnnotations(media.room, sharer.userId)} />
276
+ ```
277
+
278
+ The guest page shows `<LobbyWaiting status={status} name={guestName} />`
279
+ while `waitInLobby` runs. Keep the call while you work:
280
+ `const pip = usePictureInPicture()`, `pip.open({ video })` from a click,
281
+ and `<CallPictureInPicture pip={pip}>…tiles and controls…</CallPictureInPicture>`
282
+ (Document PiP in Chrome and Edge; elsewhere the browser floats `video`).
283
+
284
+ Optional peers: `yjs` (whiteboard), `@livekit/track-processors`
285
+ (background blur and pictures).
286
+
287
+ ## Agents in calls
288
+
289
+ ```tsx
290
+ const agents = useCallAgents(convId, callId);
291
+ <CallVideoGrid participants={media.participants} agents={agents.agents} /> {/* badge + "Taking notes" */}
292
+ <StagePanel stage={stage} participants={media.participants} agents={agents.agents} />
293
+ <InviteAgentMenu callAgents={agents} /> {/* Take notes / Assist / Remove */}
294
+ <WhisperPanel whisper={useWhisper(callId)} /> {/* "Only you see this" */}
295
+ <EscalationList callId={callId} /> {/* or <EscalationCard escalation={e} /> */}
296
+ <CallAgentTag agent={agent} speaking={participant.speaking} />
297
+ ```
298
+
299
+ An agent is never shown as a person: its label ("Scout", "Jasir's agent"),
300
+ the Agent badge and what it's doing, and no mute icon.
301
+
172
302
  ## Theming
173
303
 
174
304
  Wrap the UI in `PoolseTheme` to use one of the eight built-in themes from
@@ -202,6 +332,22 @@ Or override the `--poolse-*` CSS variables (`--poolse-brand`,
202
332
  - Docs: <https://poolse.dev/docs/sdk/react-ui>
203
333
  - Source: <https://github.com/poolse-hq/js-sdk>
204
334
 
335
+ ## Messaging plus
336
+
337
+ | Component | What |
338
+ | ---------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
339
+ | `MessageComposer` / `MentionInput` `formattingToolbar`, `commands`, `groups` | Markdown toolbar (Mod+B/I/E/K), `/command` suggestions, `@group` suggestions, the DLP dialog |
340
+ | `PollCard` | a poll (feed it `usePoll(message)`) |
341
+ | `BlockRenderer` | interactive blocks: sections, buttons, menus, forms |
342
+ | `PinsList`, `ForwardDialog`, `ForwardedLabel` | pins and forward; `MessageActions` `onTogglePin`, `onForward`, `onTranslate` |
343
+ | `FilesList`, `ForumPostList` | a conversation's files (`useFiles`), a forum's posts |
344
+ | `CatchUpCard`, `TranslatedText`, `NoteCard` | "what did I miss", a translated message, a shared note link |
345
+ | `VoiceRecorder`, `VoiceMessagePlayer`, `VideoMessagePlayer` | voice and video messages, 1×/1.5×/2×, transcripts |
346
+ | `CustomEmojiProvider` (from `@poolse/react`), `EmojiGlyph` | the workspace's own emoji in the picker and reactions |
347
+
348
+ `ThreadView` shows a Follow button and an "Also send to channel" box
349
+ (`follow`, `alsoSendToChannel`).
350
+
205
351
  ## License
206
352
 
207
353
  Licensed under the [poolse SDK License](./LICENSE) from 3.0.0; versions