@poolse/react-native 3.10.1 → 3.10.3

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,46 @@ 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.3] - 2026-11-26
8
+
9
+ ### Added
10
+
11
+ - `MessageComposer` (and `MentionInput`, `composerProps`): `onMic` shows a
12
+ mic in the send button's place while there is nothing to send, and
13
+ `recordingBar` is drawn instead of the input row while set — an inline
14
+ voice message recorder.
15
+
16
+ ## [3.10.2] - 2026-11-23
17
+
18
+ ### Added
19
+
20
+ - `ConversationView` / `ThreadView`: `composerProps` (passed through to the
21
+ composer), `composerAccessory` (rendered above it), `composerHandle`
22
+ (ref: `focus`, `insertText`, `setText`, `getText`, `clear`,
23
+ `setSelection`, `addFiles`) and `beforeSend` (`async (draft) => draft |
24
+ false`: change or cancel a send; cancelled, the text and files stay).
25
+ `ConversationView` passes them on to its thread sheet.
26
+ - `extraActions={(msg) => MessageExtraAction[]}`: the app's own entries in
27
+ the long-press menu (`MessageActions` takes `extraActions` too; rows take
28
+ the resolved list).
29
+ - Deleting a message asks first: a native "Delete message?" alert by
30
+ default, or `confirmDelete={(msg) => boolean | Promise<boolean>}`.
31
+ - `MessageComposerHandle` gains `getText`, `setText` and `insertText`;
32
+ `MentionInput` forwards a ref; a composer's `onSend` resolving to `false`
33
+ keeps the draft. Types `BeforeSend`, `ComposerPassThroughProps`,
34
+ `MessageExtraAction`, `ConfirmDelete`.
35
+
36
+ ### Fixed
37
+
38
+ - `Avatar` works outside a `PoolseProvider` (a public booking page):
39
+ `presence={true}` then draws no badge instead of throwing, and a broken
40
+ `src` falls back to the initials.
41
+
42
+ ### Changed
43
+
44
+ - `MessageComposer` clears its file queue once the send returns (it used to
45
+ clear as Send was pressed), so a held-back send keeps the files.
46
+
7
47
  ## [3.10.1] - 2026-11-23
8
48
 
9
49
  ### 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