@poolse/react-native 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,69 @@ 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.1] - 2026-11-23
8
+
9
+ ### Added
10
+
11
+ - `useNativeBreakouts(conversationId, callId, { moveToRoom })` (CL5):
12
+ `useBreakouts` that moves the @poolse/native call into your breakout
13
+ room as the split opens and back as it closes (`auto`, default on);
14
+ `inBreakout`, `joinRoom`, `returnToMainRoom`. `BreakoutBanner` takes it
15
+ and uses it for Join room / Return to main.
16
+ - `AnnotationOverlay` draws (CL4): `annotations` (from
17
+ `useScreenAnnotations`) with `drawing` and `color` make a finger draw
18
+ lines everyone in the call sees. With @poolse/native's `callData` the
19
+ overlay and `useCallReactions` work on phones.
20
+
21
+ ## [3.10.0] - 2026-11-23
22
+
23
+ ### Added
24
+
25
+ - Agents in calls: `CallAgentTag`, `InviteAgentMenu`, `WhisperPanel`
26
+ ("Only you see this"), `EscalationCard`, `EscalationList` — the same props
27
+ as @poolse/react-ui. `StagePanel` takes `agents` (and
28
+ `MeetingParticipant.agent` / `.speaking`) and lists them with the badge.
29
+ - `MessageComposer` / `MentionInput`: `formattingToolbar`, `commands`,
30
+ `groups`, the DLP warning (`DlpWarningSheet`); `FormattingToolbar`,
31
+ `CommandSuggestions`.
32
+ - `PollCard`, `BlockRenderer`, `PinsList`, `ForwardSheet`, `FilesList`,
33
+ `ForumPostList`, `CatchUpCard`, `TranslatedText`, `NoteCard`,
34
+ `VoiceRecorder` (hold to record), `VoiceMessagePlayer`,
35
+ `VideoMessagePlayer` — media through the `MediaPlayback` and
36
+ `AudioRecorderAdapter` adapters (expo-audio / expo-video in the app).
37
+ - `MessageActions`: pin, forward, translate. `ThreadView`: `follow`,
38
+ `alsoSendToChannel`. Custom emoji in `EmojiPicker` and `ReactionStrip`
39
+ (`EmojiGlyph`).
40
+
41
+ - Live meetings on the final server contract: guests and phones named by
42
+ the call, `RoomPresence` with `useRoomPresence` entries (guests and phones
43
+ counted), `MeetingCard` RSVPs through `poolse.live.meetings.rsvp` by
44
+ default (`onRsvp` overrides, `false` hides).
45
+ - The same agents and meetings components as `@poolse/react-ui`
46
+ (`AgentBadge`, `AgentBadgeInline`, `ApprovalCard`, `MessageApproval`,
47
+ `ApprovalList`, `MessageCitations`, `SummaryCard`, `AskMeetings`,
48
+ `ClipPlayer`, `RecordingPlayer`) and `Avatar agent`, with the badge on
49
+ names, members, mentions, senders and the DM header.
50
+ - `renderMedia` (`PoolseMediaProps`): plays recordings and clips through the
51
+ app's own player (README: an expo-video adapter); no new peer dependency.
52
+ - `ConversationView` `onOpenCitation`, `onOpenMoment`, `renderMedia`.
53
+ - Live meeting components (docs/MEETINGS.md; each takes the matching
54
+ `@poolse/react` hook): `StagePanel` (speakers, audience, raise hand, Bring
55
+ up / Move to audience), `QuestionsPanel` (Q&A with upvotes, anonymous,
56
+ Answered / Dismiss), `BreakoutBanner` (room, countdown, Join room / Return
57
+ to main), `LobbyWaiting` (the guest's waiting screen) and `LobbyAdmitList`
58
+ (Admit / Deny / Admit all), `MarkMomentButton`, `AgendaPanel` (owner,
59
+ minutes, check off, over-time nudge), `RoomPresence` (who's in a room, for
60
+ sidebars), `MeetingCard` and `MeetingCardMessageRow` (Accept / Maybe /
61
+ Decline, Join).
62
+ - Call overlays: `CaptionsOverlay` (live captions from the transcript),
63
+ `ReactionsOverlay` and `ReactionPickerBar`, `ConnectionIndicator` (signal
64
+ bars for web or native quality), `NetworkBanner` (plain-language network
65
+ problems), `WhiteboardView` (view, or simple pen drawing with a model) and
66
+ `AnnotationOverlay` (pointer and drawing on a shared screen, view only).
67
+ - Helpers: `formatCountdown`, `captionLines`, `avatarOverflow`,
68
+ `overrunText`, `meetingTimeText`, `rsvpSummary`.
69
+
7
70
  ## [3.9.0] - 2026-11-22
8
71
 
9
72
  ### Added
package/README.md CHANGED
@@ -231,10 +231,160 @@ give it `hasMore`, `loadingMore` and `onLoadMore`.
231
231
  unpublished. Hide participants whose identity starts with `poolse:`
232
232
  (`isServiceParticipant`).
233
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.
287
+
234
288
  The names follow `@poolse/react-ui`, but the props differ in places (for
235
289
  example `ThreadView` needs `visible` and `onClose`, and there is no
236
290
  `EditableMessageBubble`); see the docs for each component's props.
237
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={useNativeBreakouts(conversationId, callId, { moveToRoom })} />
307
+ <AgendaPanel agenda={useAgenda(conversationId, callId)} canEdit />
308
+ <MarkMomentButton moments={useMoments(conversationId, callId)} />
309
+ ```
310
+
311
+ With `@poolse/native`, `useNativeBreakouts` (pass its `moveToRoom`) joins
312
+ your breakout room as the split opens and brings you back as it closes;
313
+ the phone's call never ends, only its media changes rooms. The banner's
314
+ Join room / Return to main buttons use it too. With the JS `CallRoom`, use
315
+ `useBreakouts` and connect to the session in `onJoined`.
316
+
317
+ `participants` is `{ userId, name?, guest?, avatarUrl? }[]` from your call
318
+ roster; names fall back to the `MessageExtrasProvider`'s `nameForUserId`,
319
+ then "Someone" — never a raw id. Guests carry a Guest mark.
320
+
321
+ A guest waiting to be let in (no session; `waitInLobby` from
322
+ `@poolse/sdk`):
323
+
324
+ ```tsx
325
+ <LobbyWaiting name={guestName} status={status} title="Weekly sync" onLeave={leave} />
326
+ ```
327
+
328
+ Overlays for the call screen:
329
+
330
+ ```tsx
331
+ const t = useLiveTranscript(callId, { enabled: captionsOn });
332
+ {captionsOn && <CaptionsOverlay segments={t.segments} />}
333
+
334
+ const reactions = useCallReactions(media.room); // or callData from @poolse/native
335
+ <ReactionsOverlay reactions={reactions.reactions} />
336
+ <ReactionPickerBar onReact={reactions.send} />
337
+
338
+ <ConnectionIndicator quality={participant.connectionQuality} />
339
+ <NetworkBanner issues={useCallQuality(media.room)?.issues ?? []} />
340
+ // @poolse/native: diagnoseCallNetwork({ quality: snap.connectionQuality,
341
+ // reconnecting: snap.phase === 'reconnecting' })
342
+ ```
343
+
344
+ The whiteboard and screen annotations are view-only on phones by default
345
+ (`WhiteboardView` draws pen strokes when given `model` and `readOnly={false}`;
346
+ `AnnotationOverlay` draws lines everyone sees when given `annotations` and
347
+ `drawing`):
348
+
349
+ ```tsx
350
+ import * as Y from 'yjs';
351
+ const board = useWhiteboard(callId, Y, { selfUserId: me.id });
352
+ <WhiteboardView items={board.items} />
353
+
354
+ <View>
355
+ <CallVideoView source="screen" fit="contain" />
356
+ <AnnotationOverlay state={useScreenAnnotations(media.room, sharerId).state} />
357
+ {/* @poolse/native: useScreenAnnotations(callData, sharerId) */}
358
+ </View>
359
+ ```
360
+
361
+ Meeting invites in chat: `meetingCardOf(msg)` reads the card; RSVPs go to
362
+ `PUT /meetings/:id/rsvp` through the provider's client (pass `onRsvp` to
363
+ record them elsewhere), and the card follows the server's restatement of
364
+ the message. Guests and phones are named by the call ("Phone ···1234"),
365
+ never by id; `RoomPresence` takes `useRoomPresence().presence[id]`.
366
+
367
+ ```tsx
368
+ <MeetingCardMessageRow msg={msg} onJoin={(c) => openRoom(c.roomConversationId)} />
369
+ ```
370
+
371
+ ## Agents in calls
372
+
373
+ Same props as @poolse/react-ui:
374
+
375
+ ```tsx
376
+ const agents = useCallAgents(conversationId, callId);
377
+ <StagePanel stage={stage} participants={people} agents={agents.agents} selfUserId={me.id} />
378
+ <InviteAgentMenu callAgents={agents} />
379
+ <WhisperPanel whisper={useWhisper(callId)} />
380
+ <EscalationList callId={callId} />
381
+ ```
382
+
383
+ With `@poolse/native`, a roster entry with `isAgent` is an agent: name it
384
+ `agentLabel` and show `<CallAgentTag agent={agents.agentFor(p.userId) ??
385
+ { mode: p.agentMode ?? 'notetaker', status: 'live', speaking: false }}
386
+ speaking={p.speaking} />` — never a camera placeholder.
387
+
238
388
  ## Layouts
239
389
 
240
390
  ```tsx
@@ -294,6 +444,36 @@ returns that original shape.
294
444
  - Docs: <https://poolse.dev/docs/sdk/react-native>
295
445
  - Source: <https://github.com/poolse-hq/js-sdk>
296
446
 
447
+ ## Messaging plus
448
+
449
+ The same components as `@poolse/react-ui` (`PollCard`, `BlockRenderer`,
450
+ `PinsList`, `ForwardSheet`, `FilesList`, `ForumPostList`, `CatchUpCard`,
451
+ `TranslatedText`, `NoteCard`, the composer's `formattingToolbar`,
452
+ `commands` and `groups`). Media have no dependency here: build the adapters
453
+ on your media library.
454
+
455
+ ```tsx
456
+ import { useAudioPlayer, useAudioPlayerStatus } from 'expo-audio';
457
+
458
+ function Voice({ url, attachment }) {
459
+ const p = useAudioPlayer(url);
460
+ const st = useAudioPlayerStatus(p);
461
+ const player = {
462
+ playing: st.playing,
463
+ positionMs: st.currentTime * 1000,
464
+ durationMs: st.duration * 1000,
465
+ play: () => p.play(),
466
+ pause: () => p.pause(),
467
+ seek: (ms) => p.seekTo(ms / 1000),
468
+ setRate: (r) => p.setPlaybackRate(r),
469
+ };
470
+ return <VoiceMessagePlayer player={player} attachment={attachment} />;
471
+ }
472
+ ```
473
+
474
+ `VoiceRecorder` takes an `AudioRecorderAdapter` (`start`, `stop` →
475
+ `{uri, durationMs, mimeType}`, `cancel`): hold to record, release to send.
476
+
297
477
  ## License
298
478
 
299
479
  Licensed under the [poolse SDK License](./LICENSE) from 3.0.0; versions