Files
chatkit/dist/react/index.js
T
CatoandClaude 163c879163 feat(thread): suggested replies — one tap sends the likely next message (0.6.0) (#13)
OrangeCat's Cat ends an answer with two to four tappable replies; it was the
most convenient control in any of the fleet's chats and existed nowhere else.
It now lives here so every product gets it from one place.

- REPLIES_INSTRUCTION: the prompt text that asks the model for a
  ```quick_replies block in the same turn (no second call, no latency)
- extractReplies(): parses it back out, deduplicated and capped, and hides
  an unfinished block while streaming so no one watches JSON appear
- ChatThread onReply: buttons under the latest answer only, never while a
  turn runs; the block is stripped from every answer even without onReply
- ChatReplies: the same buttons for apps that render their own thread


Claude-Session: https://claude.ai/code/session_01Mg5wrkfw95JWfmAz8yRT1j

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-09 05:26:52 -07:00

17 lines
873 B
JavaScript

/**
* @bitbaum/chatkit/react — the chat every product uses.
*
* import { Composer, ChatThread, ChatStarters } from "@bitbaum/chatkit/react";
* import "@bitbaum/chatkit/styles.css";
*
* Behaviour is fixed here and identical everywhere; the look follows the
* app's tokens through `--ck-*` variables (see styles.css).
*/
export { Composer, DEFAULT_COMPOSER_LABELS } from "./Composer.js";
export { ChatThread, ChatMessage, ChatReplies, ChatStarters, DEFAULT_THREAD_LABELS, } from "./Thread.js";
export { Markdown, defaultRenderLink } from "./Markdown.js";
export { useDictation } from "./use-dictation.js";
export { AttachMenu, DEFAULT_ATTACH_MENU_LABELS } from "./AttachMenu.js";
export { useAttachments } from "./use-attachments.js";
export { useClipboard, useStickToBottom, useViewportHeight, useAutoGrow } from "./hooks.js";
//# sourceMappingURL=index.js.map