Files
chatkit/dist/react/index.js
T
CatoandClaude 53b889531a feat(comments): a refused comment says why (CommentRefused, 0.26.0) (#83)
CommentThread always said "The comment could not be posted... try again"
whatever the server answered, so a comment that was too short or over a
rate limit was retried forever (seen on Substrata, 2026-11-12).

A transport may throw new CommentRefused(words) from post or remove; the
thread shows those words. Any other error still shows postFailed /
removeFailed, so a raw error or a server's English never reaches a reader
by accident (the ChatTurnError rule). commentFailure(error, fallback) is
exported for apps that build their own box.

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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 10:20:28 +01:00

28 lines
1.7 KiB
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, starterParts, ThinkingRow, formatThinkingDuration, DEFAULT_THREAD_LABELS, } from "./Thread.js";
export { DictationField, DEFAULT_DICTATION_FIELD_LABELS } from "./DictationField.js";
export { CommentThread, CommentRefused, commentFailure, DEFAULT_COMMENT_THREAD_LABELS, } from "./CommentThread.js";
export { ChatScreen } from "./Screen.js";
export { Markdown, SourcesRow, defaultRenderLink, defaultRenderCitation } from "./Markdown.js";
export { AnswerActions, DEFAULT_ANSWER_ACTIONS_LABELS } from "./AnswerActions.js";
export { useSpeech } from "./use-speech.js";
export { Sheet, prefersSheet } from "./Sheet.js";
export { useDictation } from "./use-dictation.js";
export { AttachMenu, DEFAULT_ATTACH_MENU_LABELS } from "./AttachMenu.js";
export { useAttachments, readAttachmentFile, readAttachmentFiles } from "./use-attachments.js";
export { useClipboard, useStickToBottom, useViewportHeight, useAutoGrow } from "./hooks.js";
export { RichAnswerBlock, ChartTableFigure } from "./RichBlock.js";
export { RichRenderersContext, useRichRenderers } from "./renderers.js";
export { ChatApp, DEFAULT_CHAT_APP_LABELS, takeDeepLink } from "./ChatApp.js";
export { ChatHistory } from "./ChatHistory.js";
export { useChatApp, isTemporaryId, ChatTurnError, chatTurnFailure } from "./use-chat-app.js";
//# sourceMappingURL=index.js.map