@smart-cloud/ai-kit-ui 1.5.33 → 1.5.35
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/dist/ai-chatbot/chatStream.d.ts +4 -0
- package/dist/ai-chatbot/citations.d.ts +1 -0
- package/dist/ai-kit-ui.css +71 -0
- package/dist/index.cjs +7 -7
- package/dist/index.js +8 -8
- package/package.json +2 -2
|
@@ -79,6 +79,10 @@ export declare class ChatStreamError extends Error {
|
|
|
79
79
|
constructor(message: string, code: string, retryable?: boolean, status?: number, requestId?: string);
|
|
80
80
|
}
|
|
81
81
|
export declare function isToolActivity(activity: ChatActivity): boolean;
|
|
82
|
+
/** Display useful execution history plus the latest active stage, not old thinking rows.
|
|
83
|
+
* The full activity list stays intact for persistence, diagnostics and replay.
|
|
84
|
+
*/
|
|
85
|
+
export declare function visibleProgressActivities(activities: readonly ChatActivity[]): ChatActivity[];
|
|
82
86
|
/** An unnamed successful internal operation is not useful visitor-facing history. */
|
|
83
87
|
export declare function isSummaryActivity(activity: ChatActivity): boolean;
|
|
84
88
|
export declare function summarizeChatActivities(activities: ChatActivity[]): {
|
package/dist/ai-kit-ui.css
CHANGED
|
@@ -910,6 +910,77 @@
|
|
|
910
910
|
min-height: 64px;
|
|
911
911
|
}
|
|
912
912
|
|
|
913
|
+
/* One idle row at every size; focus within the whole composer opens the editor. */
|
|
914
|
+
.ai-composer .ai-message {
|
|
915
|
+
min-width: 0;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
.ai-composer .ai-composer-send,
|
|
919
|
+
.ai-composer .ai-composer-reset {
|
|
920
|
+
min-height: 44px;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.ai-composer[data-composer-expanded="true"] .ai-composer-reset-actions {
|
|
924
|
+
order: -1;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.ai-composer[data-composer-expanded="false"] {
|
|
928
|
+
display: grid;
|
|
929
|
+
grid-template-columns: minmax(0, 1fr) 44px 44px;
|
|
930
|
+
align-items: center;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.ai-composer[data-composer-expanded="false"] .ai-composer-field {
|
|
934
|
+
grid-column: 1;
|
|
935
|
+
grid-row: 1;
|
|
936
|
+
min-width: 0;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
.ai-composer[data-composer-expanded="false"] .ai-message textarea {
|
|
940
|
+
min-height: 44px;
|
|
941
|
+
max-height: 44px;
|
|
942
|
+
resize: none;
|
|
943
|
+
overflow-y: auto !important;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
.ai-composer[data-composer-expanded="false"] .ai-actions,
|
|
947
|
+
.ai-composer[data-composer-expanded="false"] .ai-composer-send-actions,
|
|
948
|
+
.ai-composer[data-composer-expanded="false"] .ai-composer-reset-actions {
|
|
949
|
+
display: contents;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.ai-composer[data-composer-expanded="false"] .ai-composer-send,
|
|
953
|
+
.ai-composer[data-composer-expanded="false"] .ai-composer-reset {
|
|
954
|
+
width: 44px;
|
|
955
|
+
height: 44px;
|
|
956
|
+
min-width: 44px;
|
|
957
|
+
padding: 0;
|
|
958
|
+
grid-row: 1;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
.ai-composer[data-composer-expanded="false"] .ai-composer-send {
|
|
962
|
+
grid-column: 2;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
.ai-composer[data-composer-expanded="false"] .ai-composer-reset {
|
|
966
|
+
grid-column: 3;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
.ai-composer[data-composer-expanded="false"] .ai-composer-action-label,
|
|
970
|
+
.ai-composer[data-composer-expanded="false"] [data-ai-kit-add-image-button],
|
|
971
|
+
.ai-composer[data-composer-expanded="false"] [data-ai-kit-clear-audio-button],
|
|
972
|
+
.ai-composer[data-composer-expanded="false"] [data-ai-kit-microphone-button] {
|
|
973
|
+
display: none;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.ai-composer[data-composer-expanded="false"] .mantine-Button-section {
|
|
977
|
+
margin-inline: 0;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
.ai-composer[data-composer-expanded="false"] .ai-thumbs {
|
|
981
|
+
grid-column: 1 / -1;
|
|
982
|
+
}
|
|
983
|
+
|
|
913
984
|
.ai-answer-link:hover {
|
|
914
985
|
filter: brightness(.94);
|
|
915
986
|
}
|