mirror of
https://github.com/bitbaum/chatkit.git
synced 2026-12-04 22:08:22 +01:00
The composer and ChatApp read images and text and refuse every other file, so
an app that reads PDFs (@bitbaum/chatkit/pdf) could not use the paperclip,
paste, drop or ChatAppHandle.send for them without a bridge. attach.readFile
(file, { limits, notes, images, room, progress }) returns the attachments to
stage (one file may become several), a note, or undefined to leave the file to
chatkit. Files are now read one at a time so images/room count the file
before. readAttachmentFiles is the same for code outside the box.
Found moving OrangeCat's Cat onto ChatApp: its PDF reading (live since
2026-10-27) had no place to plug in.
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude <noreply@anthropic.com>
26 lines
1.5 KiB
JavaScript
26 lines
1.5 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 { 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
|