mirror of
https://github.com/bitbaum/chatkit.git
synced 2026-12-04 16:27:42 +01:00
The empty box's send slot records a voice message in the box's place; one tap sends it. A voice note plays in the thread in the bubble's own colours. AAC in MP4 first, so every phone plays it. Its length travels with it. Fix: the timer rounded to 0:01 at half a second and a short take was dropped without a word. Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 Co-authored-by: Claude <noreply@anthropic.com>
27 lines
1.5 KiB
JavaScript
27 lines
1.5 KiB
JavaScript
/**
|
|
* @bitbaum/chatkit/messenger — people talking to people, and to the agents
|
|
* among them.
|
|
*
|
|
* import { Messenger } from "@bitbaum/chatkit/messenger";
|
|
* import "@bitbaum/chatkit/styles/messenger.css";
|
|
*
|
|
* <Messenger viewer={{ id: user.id }} transport={transport} agents={[cat]} />
|
|
*
|
|
* `Messenger` is the whole screen; `useMessenger`, `ConversationList` and
|
|
* `MessageThread` are the parts, for an app with its own arrangement. The
|
|
* shapes (`MessengerTransport` and friends) and every decision that needs no
|
|
* DOM are re-exported from the framework-free half. The rules — who may read,
|
|
* what is unread, what may be attached — are `@bitbaum/threadkit`'s.
|
|
*/
|
|
export { Messenger } from "./MessengerScreen.js";
|
|
export { VoiceBar, VoiceRecorder, useVoiceRecording, VOICE_MESSAGE_MAX_MS, VOICE_MESSAGE_MIN_MS, canRecordVoice, voiceFileName, voiceMimeType, } from "./VoiceRecorder.js";
|
|
export { useMessenger } from "./use-messenger.js";
|
|
export { ConversationList } from "./ConversationList.js";
|
|
export { MessageThread } from "./MessageThread.js";
|
|
export { MessageAttachments, MediaViewer, MessengerAvatar, VoiceNote, VOICE_SPEEDS, } from "./MessageAttachments.js";
|
|
export { useUploads, DEFAULT_UPLOAD_OPTIONS } from "./use-uploads.js";
|
|
export { DEFAULT_MESSENGER_LABELS, messengerLabels } from "./messenger-labels.js";
|
|
export * from "../messenger.js";
|
|
export * from "../messenger-state.js";
|
|
export * from "../thread-rules.js";
|
|
//# sourceMappingURL=messenger.js.map
|