@stackone/malachite 2.92.0 → 2.93.0
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/COMPONENTS.md +1 -1
- package/dist/components/Chat/ChatReasoning.js +40 -0
- package/dist/components/Chat/ChatReasoning.js.map +1 -0
- package/dist/components/Chat/ChatToolCall.js +57 -43
- package/dist/components/Chat/ChatToolCall.js.map +1 -1
- package/dist/components/Chat/index.js +12 -10
- package/dist/components/Chat/index.js.map +1 -1
- package/dist/components/Chat/stickToBottom.js +23 -17
- package/dist/components/Chat/stickToBottom.js.map +1 -1
- package/dist/components/CodeBlock.js +49 -48
- package/dist/components/CodeBlock.js.map +1 -1
- package/dist/components/CodeBlockHighlighter.js +22 -22
- package/dist/components/CodeBlockHighlighter.js.map +1 -1
- package/dist/components/Typography/MarkdownBlock.js +136 -103
- package/dist/components/Typography/MarkdownBlock.js.map +1 -1
- package/dist/components/codeBlockStyles.js +6 -5
- package/dist/components/codeBlockStyles.js.map +1 -1
- package/dist/index.d.ts +19 -4
- package/dist/tailwind.css.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -758,6 +758,7 @@ declare interface ChatComponent extends default_2.FC<ChatProps> {
|
|
|
758
758
|
Message: default_2.FC<ChatMessageProps>;
|
|
759
759
|
ToolCall: default_2.FC<ChatToolCallProps>;
|
|
760
760
|
Thinking: default_2.FC<ChatThinkingProps>;
|
|
761
|
+
Reasoning: default_2.FC<ChatReasoningProps>;
|
|
761
762
|
Composer: default_2.FC<ChatComposerProps>;
|
|
762
763
|
ComposerChip: default_2.FC<ChatComposerChipProps>;
|
|
763
764
|
Context: default_2.FC<ChatContextProps>;
|
|
@@ -953,6 +954,15 @@ export declare interface ChatProps {
|
|
|
953
954
|
className?: string;
|
|
954
955
|
}
|
|
955
956
|
|
|
957
|
+
export declare interface ChatReasoningProps {
|
|
958
|
+
/** Markdown. Absent or empty while nothing has arrived, or if the model summarised nothing. */
|
|
959
|
+
text?: string;
|
|
960
|
+
/** The model is still reasoning. Opens the card until it stops. */
|
|
961
|
+
streaming?: boolean;
|
|
962
|
+
title?: string;
|
|
963
|
+
className?: string;
|
|
964
|
+
}
|
|
965
|
+
|
|
956
966
|
export declare type ChatRole = 'user' | 'assistant';
|
|
957
967
|
|
|
958
968
|
export declare interface ChatSuggestionProps {
|
|
@@ -1001,15 +1011,20 @@ export declare interface ChatToolCallProps {
|
|
|
1001
1011
|
* was taking two lines of the transcript to say nothing a reader wanted.
|
|
1002
1012
|
*/
|
|
1003
1013
|
callId?: string;
|
|
1004
|
-
/** Arguments the assistant sent. */
|
|
1005
|
-
input?: object;
|
|
1014
|
+
/** Arguments the assistant sent. A string is shown as it is, for a payload that is not JSON. */
|
|
1015
|
+
input?: object | string;
|
|
1006
1016
|
/** What the call returned. Absent while it is still running. */
|
|
1007
|
-
output?: object;
|
|
1017
|
+
output?: object | string;
|
|
1018
|
+
/** Sits before the status on the row, outside the toggle, e.g. a risk indicator. */
|
|
1019
|
+
adornment?: default_2.ReactNode;
|
|
1020
|
+
/** Anything else the expanded card should carry, below the payloads. Unmounts on close. */
|
|
1021
|
+
children?: default_2.ReactNode;
|
|
1008
1022
|
defaultExpanded?: boolean;
|
|
1009
1023
|
className?: string;
|
|
1010
1024
|
}
|
|
1011
1025
|
|
|
1012
|
-
|
|
1026
|
+
/** `blocked` is a call something refused to let run, which is not the call having failed. */
|
|
1027
|
+
export declare type ChatToolCallStatus = 'running' | 'completed' | 'error' | 'blocked';
|
|
1013
1028
|
|
|
1014
1029
|
export declare const Checkbox: default_2.FC<CheckboxProps>;
|
|
1015
1030
|
|