mirror of
https://github.com/bitbaum/chatkit.git
synced 2026-12-04 04:47:19 +01:00
The model button, the bring-your-own-key sheet and the link under a failed
turn ("Get a pass") were built in Heidi. They are the chat's experience, so
they belong here: ModelChip for the header, ModelSheet driven by the
product's vendor allowlist and key check, and ChatFailure.action/retry so a
transport can say what the reader can do next and when Retry cannot help.
Claude-Session: https://claude.ai/code/session_019MDtmteJuDGFouA1itJ5tM
Co-authored-by: Claude <noreply@anthropic.com>
48 lines
3.6 KiB
TypeScript
48 lines
3.6 KiB
TypeScript
/**
|
|
* @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 type { ComposerProps, ComposerLabels, ComposerLabelOverrides, ComposerVoice, ComposerHandle, } from "./Composer.js";
|
|
export { ChatThread, ChatMessage, ChatReplies, ChatStarters, starterParts, ThinkingRow, formatThinkingDuration, DEFAULT_THREAD_LABELS, } from "./Thread.js";
|
|
export type { ChatMessageData, ChatFailure, ChatFailureAction, FooterInfo, MessageChip, ChatSpeaker, LiveTurn, Starter, Thinking, ThinkingStep, ThreadLabels, } from "./Thread.js";
|
|
export { DictationField, DEFAULT_DICTATION_FIELD_LABELS } from "./DictationField.js";
|
|
export type { DictationFieldProps, DictationFieldLabels, DictationFieldInputProps, DictationFieldHandle, DictationFieldElement, DictationFieldEvent, ImproveRun, } from "./DictationField.js";
|
|
export { CommentThread, CommentRefused, commentFailure, DEFAULT_COMMENT_THREAD_LABELS, } from "./CommentThread.js";
|
|
export type { CommentItem, CommentTransport, CommentThreadProps, CommentThreadLabels, } 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 type { AnswerActionsLabels } from "./AnswerActions.js";
|
|
export { useSpeech } from "./use-speech.js";
|
|
export { useVoiceMode } from "./use-voice-mode.js";
|
|
export type { UseVoiceModeOptions, VoiceModeController } from "./use-voice-mode.js";
|
|
export { VoiceMode, DEFAULT_VOICE_MODE_LABELS } from "./VoiceMode.js";
|
|
export type { VoiceModeProps, VoiceModeLabels } from "./VoiceMode.js";
|
|
export type { SpeechController } from "./use-speech.js";
|
|
export { Sheet, prefersSheet } from "./Sheet.js";
|
|
export { ModelSheet, ModelChip, DEFAULT_MODEL_SHEET_LABELS } from "./ModelSheet.js";
|
|
export type { ModelSheetLabels, ModelVendor, ModelChoice, ModelCheck } from "./ModelSheet.js";
|
|
export type { CitationMap, RenderLink, RenderCitation, RenderSources } from "./Markdown.js";
|
|
export { useDictation } from "./use-dictation.js";
|
|
export type { DictationController, DictationStatus, UseDictationOptions } from "./use-dictation.js";
|
|
export { AttachMenu, DEFAULT_ATTACH_MENU_LABELS } from "./AttachMenu.js";
|
|
export type { AttachExtra, AttachMenuLabels } from "./AttachMenu.js";
|
|
export { useAttachments, readAttachmentFile, readAttachmentFiles } from "./use-attachments.js";
|
|
export type { AttachmentsController, ReadAttachment } 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 type { RichRenderers } from "./renderers.js";
|
|
export { ChatApp, DEFAULT_CHAT_APP_LABELS, takeDeepLink } from "./ChatApp.js";
|
|
export type { ChatAppProps, ChatAppLabels, ChatAppHandle, ChatAppFooterInfo, ChatListState, InitialMessage, } from "./ChatApp.js";
|
|
export { ChatHistory } from "./ChatHistory.js";
|
|
export type { ChatHistoryProps } from "./ChatHistory.js";
|
|
export { useChatApp, isTemporaryId, ChatTurnError, chatTurnFailure } from "./use-chat-app.js";
|
|
export type { ChatTransport, ChatTurn, ChatTurnResult, ChatAppController, ChatAppProblem, SendOptions, UseChatAppOptions, } from "./use-chat-app.js";
|
|
//# sourceMappingURL=index.d.ts.map
|