@poolse/react-native 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,66 @@ 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.10.0] - 2026-11-23
8
+
9
+ ### Added
10
+
11
+ - Agents in calls: `CallAgentTag`, `InviteAgentMenu`, `WhisperPanel`
12
+ ("Only you see this"), `EscalationCard`, `EscalationList` — the same props
13
+ as @poolse/react-ui. `StagePanel` takes `agents` (and
14
+ `MeetingParticipant.agent` / `.speaking`) and lists them with the badge.
15
+ - `MessageComposer` / `MentionInput`: `formattingToolbar`, `commands`,
16
+ `groups`, the DLP warning (`DlpWarningSheet`); `FormattingToolbar`,
17
+ `CommandSuggestions`.
18
+ - `PollCard`, `BlockRenderer`, `PinsList`, `ForwardSheet`, `FilesList`,
19
+ `ForumPostList`, `CatchUpCard`, `TranslatedText`, `NoteCard`,
20
+ `VoiceRecorder` (hold to record), `VoiceMessagePlayer`,
21
+ `VideoMessagePlayer` — media through the `MediaPlayback` and
22
+ `AudioRecorderAdapter` adapters (expo-audio / expo-video in the app).
23
+ - `MessageActions`: pin, forward, translate. `ThreadView`: `follow`,
24
+ `alsoSendToChannel`. Custom emoji in `EmojiPicker` and `ReactionStrip`
25
+ (`EmojiGlyph`).
26
+
27
+ - Live meetings on the final server contract: guests and phones named by
28
+ the call, `RoomPresence` with `useRoomPresence` entries (guests and phones
29
+ counted), `MeetingCard` RSVPs through `poolse.live.meetings.rsvp` by
30
+ default (`onRsvp` overrides, `false` hides).
31
+ - The same agents and meetings components as `@poolse/react-ui`
32
+ (`AgentBadge`, `AgentBadgeInline`, `ApprovalCard`, `MessageApproval`,
33
+ `ApprovalList`, `MessageCitations`, `SummaryCard`, `AskMeetings`,
34
+ `ClipPlayer`, `RecordingPlayer`) and `Avatar agent`, with the badge on
35
+ names, members, mentions, senders and the DM header.
36
+ - `renderMedia` (`PoolseMediaProps`): plays recordings and clips through the
37
+ app's own player (README: an expo-video adapter); no new peer dependency.
38
+ - `ConversationView` `onOpenCitation`, `onOpenMoment`, `renderMedia`.
39
+ - Live meeting components (docs/MEETINGS.md; each takes the matching
40
+ `@poolse/react` hook): `StagePanel` (speakers, audience, raise hand, Bring
41
+ up / Move to audience), `QuestionsPanel` (Q&A with upvotes, anonymous,
42
+ Answered / Dismiss), `BreakoutBanner` (room, countdown, Join room / Return
43
+ to main), `LobbyWaiting` (the guest's waiting screen) and `LobbyAdmitList`
44
+ (Admit / Deny / Admit all), `MarkMomentButton`, `AgendaPanel` (owner,
45
+ minutes, check off, over-time nudge), `RoomPresence` (who's in a room, for
46
+ sidebars), `MeetingCard` and `MeetingCardMessageRow` (Accept / Maybe /
47
+ Decline, Join).
48
+ - Call overlays: `CaptionsOverlay` (live captions from the transcript),
49
+ `ReactionsOverlay` and `ReactionPickerBar`, `ConnectionIndicator` (signal
50
+ bars for web or native quality), `NetworkBanner` (plain-language network
51
+ problems), `WhiteboardView` (view, or simple pen drawing with a model) and
52
+ `AnnotationOverlay` (pointer and drawing on a shared screen, view only).
53
+ - Helpers: `formatCountdown`, `captionLines`, `avatarOverflow`,
54
+ `overrunText`, `meetingTimeText`, `rsvpSummary`.
55
+
56
+ ## [3.9.0] - 2026-11-22
57
+
58
+ ### Added
59
+
60
+ - `RecordingBanner`, `RecordingIndicator`, `ConsentPrompt`,
61
+ `RecordingNoticeRow`, `LiveTranscriptPanel`, `TranscriptViewer` — the same
62
+ props as `@poolse/react-ui` (`style` in place of `className`).
63
+ - `MessageRow` renders the `{"kind":"recording"}` system message as a line
64
+ instead of raw JSON (`nameForUserId`), and `ConversationList` /
65
+ `PoolseInbox` word it in previews.
66
+
7
67
  ## [3.8.0] - 2026-11-21
8
68
 
9
69
  ### Added
package/README.md CHANGED
@@ -220,11 +220,162 @@ give it `hasMore`, `loadingMore` and `onLoadMore`.
220
220
  `PoolseLogo`, `Primitives`.
221
221
  - Call screen: `CallControlButton`, `CallAvatar`, `AudioRouteSheet`,
222
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`).
233
+
234
+ - Agents and meetings: `AgentBadge`, `ApprovalCard`, `MessageApproval`,
235
+ `ApprovalList`, `MessageCitations`, `SummaryCard`, `AskMeetings`,
236
+ `ClipPlayer`, `RecordingPlayer` — the same props as `@poolse/react-ui`.
237
+ The approval card shows under an agent message with
238
+ `agent_meta.approval_id`; `call_summary` messages render as cards;
239
+ `ConversationView` takes `onOpenCitation`, `onOpenMoment(moment)` and
240
+ `renderMedia`.
241
+
242
+ **Playing recordings and clips.** The package ships no media player. Pass a
243
+ `renderMedia` adapter (to `ConversationView`, `MessageExtrasProvider`,
244
+ `ClipPlayer` or `RecordingPlayer`) over the player your app uses. With
245
+ `expo-video`:
246
+
247
+ ```tsx
248
+ import { useVideoPlayer, VideoView } from 'expo-video';
249
+ import { useEffect } from 'react';
250
+ import type { PoolseMediaProps } from '@poolse/react-native';
251
+
252
+ function ExpoMedia({
253
+ uri,
254
+ kind,
255
+ paused,
256
+ rate,
257
+ seek,
258
+ onProgress,
259
+ onLoad,
260
+ onEnd,
261
+ style,
262
+ }: PoolseMediaProps) {
263
+ const player = useVideoPlayer(uri, (p) => {
264
+ p.timeUpdateEventInterval = 0.25;
265
+ });
266
+ useEffect(() => (paused ? player.pause() : player.play()), [player, paused]);
267
+ useEffect(() => void (player.playbackRate = rate), [player, rate]);
268
+ useEffect(() => void (seek && (player.currentTime = seek.ms / 1000)), [player, seek?.nonce]);
269
+ useEffect(() => {
270
+ const subs = [
271
+ player.addListener('timeUpdate', (e) => onProgress(e.currentTime * 1000)),
272
+ player.addListener('sourceLoad', (e) => onLoad(e.duration * 1000)),
273
+ player.addListener('playToEnd', onEnd),
274
+ ];
275
+ return () => subs.forEach((s) => s.remove());
276
+ }, [player, onProgress, onLoad, onEnd]);
277
+ return kind === 'video' ? (
278
+ <VideoView player={player} style={style} nativeControls={false} />
279
+ ) : null;
280
+ }
281
+
282
+ <ConversationView conversationId={id} renderMedia={(p) => <ExpoMedia {...p} />} />;
283
+ ```
284
+
285
+ Without an adapter a clip shows its time range and the recording player its
286
+ chapters and transcript.
223
287
 
224
288
  The names follow `@poolse/react-ui`, but the props differ in places (for
225
289
  example `ThreadView` needs `visible` and `onClose`, and there is no
226
290
  `EditableMessageBubble`); see the docs for each component's props.
227
291
 
292
+ ## Live meetings
293
+
294
+ The in-call pieces for stages, Q&A, breakouts, the lobby, the agenda and
295
+ meeting cards. Each takes a `@poolse/react` hook's result, so it works
296
+ with the JS `CallRoom` (`useCallRoom`) and with `@poolse/native` alike.
297
+
298
+ ```tsx
299
+ const stage = useStage(conversationId, callId, me.id);
300
+ const questions = useQuestions(conversationId, callId);
301
+ const lobby = useLobby(conversationId, callId);
302
+
303
+ <StagePanel stage={stage} participants={people} selfUserId={me.id} />
304
+ <QuestionsPanel questions={questions} canModerate={stage.isModerator} />
305
+ <LobbyAdmitList lobby={lobby} />
306
+ <BreakoutBanner breakouts={useBreakouts(conversationId, callId)} onJoined={connect} />
307
+ <AgendaPanel agenda={useAgenda(conversationId, callId)} canEdit />
308
+ <MarkMomentButton moments={useMoments(conversationId, callId)} />
309
+ ```
310
+
311
+ `participants` is `{ userId, name?, guest?, avatarUrl? }[]` from your call
312
+ roster; names fall back to the `MessageExtrasProvider`'s `nameForUserId`,
313
+ then "Someone" — never a raw id. Guests carry a Guest mark.
314
+
315
+ A guest waiting to be let in (no session; `waitInLobby` from
316
+ `@poolse/sdk`):
317
+
318
+ ```tsx
319
+ <LobbyWaiting name={guestName} status={status} title="Weekly sync" onLeave={leave} />
320
+ ```
321
+
322
+ Overlays for the call screen:
323
+
324
+ ```tsx
325
+ const t = useLiveTranscript(callId, { enabled: captionsOn });
326
+ {captionsOn && <CaptionsOverlay segments={t.segments} />}
327
+
328
+ const reactions = useCallReactions(media.room); // JS CallRoom only
329
+ <ReactionsOverlay reactions={reactions.reactions} />
330
+ <ReactionPickerBar onReact={reactions.send} />
331
+
332
+ <ConnectionIndicator quality={participant.connectionQuality} />
333
+ <NetworkBanner issues={useCallQuality(media.room)?.issues ?? []} />
334
+ // @poolse/native: diagnoseCallNetwork({ quality: snap.connectionQuality,
335
+ // reconnecting: snap.phase === 'reconnecting' })
336
+ ```
337
+
338
+ The whiteboard and screen annotations are view-only on phones by default
339
+ (`WhiteboardView` draws pen strokes when given `model` and `readOnly={false}`):
340
+
341
+ ```tsx
342
+ import * as Y from 'yjs';
343
+ const board = useWhiteboard(callId, Y, { selfUserId: me.id });
344
+ <WhiteboardView items={board.items} />
345
+
346
+ <View>
347
+ <CallVideoView source="screen" fit="contain" />
348
+ <AnnotationOverlay state={useScreenAnnotations(media.room, sharerId).state} />
349
+ </View>
350
+ ```
351
+
352
+ Meeting invites in chat: `meetingCardOf(msg)` reads the card; RSVPs go to
353
+ `PUT /meetings/:id/rsvp` through the provider's client (pass `onRsvp` to
354
+ record them elsewhere), and the card follows the server's restatement of
355
+ the message. Guests and phones are named by the call ("Phone ···1234"),
356
+ never by id; `RoomPresence` takes `useRoomPresence().presence[id]`.
357
+
358
+ ```tsx
359
+ <MeetingCardMessageRow msg={msg} onJoin={(c) => openRoom(c.roomConversationId)} />
360
+ ```
361
+
362
+ ## Agents in calls
363
+
364
+ Same props as @poolse/react-ui:
365
+
366
+ ```tsx
367
+ const agents = useCallAgents(conversationId, callId);
368
+ <StagePanel stage={stage} participants={people} agents={agents.agents} selfUserId={me.id} />
369
+ <InviteAgentMenu callAgents={agents} />
370
+ <WhisperPanel whisper={useWhisper(callId)} />
371
+ <EscalationList callId={callId} />
372
+ ```
373
+
374
+ With `@poolse/native`, a roster entry with `isAgent` is an agent: name it
375
+ `agentLabel` and show `<CallAgentTag agent={agents.agentFor(p.userId) ??
376
+ { mode: p.agentMode ?? 'notetaker', status: 'live', speaking: false }}
377
+ speaking={p.speaking} />` — never a camera placeholder.
378
+
228
379
  ## Layouts
229
380
 
230
381
  ```tsx
@@ -284,6 +435,36 @@ returns that original shape.
284
435
  - Docs: <https://poolse.dev/docs/sdk/react-native>
285
436
  - Source: <https://github.com/poolse-hq/js-sdk>
286
437
 
438
+ ## Messaging plus
439
+
440
+ The same components as `@poolse/react-ui` (`PollCard`, `BlockRenderer`,
441
+ `PinsList`, `ForwardSheet`, `FilesList`, `ForumPostList`, `CatchUpCard`,
442
+ `TranslatedText`, `NoteCard`, the composer's `formattingToolbar`,
443
+ `commands` and `groups`). Media have no dependency here: build the adapters
444
+ on your media library.
445
+
446
+ ```tsx
447
+ import { useAudioPlayer, useAudioPlayerStatus } from 'expo-audio';
448
+
449
+ function Voice({ url, attachment }) {
450
+ const p = useAudioPlayer(url);
451
+ const st = useAudioPlayerStatus(p);
452
+ const player = {
453
+ playing: st.playing,
454
+ positionMs: st.currentTime * 1000,
455
+ durationMs: st.duration * 1000,
456
+ play: () => p.play(),
457
+ pause: () => p.pause(),
458
+ seek: (ms) => p.seekTo(ms / 1000),
459
+ setRate: (r) => p.setPlaybackRate(r),
460
+ };
461
+ return <VoiceMessagePlayer player={player} attachment={attachment} />;
462
+ }
463
+ ```
464
+
465
+ `VoiceRecorder` takes an `AudioRecorderAdapter` (`start`, `stop` →
466
+ `{uri, durationMs, mimeType}`, `cancel`): hold to record, release to send.
467
+
287
468
  ## License
288
469
 
289
470
  Licensed under the [poolse SDK License](./LICENSE) from 3.0.0; versions