@poolse/react-native 3.10.1 → 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 CHANGED
@@ -4,6 +4,37 @@ 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
+
7
38
  ## [3.10.1] - 2026-11-23
8
39
 
9
40
  ### 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