movius-chats 1.4.19 → 1.5.0
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/README.md +7 -7
- package/lib/commonjs/index.js +3 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/components/VoiceRecorder/VoiceRecorderFlow/constants.d.ts +0 -5
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/types/index.d.ts +11 -11
- package/package.json +1 -1
- package/src/components/ChatInput/ChatInput.tsx +38 -31
- package/src/components/VoiceRecorder/VoiceRecorderFlow/constants.ts +1 -5
- package/src/index.tsx +14 -0
- package/src/types/index.ts +14 -15
package/README.md
CHANGED
|
@@ -332,10 +332,10 @@ When preview or text exists, the **send** icon shows instead of the mic.
|
|
|
332
332
|
|
|
333
333
|
| Prop | Type |
|
|
334
334
|
|------|------|
|
|
335
|
-
| `
|
|
336
|
-
| `
|
|
337
|
-
| `
|
|
338
|
-
| `
|
|
335
|
+
| `CustomVoiceRecorder` | `(VoiceRecorderExposedState) => ReactNode` — replace entire recorder UI |
|
|
336
|
+
| `theme.voiceRecorder.config` | `VoiceRecorderConfig` — `maxDuration`, lock, slide-to-cancel, etc. |
|
|
337
|
+
| `theme.voiceRecorder.ui` | `RecordingUIProps` — colors/sizes for timer, lock pill, recorder play/pause |
|
|
338
|
+
| `theme.voiceRecorder.styles` | `VoiceRecorderStyleOverrides` |
|
|
339
339
|
|
|
340
340
|
### Typing
|
|
341
341
|
|
|
@@ -356,7 +356,7 @@ Requires **`react-native-audio-record`** and **`react-native-fs`** in the host a
|
|
|
356
356
|
| **Tap** mic | Normal bar: trash, timer, waveform, play/pause preview, send |
|
|
357
357
|
| **Long-press** mic | Hold mode: “slide to cancel”, lock column above send |
|
|
358
358
|
| Slide **left** | Cancel (file deleted via `react-native-fs`) |
|
|
359
|
-
| Slide **up** to lock | Switches to normal bar (`lockSlideDistance` in `
|
|
359
|
+
| Slide **up** to lock | Switches to normal bar (`lockSlideDistance` in `theme.voiceRecorder.config`) |
|
|
360
360
|
| **Release** without slide | Auto-send (`onAudioRecordEnd`) |
|
|
361
361
|
|
|
362
362
|
### Wiring
|
|
@@ -385,7 +385,7 @@ Requires **`react-native-audio-record`** and **`react-native-fs`** in the host a
|
|
|
385
385
|
### Custom recorder UI
|
|
386
386
|
|
|
387
387
|
```tsx
|
|
388
|
-
|
|
388
|
+
CustomVoiceRecorder={(state) => (
|
|
389
389
|
<MyRecorder
|
|
390
390
|
duration={state.duration}
|
|
391
391
|
onStop={state.stopRecording}
|
|
@@ -575,7 +575,7 @@ If your navigator already avoids the keyboard:
|
|
|
575
575
|
| `renderCustomInput` | Entire input + recorder (you handle preview yourself) |
|
|
576
576
|
| `renderCustomTyping` | “Typing…” content |
|
|
577
577
|
| `renderCustomVideoBubbleError` | Inline video error in grid |
|
|
578
|
-
| `
|
|
578
|
+
| `CustomVoiceRecorder` | Built-in recorder bars |
|
|
579
579
|
| `CustomEmojiIcon` | Emoji button |
|
|
580
580
|
| `CustomAttachmentIcon` | Paperclip |
|
|
581
581
|
| `CustomCameraIcon` | Camera |
|