@poolse/react-native 3.10.2 → 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,15 @@ 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
+
7
16
  ## [3.10.2] - 2026-11-23
8
17
 
9
18
  ### Added
package/dist/index.cjs CHANGED
@@ -3258,7 +3258,9 @@ var MessageComposer = react.forwardRef(
3258
3258
  emojiPicker = true,
3259
3259
  accessory,
3260
3260
  formattingToolbar = false,
3261
- commands
3261
+ commands,
3262
+ onMic,
3263
+ recordingBar
3262
3264
  }, ref) {
3263
3265
  const theme = useTheme();
3264
3266
  const inputRef = react.useRef(null);
@@ -3453,7 +3455,7 @@ var MessageComposer = react.forwardRef(
3453
3455
  ...Array.isArray(formattingToolbar) ? { actions: formattingToolbar } : {}
3454
3456
  }
3455
3457
  ) : null,
3456
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles15.row, children: [
3458
+ recordingBar ? recordingBar : /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles15.row, children: [
3457
3459
  attachments && onAttachPress ? /* @__PURE__ */ jsxRuntime.jsx(
3458
3460
  reactNative.Pressable,
3459
3461
  {
@@ -3507,7 +3509,18 @@ var MessageComposer = react.forwardRef(
3507
3509
  ]
3508
3510
  }
3509
3511
  ),
3510
- /* @__PURE__ */ jsxRuntime.jsx(
3512
+ onMic && !isEditing && value.trim().length === 0 && readyAttachmentIds.length === 0 && !isUploading ? /* @__PURE__ */ jsxRuntime.jsx(
3513
+ reactNative.Pressable,
3514
+ {
3515
+ onPress: onMic,
3516
+ disabled,
3517
+ hitSlop: 8,
3518
+ style: [styles15.sendBtn, { backgroundColor: theme.colors.accent }],
3519
+ accessibilityRole: "button",
3520
+ accessibilityLabel: "Record a voice message",
3521
+ children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "mic", size: 18, color: theme.colors.accentText, label: null })
3522
+ }
3523
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
3511
3524
  reactNative.Pressable,
3512
3525
  {
3513
3526
  onPress: handleSend,