@crafter/rn-ai-elements 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/chatbot/AIImage.js +126 -0
- package/lib/commonjs/chatbot/AIImage.js.map +1 -0
- package/lib/commonjs/chatbot/Attachments.js +317 -0
- package/lib/commonjs/chatbot/Attachments.js.map +1 -0
- package/lib/commonjs/chatbot/ChatErrorBoundary.js +201 -0
- package/lib/commonjs/chatbot/ChatErrorBoundary.js.map +1 -0
- package/lib/commonjs/chatbot/ChatMessageItem.js +169 -0
- package/lib/commonjs/chatbot/ChatMessageItem.js.map +1 -0
- package/lib/commonjs/chatbot/Conversation.js +415 -0
- package/lib/commonjs/chatbot/Conversation.js.map +1 -0
- package/lib/commonjs/chatbot/ConversationScrollButton.js +131 -0
- package/lib/commonjs/chatbot/ConversationScrollButton.js.map +1 -0
- package/lib/commonjs/chatbot/Message.js +203 -0
- package/lib/commonjs/chatbot/Message.js.map +1 -0
- package/lib/commonjs/chatbot/PromptInput.js +352 -0
- package/lib/commonjs/chatbot/PromptInput.js.map +1 -0
- package/lib/commonjs/chatbot/Reasoning.js +184 -0
- package/lib/commonjs/chatbot/Reasoning.js.map +1 -0
- package/lib/commonjs/chatbot/Shimmer.js +116 -0
- package/lib/commonjs/chatbot/Shimmer.js.map +1 -0
- package/lib/commonjs/chatbot/Sources.js +212 -0
- package/lib/commonjs/chatbot/Sources.js.map +1 -0
- package/lib/commonjs/chatbot/Suggestion.js +99 -0
- package/lib/commonjs/chatbot/Suggestion.js.map +1 -0
- package/lib/commonjs/chatbot/Tool.js +307 -0
- package/lib/commonjs/chatbot/Tool.js.map +1 -0
- package/lib/commonjs/chatbot/adapters/uiMessageAdapter.js +141 -0
- package/lib/commonjs/chatbot/adapters/uiMessageAdapter.js.map +1 -0
- package/lib/commonjs/chatbot/index.js +140 -0
- package/lib/commonjs/chatbot/index.js.map +1 -0
- package/lib/commonjs/chatbot/types.js +6 -0
- package/lib/commonjs/chatbot/types.js.map +1 -0
- package/lib/commonjs/hooks/index.js +34 -0
- package/lib/commonjs/hooks/index.js.map +1 -0
- package/lib/commonjs/hooks/useAutoScroll.js +39 -0
- package/lib/commonjs/hooks/useAutoScroll.js.map +1 -0
- package/lib/commonjs/hooks/useClipboard.js +44 -0
- package/lib/commonjs/hooks/useClipboard.js.map +1 -0
- package/lib/commonjs/hooks/useCollapsible.js +35 -0
- package/lib/commonjs/hooks/useCollapsible.js.map +1 -0
- package/lib/commonjs/hooks/useStickToBottom.js +68 -0
- package/lib/commonjs/hooks/useStickToBottom.js.map +1 -0
- package/lib/commonjs/index.js +257 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/primitives/Badge.js +119 -0
- package/lib/commonjs/primitives/Badge.js.map +1 -0
- package/lib/commonjs/primitives/Button.js +185 -0
- package/lib/commonjs/primitives/Button.js.map +1 -0
- package/lib/commonjs/primitives/Card.js +166 -0
- package/lib/commonjs/primitives/Card.js.map +1 -0
- package/lib/commonjs/primitives/Collapsible.js +137 -0
- package/lib/commonjs/primitives/Collapsible.js.map +1 -0
- package/lib/commonjs/primitives/ScrollArea.js +40 -0
- package/lib/commonjs/primitives/ScrollArea.js.map +1 -0
- package/lib/commonjs/primitives/index.js +83 -0
- package/lib/commonjs/primitives/index.js.map +1 -0
- package/lib/commonjs/streaming/StreamingMarkdown.js +252 -0
- package/lib/commonjs/streaming/StreamingMarkdown.js.map +1 -0
- package/lib/commonjs/streaming/index.js +13 -0
- package/lib/commonjs/streaming/index.js.map +1 -0
- package/lib/commonjs/streaming/parser.js +482 -0
- package/lib/commonjs/streaming/parser.js.map +1 -0
- package/lib/commonjs/streaming/renderers/BlockquoteRenderer.js +35 -0
- package/lib/commonjs/streaming/renderers/BlockquoteRenderer.js.map +1 -0
- package/lib/commonjs/streaming/renderers/CodeRenderer.js +128 -0
- package/lib/commonjs/streaming/renderers/CodeRenderer.js.map +1 -0
- package/lib/commonjs/streaming/renderers/HeadingRenderer.js +61 -0
- package/lib/commonjs/streaming/renderers/HeadingRenderer.js.map +1 -0
- package/lib/commonjs/streaming/renderers/ImageRenderer.js +53 -0
- package/lib/commonjs/streaming/renderers/ImageRenderer.js.map +1 -0
- package/lib/commonjs/streaming/renderers/LinkRenderer.js +49 -0
- package/lib/commonjs/streaming/renderers/LinkRenderer.js.map +1 -0
- package/lib/commonjs/streaming/renderers/ListRenderer.js +63 -0
- package/lib/commonjs/streaming/renderers/ListRenderer.js.map +1 -0
- package/lib/commonjs/streaming/renderers/TableRenderer.js +77 -0
- package/lib/commonjs/streaming/renderers/TableRenderer.js.map +1 -0
- package/lib/commonjs/streaming/renderers/TextRenderer.js +41 -0
- package/lib/commonjs/streaming/renderers/TextRenderer.js.map +1 -0
- package/lib/commonjs/streaming/renderers/index.js +76 -0
- package/lib/commonjs/streaming/renderers/index.js.map +1 -0
- package/lib/commonjs/streaming/renderers/renderInlineChildren.js +112 -0
- package/lib/commonjs/streaming/renderers/renderInlineChildren.js.map +1 -0
- package/lib/commonjs/streaming/renderers/renderNode.js +81 -0
- package/lib/commonjs/streaming/renderers/renderNode.js.map +1 -0
- package/lib/commonjs/theme/ThemeProvider.js +68 -0
- package/lib/commonjs/theme/ThemeProvider.js.map +1 -0
- package/lib/commonjs/theme/defaultTheme.js +96 -0
- package/lib/commonjs/theme/defaultTheme.js.map +1 -0
- package/lib/commonjs/theme/index.js +32 -0
- package/lib/commonjs/theme/index.js.map +1 -0
- package/lib/commonjs/theme/tokens.js +2 -0
- package/lib/commonjs/theme/tokens.js.map +1 -0
- package/lib/commonjs/types.d.js +2 -0
- package/lib/commonjs/types.d.js.map +1 -0
- package/lib/commonjs/voice/index.js +13 -0
- package/lib/commonjs/voice/index.js.map +1 -0
- package/lib/commonjs/voice/useSpeechRecognition.js +172 -0
- package/lib/commonjs/voice/useSpeechRecognition.js.map +1 -0
- package/lib/module/chatbot/AIImage.js +121 -0
- package/lib/module/chatbot/AIImage.js.map +1 -0
- package/lib/module/chatbot/Attachments.js +312 -0
- package/lib/module/chatbot/Attachments.js.map +1 -0
- package/lib/module/chatbot/ChatErrorBoundary.js +196 -0
- package/lib/module/chatbot/ChatErrorBoundary.js.map +1 -0
- package/lib/module/chatbot/ChatMessageItem.js +164 -0
- package/lib/module/chatbot/ChatMessageItem.js.map +1 -0
- package/lib/module/chatbot/Conversation.js +412 -0
- package/lib/module/chatbot/Conversation.js.map +1 -0
- package/lib/module/chatbot/ConversationScrollButton.js +126 -0
- package/lib/module/chatbot/ConversationScrollButton.js.map +1 -0
- package/lib/module/chatbot/Message.js +198 -0
- package/lib/module/chatbot/Message.js.map +1 -0
- package/lib/module/chatbot/PromptInput.js +347 -0
- package/lib/module/chatbot/PromptInput.js.map +1 -0
- package/lib/module/chatbot/Reasoning.js +179 -0
- package/lib/module/chatbot/Reasoning.js.map +1 -0
- package/lib/module/chatbot/Shimmer.js +111 -0
- package/lib/module/chatbot/Shimmer.js.map +1 -0
- package/lib/module/chatbot/Sources.js +207 -0
- package/lib/module/chatbot/Sources.js.map +1 -0
- package/lib/module/chatbot/Suggestion.js +94 -0
- package/lib/module/chatbot/Suggestion.js.map +1 -0
- package/lib/module/chatbot/Tool.js +303 -0
- package/lib/module/chatbot/Tool.js.map +1 -0
- package/lib/module/chatbot/adapters/uiMessageAdapter.js +137 -0
- package/lib/module/chatbot/adapters/uiMessageAdapter.js.map +1 -0
- package/lib/module/chatbot/index.js +39 -0
- package/lib/module/chatbot/index.js.map +1 -0
- package/lib/module/chatbot/types.js +4 -0
- package/lib/module/chatbot/types.js.map +1 -0
- package/lib/module/hooks/index.js +7 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/useAutoScroll.js +35 -0
- package/lib/module/hooks/useAutoScroll.js.map +1 -0
- package/lib/module/hooks/useClipboard.js +40 -0
- package/lib/module/hooks/useClipboard.js.map +1 -0
- package/lib/module/hooks/useCollapsible.js +31 -0
- package/lib/module/hooks/useCollapsible.js.map +1 -0
- package/lib/module/hooks/useStickToBottom.js +64 -0
- package/lib/module/hooks/useStickToBottom.js.map +1 -0
- package/lib/module/index.js +19 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/primitives/Badge.js +114 -0
- package/lib/module/primitives/Badge.js.map +1 -0
- package/lib/module/primitives/Button.js +180 -0
- package/lib/module/primitives/Button.js.map +1 -0
- package/lib/module/primitives/Card.js +156 -0
- package/lib/module/primitives/Card.js.map +1 -0
- package/lib/module/primitives/Collapsible.js +130 -0
- package/lib/module/primitives/Collapsible.js.map +1 -0
- package/lib/module/primitives/ScrollArea.js +35 -0
- package/lib/module/primitives/ScrollArea.js.map +1 -0
- package/lib/module/primitives/index.js +8 -0
- package/lib/module/primitives/index.js.map +1 -0
- package/lib/module/streaming/StreamingMarkdown.js +246 -0
- package/lib/module/streaming/StreamingMarkdown.js.map +1 -0
- package/lib/module/streaming/index.js +4 -0
- package/lib/module/streaming/index.js.map +1 -0
- package/lib/module/streaming/parser.js +477 -0
- package/lib/module/streaming/parser.js.map +1 -0
- package/lib/module/streaming/renderers/BlockquoteRenderer.js +30 -0
- package/lib/module/streaming/renderers/BlockquoteRenderer.js.map +1 -0
- package/lib/module/streaming/renderers/CodeRenderer.js +123 -0
- package/lib/module/streaming/renderers/CodeRenderer.js.map +1 -0
- package/lib/module/streaming/renderers/HeadingRenderer.js +56 -0
- package/lib/module/streaming/renderers/HeadingRenderer.js.map +1 -0
- package/lib/module/streaming/renderers/ImageRenderer.js +48 -0
- package/lib/module/streaming/renderers/ImageRenderer.js.map +1 -0
- package/lib/module/streaming/renderers/LinkRenderer.js +44 -0
- package/lib/module/streaming/renderers/LinkRenderer.js.map +1 -0
- package/lib/module/streaming/renderers/ListRenderer.js +58 -0
- package/lib/module/streaming/renderers/ListRenderer.js.map +1 -0
- package/lib/module/streaming/renderers/TableRenderer.js +72 -0
- package/lib/module/streaming/renderers/TableRenderer.js.map +1 -0
- package/lib/module/streaming/renderers/TextRenderer.js +36 -0
- package/lib/module/streaming/renderers/TextRenderer.js.map +1 -0
- package/lib/module/streaming/renderers/index.js +13 -0
- package/lib/module/streaming/renderers/index.js.map +1 -0
- package/lib/module/streaming/renderers/renderInlineChildren.js +107 -0
- package/lib/module/streaming/renderers/renderInlineChildren.js.map +1 -0
- package/lib/module/streaming/renderers/renderNode.js +78 -0
- package/lib/module/streaming/renderers/renderNode.js.map +1 -0
- package/lib/module/theme/ThemeProvider.js +62 -0
- package/lib/module/theme/ThemeProvider.js.map +1 -0
- package/lib/module/theme/defaultTheme.js +92 -0
- package/lib/module/theme/defaultTheme.js.map +1 -0
- package/lib/module/theme/index.js +5 -0
- package/lib/module/theme/index.js.map +1 -0
- package/lib/module/theme/tokens.js +2 -0
- package/lib/module/theme/tokens.js.map +1 -0
- package/lib/module/types.d.js +2 -0
- package/lib/module/types.d.js.map +1 -0
- package/lib/module/voice/index.js +14 -0
- package/lib/module/voice/index.js.map +1 -0
- package/lib/module/voice/useSpeechRecognition.js +169 -0
- package/lib/module/voice/useSpeechRecognition.js.map +1 -0
- package/lib/typescript/src/chatbot/AIImage.d.ts +24 -0
- package/lib/typescript/src/chatbot/AIImage.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/Attachments.d.ts +20 -0
- package/lib/typescript/src/chatbot/Attachments.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/ChatErrorBoundary.d.ts +57 -0
- package/lib/typescript/src/chatbot/ChatErrorBoundary.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/ChatMessageItem.d.ts +45 -0
- package/lib/typescript/src/chatbot/ChatMessageItem.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/Conversation.d.ts +94 -0
- package/lib/typescript/src/chatbot/Conversation.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/ConversationScrollButton.d.ts +62 -0
- package/lib/typescript/src/chatbot/ConversationScrollButton.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/Message.d.ts +39 -0
- package/lib/typescript/src/chatbot/Message.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/PromptInput.d.ts +93 -0
- package/lib/typescript/src/chatbot/PromptInput.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/Reasoning.d.ts +14 -0
- package/lib/typescript/src/chatbot/Reasoning.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/Shimmer.d.ts +13 -0
- package/lib/typescript/src/chatbot/Shimmer.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/Sources.d.ts +17 -0
- package/lib/typescript/src/chatbot/Sources.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/Suggestion.d.ts +15 -0
- package/lib/typescript/src/chatbot/Suggestion.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/Tool.d.ts +30 -0
- package/lib/typescript/src/chatbot/Tool.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/adapters/uiMessageAdapter.d.ts +24 -0
- package/lib/typescript/src/chatbot/adapters/uiMessageAdapter.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/index.d.ts +29 -0
- package/lib/typescript/src/chatbot/index.d.ts.map +1 -0
- package/lib/typescript/src/chatbot/types.d.ts +49 -0
- package/lib/typescript/src/chatbot/types.d.ts.map +1 -0
- package/lib/typescript/src/hooks/index.d.ts +9 -0
- package/lib/typescript/src/hooks/index.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useAutoScroll.d.ts +23 -0
- package/lib/typescript/src/hooks/useAutoScroll.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useClipboard.d.ts +22 -0
- package/lib/typescript/src/hooks/useClipboard.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCollapsible.d.ts +28 -0
- package/lib/typescript/src/hooks/useCollapsible.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useStickToBottom.d.ts +39 -0
- package/lib/typescript/src/hooks/useStickToBottom.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +11 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/primitives/Badge.d.ts +10 -0
- package/lib/typescript/src/primitives/Badge.d.ts.map +1 -0
- package/lib/typescript/src/primitives/Button.d.ts +16 -0
- package/lib/typescript/src/primitives/Button.d.ts.map +1 -0
- package/lib/typescript/src/primitives/Card.d.ts +33 -0
- package/lib/typescript/src/primitives/Card.d.ts.map +1 -0
- package/lib/typescript/src/primitives/Collapsible.d.ts +20 -0
- package/lib/typescript/src/primitives/Collapsible.d.ts.map +1 -0
- package/lib/typescript/src/primitives/ScrollArea.d.ts +10 -0
- package/lib/typescript/src/primitives/ScrollArea.d.ts.map +1 -0
- package/lib/typescript/src/primitives/index.d.ts +11 -0
- package/lib/typescript/src/primitives/index.d.ts.map +1 -0
- package/lib/typescript/src/streaming/StreamingMarkdown.d.ts +47 -0
- package/lib/typescript/src/streaming/StreamingMarkdown.d.ts.map +1 -0
- package/lib/typescript/src/streaming/index.d.ts +3 -0
- package/lib/typescript/src/streaming/index.d.ts.map +1 -0
- package/lib/typescript/src/streaming/parser.d.ts +41 -0
- package/lib/typescript/src/streaming/parser.d.ts.map +1 -0
- package/lib/typescript/src/streaming/renderers/BlockquoteRenderer.d.ts +7 -0
- package/lib/typescript/src/streaming/renderers/BlockquoteRenderer.d.ts.map +1 -0
- package/lib/typescript/src/streaming/renderers/CodeRenderer.d.ts +7 -0
- package/lib/typescript/src/streaming/renderers/CodeRenderer.d.ts.map +1 -0
- package/lib/typescript/src/streaming/renderers/HeadingRenderer.d.ts +7 -0
- package/lib/typescript/src/streaming/renderers/HeadingRenderer.d.ts.map +1 -0
- package/lib/typescript/src/streaming/renderers/ImageRenderer.d.ts +7 -0
- package/lib/typescript/src/streaming/renderers/ImageRenderer.d.ts.map +1 -0
- package/lib/typescript/src/streaming/renderers/LinkRenderer.d.ts +7 -0
- package/lib/typescript/src/streaming/renderers/LinkRenderer.d.ts.map +1 -0
- package/lib/typescript/src/streaming/renderers/ListRenderer.d.ts +7 -0
- package/lib/typescript/src/streaming/renderers/ListRenderer.d.ts.map +1 -0
- package/lib/typescript/src/streaming/renderers/TableRenderer.d.ts +7 -0
- package/lib/typescript/src/streaming/renderers/TableRenderer.d.ts.map +1 -0
- package/lib/typescript/src/streaming/renderers/TextRenderer.d.ts +7 -0
- package/lib/typescript/src/streaming/renderers/TextRenderer.d.ts.map +1 -0
- package/lib/typescript/src/streaming/renderers/index.d.ts +19 -0
- package/lib/typescript/src/streaming/renderers/index.d.ts.map +1 -0
- package/lib/typescript/src/streaming/renderers/renderInlineChildren.d.ts +12 -0
- package/lib/typescript/src/streaming/renderers/renderInlineChildren.d.ts.map +1 -0
- package/lib/typescript/src/streaming/renderers/renderNode.d.ts +8 -0
- package/lib/typescript/src/streaming/renderers/renderNode.d.ts.map +1 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts +14 -0
- package/lib/typescript/src/theme/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/src/theme/defaultTheme.d.ts +4 -0
- package/lib/typescript/src/theme/defaultTheme.d.ts.map +1 -0
- package/lib/typescript/src/theme/index.d.ts +5 -0
- package/lib/typescript/src/theme/index.d.ts.map +1 -0
- package/lib/typescript/src/theme/tokens.d.ts +66 -0
- package/lib/typescript/src/theme/tokens.d.ts.map +1 -0
- package/lib/typescript/src/voice/index.d.ts +3 -0
- package/lib/typescript/src/voice/index.d.ts.map +1 -0
- package/lib/typescript/src/voice/useSpeechRecognition.d.ts +77 -0
- package/lib/typescript/src/voice/useSpeechRecognition.d.ts.map +1 -0
- package/package.json +132 -0
- package/src/chatbot/AIImage.tsx +166 -0
- package/src/chatbot/Attachments.tsx +382 -0
- package/src/chatbot/ChatErrorBoundary.tsx +230 -0
- package/src/chatbot/ChatMessageItem.tsx +195 -0
- package/src/chatbot/Conversation.tsx +537 -0
- package/src/chatbot/ConversationScrollButton.tsx +149 -0
- package/src/chatbot/Message.tsx +266 -0
- package/src/chatbot/PromptInput.tsx +532 -0
- package/src/chatbot/Reasoning.tsx +198 -0
- package/src/chatbot/Shimmer.tsx +146 -0
- package/src/chatbot/Sources.tsx +263 -0
- package/src/chatbot/Suggestion.tsx +123 -0
- package/src/chatbot/Tool.tsx +340 -0
- package/src/chatbot/adapters/uiMessageAdapter.ts +177 -0
- package/src/chatbot/index.ts +97 -0
- package/src/chatbot/types.ts +66 -0
- package/src/hooks/index.ts +17 -0
- package/src/hooks/useAutoScroll.ts +43 -0
- package/src/hooks/useClipboard.ts +46 -0
- package/src/hooks/useCollapsible.ts +42 -0
- package/src/hooks/useStickToBottom.ts +82 -0
- package/src/index.ts +139 -0
- package/src/primitives/Badge.tsx +119 -0
- package/src/primitives/Button.tsx +213 -0
- package/src/primitives/Card.tsx +221 -0
- package/src/primitives/Collapsible.tsx +168 -0
- package/src/primitives/ScrollArea.tsx +53 -0
- package/src/primitives/index.ts +36 -0
- package/src/streaming/StreamingMarkdown.tsx +282 -0
- package/src/streaming/index.ts +2 -0
- package/src/streaming/parser.ts +506 -0
- package/src/streaming/renderers/BlockquoteRenderer.tsx +42 -0
- package/src/streaming/renderers/CodeRenderer.tsx +158 -0
- package/src/streaming/renderers/HeadingRenderer.tsx +64 -0
- package/src/streaming/renderers/ImageRenderer.tsx +62 -0
- package/src/streaming/renderers/LinkRenderer.tsx +53 -0
- package/src/streaming/renderers/ListRenderer.tsx +65 -0
- package/src/streaming/renderers/TableRenderer.tsx +103 -0
- package/src/streaming/renderers/TextRenderer.tsx +39 -0
- package/src/streaming/renderers/index.ts +26 -0
- package/src/streaming/renderers/renderInlineChildren.tsx +115 -0
- package/src/streaming/renderers/renderNode.tsx +72 -0
- package/src/theme/ThemeProvider.tsx +77 -0
- package/src/theme/defaultTheme.ts +93 -0
- package/src/theme/index.ts +4 -0
- package/src/theme/tokens.ts +69 -0
- package/src/types.d.ts +71 -0
- package/src/voice/index.ts +15 -0
- package/src/voice/useSpeechRecognition.ts +230 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StreamingMarkdown = StreamingMarkdown;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeMarkdownDisplay = _interopRequireDefault(require("react-native-markdown-display"));
|
|
10
|
+
var _theme = require("../theme");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
+
/**
|
|
15
|
+
* Closes any dangling markdown constructs that the parser would otherwise
|
|
16
|
+
* mis-render mid-stream. Most importantly: an unclosed fenced code block
|
|
17
|
+
* causes everything after the opening ``` to be rendered as code until the
|
|
18
|
+
* closing fence arrives, which produces a jarring flicker.
|
|
19
|
+
*
|
|
20
|
+
* This is correctness, not animation — keep it even in the "simple" version.
|
|
21
|
+
*/
|
|
22
|
+
function stabilizePartialMarkdown(content) {
|
|
23
|
+
const fenceMatches = content.match(/^```/gm);
|
|
24
|
+
const fenceCount = fenceMatches?.length ?? 0;
|
|
25
|
+
if (fenceCount % 2 === 1) {
|
|
26
|
+
const needsNewline = !content.endsWith('\n');
|
|
27
|
+
return `${content}${needsNewline ? '\n' : ''}\`\`\``;
|
|
28
|
+
}
|
|
29
|
+
return content;
|
|
30
|
+
}
|
|
31
|
+
function createMarkdownStyles(theme) {
|
|
32
|
+
return {
|
|
33
|
+
body: {
|
|
34
|
+
color: theme.colors.foreground,
|
|
35
|
+
fontSize: 12,
|
|
36
|
+
lineHeight: 12 * theme.typography.lineHeight.normal,
|
|
37
|
+
fontFamily: theme.typography.fontFamily
|
|
38
|
+
},
|
|
39
|
+
heading1: {
|
|
40
|
+
color: theme.colors.foreground,
|
|
41
|
+
fontSize: theme.typography.fontSize['2xl'],
|
|
42
|
+
fontWeight: theme.typography.fontWeight.bold,
|
|
43
|
+
lineHeight: theme.typography.fontSize['2xl'] * theme.typography.lineHeight.tight,
|
|
44
|
+
marginTop: theme.spacing.lg,
|
|
45
|
+
marginBottom: theme.spacing.md
|
|
46
|
+
},
|
|
47
|
+
heading2: {
|
|
48
|
+
color: theme.colors.foreground,
|
|
49
|
+
fontSize: theme.typography.fontSize.xl,
|
|
50
|
+
fontWeight: theme.typography.fontWeight.bold,
|
|
51
|
+
lineHeight: theme.typography.fontSize.xl * theme.typography.lineHeight.tight,
|
|
52
|
+
marginTop: theme.spacing.lg,
|
|
53
|
+
marginBottom: theme.spacing.sm
|
|
54
|
+
},
|
|
55
|
+
heading3: {
|
|
56
|
+
color: theme.colors.foreground,
|
|
57
|
+
fontSize: theme.typography.fontSize.lg,
|
|
58
|
+
fontWeight: theme.typography.fontWeight.semibold,
|
|
59
|
+
lineHeight: theme.typography.fontSize.lg * theme.typography.lineHeight.tight,
|
|
60
|
+
marginTop: theme.spacing.md,
|
|
61
|
+
marginBottom: theme.spacing.sm
|
|
62
|
+
},
|
|
63
|
+
heading4: {
|
|
64
|
+
color: theme.colors.foreground,
|
|
65
|
+
fontSize: theme.typography.fontSize.md,
|
|
66
|
+
fontWeight: theme.typography.fontWeight.semibold,
|
|
67
|
+
marginTop: theme.spacing.md,
|
|
68
|
+
marginBottom: theme.spacing.xs
|
|
69
|
+
},
|
|
70
|
+
strong: {
|
|
71
|
+
fontWeight: theme.typography.fontWeight.bold
|
|
72
|
+
},
|
|
73
|
+
em: {
|
|
74
|
+
fontStyle: 'italic'
|
|
75
|
+
},
|
|
76
|
+
link: {
|
|
77
|
+
color: theme.colors.primary,
|
|
78
|
+
textDecorationLine: 'underline'
|
|
79
|
+
},
|
|
80
|
+
code_inline: {
|
|
81
|
+
backgroundColor: theme.colors.muted,
|
|
82
|
+
color: theme.colors.foreground,
|
|
83
|
+
fontFamily: theme.typography.monoFontFamily,
|
|
84
|
+
fontSize: theme.typography.fontSize.sm,
|
|
85
|
+
paddingHorizontal: 4,
|
|
86
|
+
paddingVertical: 2,
|
|
87
|
+
borderRadius: theme.radius.sm
|
|
88
|
+
},
|
|
89
|
+
code_block: {
|
|
90
|
+
backgroundColor: theme.dark ? '#1E1E1E' : '#F8F8F8',
|
|
91
|
+
color: theme.colors.foreground,
|
|
92
|
+
fontFamily: theme.typography.monoFontFamily,
|
|
93
|
+
fontSize: theme.typography.fontSize.sm,
|
|
94
|
+
lineHeight: theme.typography.fontSize.sm * theme.typography.lineHeight.relaxed,
|
|
95
|
+
padding: theme.spacing.md,
|
|
96
|
+
borderRadius: theme.radius.md,
|
|
97
|
+
marginVertical: theme.spacing.sm
|
|
98
|
+
},
|
|
99
|
+
fence: {
|
|
100
|
+
backgroundColor: theme.dark ? '#1E1E1E' : '#F8F8F8',
|
|
101
|
+
color: theme.colors.foreground,
|
|
102
|
+
fontFamily: theme.typography.monoFontFamily,
|
|
103
|
+
fontSize: theme.typography.fontSize.sm,
|
|
104
|
+
lineHeight: theme.typography.fontSize.sm * theme.typography.lineHeight.relaxed,
|
|
105
|
+
padding: theme.spacing.md,
|
|
106
|
+
borderRadius: theme.radius.md,
|
|
107
|
+
marginVertical: theme.spacing.sm
|
|
108
|
+
},
|
|
109
|
+
blockquote: {
|
|
110
|
+
backgroundColor: theme.colors.muted,
|
|
111
|
+
borderLeftColor: theme.colors.border,
|
|
112
|
+
borderLeftWidth: 3,
|
|
113
|
+
paddingHorizontal: theme.spacing.md,
|
|
114
|
+
paddingVertical: theme.spacing.sm,
|
|
115
|
+
marginVertical: theme.spacing.sm,
|
|
116
|
+
borderRadius: theme.radius.sm
|
|
117
|
+
},
|
|
118
|
+
bullet_list: {
|
|
119
|
+
marginVertical: theme.spacing.xs
|
|
120
|
+
},
|
|
121
|
+
ordered_list: {
|
|
122
|
+
marginVertical: theme.spacing.xs
|
|
123
|
+
},
|
|
124
|
+
list_item: {
|
|
125
|
+
flexDirection: 'row',
|
|
126
|
+
marginVertical: 2
|
|
127
|
+
},
|
|
128
|
+
bullet_list_icon: {
|
|
129
|
+
color: theme.colors.mutedForeground,
|
|
130
|
+
fontSize: theme.typography.fontSize.md,
|
|
131
|
+
lineHeight: theme.typography.fontSize.md * theme.typography.lineHeight.normal,
|
|
132
|
+
marginRight: theme.spacing.sm
|
|
133
|
+
},
|
|
134
|
+
ordered_list_icon: {
|
|
135
|
+
color: theme.colors.mutedForeground,
|
|
136
|
+
fontSize: theme.typography.fontSize.md,
|
|
137
|
+
lineHeight: theme.typography.fontSize.md * theme.typography.lineHeight.normal,
|
|
138
|
+
marginRight: theme.spacing.sm
|
|
139
|
+
},
|
|
140
|
+
table: {
|
|
141
|
+
borderWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
142
|
+
borderColor: theme.colors.border,
|
|
143
|
+
borderRadius: theme.radius.sm,
|
|
144
|
+
marginVertical: theme.spacing.sm
|
|
145
|
+
},
|
|
146
|
+
thead: {
|
|
147
|
+
backgroundColor: theme.colors.muted
|
|
148
|
+
},
|
|
149
|
+
th: {
|
|
150
|
+
padding: theme.spacing.sm,
|
|
151
|
+
borderRightWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
152
|
+
borderColor: theme.colors.border,
|
|
153
|
+
fontWeight: theme.typography.fontWeight.semibold
|
|
154
|
+
},
|
|
155
|
+
tr: {
|
|
156
|
+
borderBottomWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
157
|
+
borderColor: theme.colors.border
|
|
158
|
+
},
|
|
159
|
+
td: {
|
|
160
|
+
padding: theme.spacing.sm,
|
|
161
|
+
borderRightWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
162
|
+
borderColor: theme.colors.border
|
|
163
|
+
},
|
|
164
|
+
hr: {
|
|
165
|
+
backgroundColor: theme.colors.border,
|
|
166
|
+
height: 1,
|
|
167
|
+
marginVertical: theme.spacing.lg
|
|
168
|
+
},
|
|
169
|
+
paragraph: {
|
|
170
|
+
marginVertical: theme.spacing.xs
|
|
171
|
+
},
|
|
172
|
+
image: {
|
|
173
|
+
borderRadius: theme.radius.md
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Memoized markdown body. Re-renders only when the content string or theme
|
|
179
|
+
* styles change — mirroring the `memo(MessageResponse)` pattern that Vercel
|
|
180
|
+
* ai-elements uses around `Streamdown`
|
|
181
|
+
* (opensrc/.../vercel/ai-elements/packages/elements/src/message.tsx:326).
|
|
182
|
+
*/
|
|
183
|
+
const MemoMarkdown = /*#__PURE__*/(0, _react.memo)(({
|
|
184
|
+
content,
|
|
185
|
+
styles,
|
|
186
|
+
onLinkPress
|
|
187
|
+
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeMarkdownDisplay.default, {
|
|
188
|
+
style: styles,
|
|
189
|
+
mergeStyle: true,
|
|
190
|
+
onLinkPress: onLinkPress,
|
|
191
|
+
children: content
|
|
192
|
+
}), (prev, next) => prev.content === next.content && prev.styles === next.styles && prev.onLinkPress === next.onLinkPress);
|
|
193
|
+
MemoMarkdown.displayName = 'MemoMarkdown';
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* StreamingMarkdown — renders markdown content using react-native-markdown-display.
|
|
197
|
+
*
|
|
198
|
+
* Deliberately matches the simplicity of Vercel ai-elements'
|
|
199
|
+
* `MessageResponse` (a memoized wrapper around `Streamdown`): no custom
|
|
200
|
+
* fade animations, no block-level entrance effects, no opacity tricks,
|
|
201
|
+
* **no additional throttling**. Content re-renders as it grows and the
|
|
202
|
+
* visual "streaming" feel comes from the tokens arriving incrementally
|
|
203
|
+
* from the network.
|
|
204
|
+
*
|
|
205
|
+
* **Why no RAF throttling?** We used to throttle updates to ~60fps via
|
|
206
|
+
* `requestAnimationFrame` inside this component. That sounds good on
|
|
207
|
+
* paper but stacks badly with `useChat`'s own `experimental_throttle`:
|
|
208
|
+
* the two timers drift out of phase, and you end up seeing "first word,
|
|
209
|
+
* then the rest of the text all at once" on subsequent messages. Vercel
|
|
210
|
+
* ai-elements trusts `useChat` entirely and does the same — see
|
|
211
|
+
* `opensrc/.../vercel/ai-elements/packages/elements/src/message.tsx:326`.
|
|
212
|
+
* If you need to throttle the re-render rate, set
|
|
213
|
+
* `experimental_throttle: 25` (or whatever) on the `useChat` call. Don't
|
|
214
|
+
* layer a second throttler here.
|
|
215
|
+
*
|
|
216
|
+
* What IS preserved:
|
|
217
|
+
* - `stabilizePartialMarkdown` — closes unclosed code fences mid-stream
|
|
218
|
+
* so the parser doesn't swallow the rest of the message as code.
|
|
219
|
+
* Pure correctness, not visual.
|
|
220
|
+
* - `MemoMarkdown` — shallow-equal memoization so identical content
|
|
221
|
+
* doesn't re-parse. Matches `memo(MessageResponse)` in ai-elements.
|
|
222
|
+
*/
|
|
223
|
+
function StreamingMarkdown({
|
|
224
|
+
content,
|
|
225
|
+
isStreaming = false,
|
|
226
|
+
style
|
|
227
|
+
}) {
|
|
228
|
+
const theme = (0, _theme.useAIElementsTheme)();
|
|
229
|
+
const markdownStyles = (0, _react.useMemo)(() => createMarkdownStyles(theme), [theme]);
|
|
230
|
+
const handleLinkPress = (0, _react.useCallback)(url => {
|
|
231
|
+
_reactNative.Linking.openURL(url).catch(() => {});
|
|
232
|
+
return false;
|
|
233
|
+
}, []);
|
|
234
|
+
const displayContent = (0, _react.useMemo)(() => isStreaming ? stabilizePartialMarkdown(content) : content, [content, isStreaming]);
|
|
235
|
+
if (displayContent.length === 0) {
|
|
236
|
+
return null;
|
|
237
|
+
}
|
|
238
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
239
|
+
style: [styles.container, style],
|
|
240
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(MemoMarkdown, {
|
|
241
|
+
content: displayContent,
|
|
242
|
+
styles: markdownStyles,
|
|
243
|
+
onLinkPress: handleLinkPress
|
|
244
|
+
})
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
const styles = _reactNative.StyleSheet.create({
|
|
248
|
+
container: {
|
|
249
|
+
flexShrink: 1
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
//# sourceMappingURL=StreamingMarkdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeMarkdownDisplay","_interopRequireDefault","_theme","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","stabilizePartialMarkdown","content","fenceMatches","match","fenceCount","length","needsNewline","endsWith","createMarkdownStyles","theme","body","color","colors","foreground","fontSize","lineHeight","typography","normal","fontFamily","heading1","fontWeight","bold","tight","marginTop","spacing","lg","marginBottom","md","heading2","xl","sm","heading3","semibold","heading4","xs","strong","em","fontStyle","link","primary","textDecorationLine","code_inline","backgroundColor","muted","monoFontFamily","paddingHorizontal","paddingVertical","borderRadius","radius","code_block","dark","relaxed","padding","marginVertical","fence","blockquote","borderLeftColor","border","borderLeftWidth","bullet_list","ordered_list","list_item","flexDirection","bullet_list_icon","mutedForeground","marginRight","ordered_list_icon","table","borderWidth","StyleSheet","hairlineWidth","borderColor","thead","th","borderRightWidth","tr","borderBottomWidth","td","hr","height","paragraph","image","MemoMarkdown","memo","styles","onLinkPress","jsx","style","mergeStyle","children","prev","next","displayName","StreamingMarkdown","isStreaming","useAIElementsTheme","markdownStyles","useMemo","handleLinkPress","useCallback","url","Linking","openURL","catch","displayContent","View","container","create","flexShrink"],"sourceRoot":"../../../src","sources":["streaming/StreamingMarkdown.tsx"],"mapp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IACnDC,oBAAO,CAACC,OAAO,CAACF,GAAG,CAAC,CAACG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACpC,OAAO,KAAK;EACd,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMC,cAAc,GAAG,IAAAP,cAAO,EAC5B,MAAOH,WAAW,GAAG9F,wBAAwB,CAACC,OAAO,CAAC,GAAGA,OAAQ,EACjE,CAACA,OAAO,EAAE6F,WAAW,CACvB,CAAC;EAED,IAAIU,cAAc,CAACnG,MAAM,KAAK,CAAC,EAAE;IAC/B,OAAO,IAAI;EACb;EAEA,oBACE,IAAAzB,WAAA,CAAA0G,GAAA,EAAC9G,YAAA,CAAAiI,IAAI;IAAClB,KAAK,EAAE,CAACH,MAAM,CAACsB,SAAS,EAAEnB,KAAK,CAAE;IAAAE,QAAA,eACrC,IAAA7G,WAAA,CAAA0G,GAAA,EAACJ,YAAY;MACXjF,OAAO,EAAEuG,cAAe;MACxBpB,MAAM,EAAEY,cAAe;MACvBX,WAAW,EAAEa;IAAgB,CAC9B;EAAC,CACE,CAAC;AAEX;AAEA,MAAMd,MAAM,GAAGf,uBAAU,CAACsC,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "StreamingMarkdown", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _StreamingMarkdown.StreamingMarkdown;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _StreamingMarkdown = require("./StreamingMarkdown");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_StreamingMarkdown","require"],"sourceRoot":"../../../src","sources":["streaming/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA","ignoreList":[]}
|