@poolse/react-ui 3.9.0 → 3.10.1

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,56 @@ 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
+
7
57
  ## [3.9.0] - 2026-11-22
8
58
 
9
59
  ### Added
package/README.md CHANGED
@@ -207,6 +207,98 @@ and renames speakers for people who were in the call (others get an
207
207
  explanation). The recording notice in the chat is a centred line like a call
208
208
  log, naming people through `MessageRow`'s `nameForUserId`.
209
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
+
210
302
  ## Theming
211
303
 
212
304
  Wrap the UI in `PoolseTheme` to use one of the eight built-in themes from
@@ -240,6 +332,22 @@ Or override the `--poolse-*` CSS variables (`--poolse-brand`,
240
332
  - Docs: <https://poolse.dev/docs/sdk/react-ui>
241
333
  - Source: <https://github.com/poolse-hq/js-sdk>
242
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
+
243
351
  ## License
244
352
 
245
353
  Licensed under the [poolse SDK License](./LICENSE) from 3.0.0; versions