@poolse/react-native 3.10.0 → 3.10.2
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 +45 -0
- package/README.md +23 -3
- package/dist/index.cjs +360 -150
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1852 -1736
- package/dist/index.d.ts +1852 -1736
- package/dist/index.js +362 -153
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,51 @@ 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.2] - 2026-11-23
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `ConversationView` / `ThreadView`: `composerProps` (passed through to the
|
|
12
|
+
composer), `composerAccessory` (rendered above it), `composerHandle`
|
|
13
|
+
(ref: `focus`, `insertText`, `setText`, `getText`, `clear`,
|
|
14
|
+
`setSelection`, `addFiles`) and `beforeSend` (`async (draft) => draft |
|
|
15
|
+
false`: change or cancel a send; cancelled, the text and files stay).
|
|
16
|
+
`ConversationView` passes them on to its thread sheet.
|
|
17
|
+
- `extraActions={(msg) => MessageExtraAction[]}`: the app's own entries in
|
|
18
|
+
the long-press menu (`MessageActions` takes `extraActions` too; rows take
|
|
19
|
+
the resolved list).
|
|
20
|
+
- Deleting a message asks first: a native "Delete message?" alert by
|
|
21
|
+
default, or `confirmDelete={(msg) => boolean | Promise<boolean>}`.
|
|
22
|
+
- `MessageComposerHandle` gains `getText`, `setText` and `insertText`;
|
|
23
|
+
`MentionInput` forwards a ref; a composer's `onSend` resolving to `false`
|
|
24
|
+
keeps the draft. Types `BeforeSend`, `ComposerPassThroughProps`,
|
|
25
|
+
`MessageExtraAction`, `ConfirmDelete`.
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- `Avatar` works outside a `PoolseProvider` (a public booking page):
|
|
30
|
+
`presence={true}` then draws no badge instead of throwing, and a broken
|
|
31
|
+
`src` falls back to the initials.
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- `MessageComposer` clears its file queue once the send returns (it used to
|
|
36
|
+
clear as Send was pressed), so a held-back send keeps the files.
|
|
37
|
+
|
|
38
|
+
## [3.10.1] - 2026-11-23
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- `useNativeBreakouts(conversationId, callId, { moveToRoom })` (CL5):
|
|
43
|
+
`useBreakouts` that moves the @poolse/native call into your breakout
|
|
44
|
+
room as the split opens and back as it closes (`auto`, default on);
|
|
45
|
+
`inBreakout`, `joinRoom`, `returnToMainRoom`. `BreakoutBanner` takes it
|
|
46
|
+
and uses it for Join room / Return to main.
|
|
47
|
+
- `AnnotationOverlay` draws (CL4): `annotations` (from
|
|
48
|
+
`useScreenAnnotations`) with `drawing` and `color` make a finger draw
|
|
49
|
+
lines everyone in the call sees. With @poolse/native's `callData` the
|
|
50
|
+
overlay and `useCallReactions` work on phones.
|
|
51
|
+
|
|
7
52
|
## [3.10.0] - 2026-11-23
|
|
8
53
|
|
|
9
54
|
### Added
|
package/README.md
CHANGED
|
@@ -96,6 +96,17 @@ original.
|
|
|
96
96
|
`remove` over strings, sync or async) they are also saved under
|
|
97
97
|
`poolse:draft:<conversationId>` and come back after a restart;
|
|
98
98
|
`persistDrafts={false}` keeps them in memory only. Sending clears them.
|
|
99
|
+
- **Composer hooks** (`ConversationView` and `ThreadView`): `composerProps`
|
|
100
|
+
go to the composer (`placeholder`, `disabled`, `formattingToolbar`,
|
|
101
|
+
`commands`…), `composerAccessory` renders above it, `composerHandle` is a
|
|
102
|
+
ref with `focus`, `insertText` (at the cursor), `setText`, `getText`,
|
|
103
|
+
`clear`, `setSelection`, `addFiles`, and
|
|
104
|
+
`beforeSend={async (draft) => draft | false}` changes or cancels a send
|
|
105
|
+
(cancelled, the text and files stay).
|
|
106
|
+
- **Message menu.** `extraActions={(msg) => [{ label, icon?, onPress, danger? }]}`
|
|
107
|
+
adds your own entries to the long-press menu (before Edit / Delete).
|
|
108
|
+
Deleting asks first: a native "Delete message?" alert, or your own
|
|
109
|
+
`confirmDelete={(msg) => boolean | Promise<boolean>}`.
|
|
99
110
|
- **New messages.** A "New messages" line sits above the first message that
|
|
100
111
|
was unread when the conversation opened; while it is off screen a pill jumps
|
|
101
112
|
to it, loading older pages as needed. `newMessagesDivider={false}` turns
|
|
@@ -303,11 +314,17 @@ const lobby = useLobby(conversationId, callId);
|
|
|
303
314
|
<StagePanel stage={stage} participants={people} selfUserId={me.id} />
|
|
304
315
|
<QuestionsPanel questions={questions} canModerate={stage.isModerator} />
|
|
305
316
|
<LobbyAdmitList lobby={lobby} />
|
|
306
|
-
<BreakoutBanner breakouts={
|
|
317
|
+
<BreakoutBanner breakouts={useNativeBreakouts(conversationId, callId, { moveToRoom })} />
|
|
307
318
|
<AgendaPanel agenda={useAgenda(conversationId, callId)} canEdit />
|
|
308
319
|
<MarkMomentButton moments={useMoments(conversationId, callId)} />
|
|
309
320
|
```
|
|
310
321
|
|
|
322
|
+
With `@poolse/native`, `useNativeBreakouts` (pass its `moveToRoom`) joins
|
|
323
|
+
your breakout room as the split opens and brings you back as it closes;
|
|
324
|
+
the phone's call never ends, only its media changes rooms. The banner's
|
|
325
|
+
Join room / Return to main buttons use it too. With the JS `CallRoom`, use
|
|
326
|
+
`useBreakouts` and connect to the session in `onJoined`.
|
|
327
|
+
|
|
311
328
|
`participants` is `{ userId, name?, guest?, avatarUrl? }[]` from your call
|
|
312
329
|
roster; names fall back to the `MessageExtrasProvider`'s `nameForUserId`,
|
|
313
330
|
then "Someone" — never a raw id. Guests carry a Guest mark.
|
|
@@ -325,7 +342,7 @@ Overlays for the call screen:
|
|
|
325
342
|
const t = useLiveTranscript(callId, { enabled: captionsOn });
|
|
326
343
|
{captionsOn && <CaptionsOverlay segments={t.segments} />}
|
|
327
344
|
|
|
328
|
-
const reactions = useCallReactions(media.room); //
|
|
345
|
+
const reactions = useCallReactions(media.room); // or callData from @poolse/native
|
|
329
346
|
<ReactionsOverlay reactions={reactions.reactions} />
|
|
330
347
|
<ReactionPickerBar onReact={reactions.send} />
|
|
331
348
|
|
|
@@ -336,7 +353,9 @@ const reactions = useCallReactions(media.room); // JS CallRoom only
|
|
|
336
353
|
```
|
|
337
354
|
|
|
338
355
|
The whiteboard and screen annotations are view-only on phones by default
|
|
339
|
-
(`WhiteboardView` draws pen strokes when given `model` and `readOnly={false}
|
|
356
|
+
(`WhiteboardView` draws pen strokes when given `model` and `readOnly={false}`;
|
|
357
|
+
`AnnotationOverlay` draws lines everyone sees when given `annotations` and
|
|
358
|
+
`drawing`):
|
|
340
359
|
|
|
341
360
|
```tsx
|
|
342
361
|
import * as Y from 'yjs';
|
|
@@ -346,6 +365,7 @@ const board = useWhiteboard(callId, Y, { selfUserId: me.id });
|
|
|
346
365
|
<View>
|
|
347
366
|
<CallVideoView source="screen" fit="contain" />
|
|
348
367
|
<AnnotationOverlay state={useScreenAnnotations(media.room, sharerId).state} />
|
|
368
|
+
{/* @poolse/native: useScreenAnnotations(callData, sharerId) */}
|
|
349
369
|
</View>
|
|
350
370
|
```
|
|
351
371
|
|