@djangocfg/ui-tools 2.1.377 → 2.1.379
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/ChatRoot-EJC5Y2YM.cjs +14 -0
- package/dist/{ChatRoot-AWNBBBH7.cjs.map → ChatRoot-EJC5Y2YM.cjs.map} +1 -1
- package/dist/ChatRoot-QOSKJPM6.mjs +5 -0
- package/dist/{ChatRoot-VJKOAVPQ.mjs.map → ChatRoot-QOSKJPM6.mjs.map} +1 -1
- package/dist/{chunk-BDWVCSM5.mjs → chunk-QLMKCSR6.mjs} +23 -15
- package/dist/chunk-QLMKCSR6.mjs.map +1 -0
- package/dist/{chunk-TUZZROQU.cjs → chunk-SI5RD2GD.cjs} +23 -15
- package/dist/chunk-SI5RD2GD.cjs.map +1 -0
- package/dist/index.cjs +51 -51
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.mjs +3 -3
- package/package.json +6 -6
- package/src/tools/Chat/Chat.story.tsx +101 -0
- package/src/tools/Chat/README.md +65 -1
- package/src/tools/Chat/components/ToolCalls.tsx +39 -12
- package/dist/ChatRoot-AWNBBBH7.cjs +0 -14
- package/dist/ChatRoot-VJKOAVPQ.mjs +0 -5
- package/dist/chunk-BDWVCSM5.mjs.map +0 -1
- package/dist/chunk-TUZZROQU.cjs.map +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkSI5RD2GD_cjs = require('./chunk-SI5RD2GD.cjs');
|
|
4
|
+
require('./chunk-XACCHZH2.cjs');
|
|
5
|
+
require('./chunk-OLISEQHS.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "ChatRoot", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkSI5RD2GD_cjs.ChatRoot; }
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=ChatRoot-EJC5Y2YM.cjs.map
|
|
14
|
+
//# sourceMappingURL=ChatRoot-EJC5Y2YM.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"ChatRoot-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"ChatRoot-EJC5Y2YM.cjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"ChatRoot-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"ChatRoot-QOSKJPM6.mjs"}
|
|
@@ -1888,22 +1888,30 @@ function ToolCalls({
|
|
|
1888
1888
|
renderOutput,
|
|
1889
1889
|
renderStreaming,
|
|
1890
1890
|
renderPayload,
|
|
1891
|
+
renderAfterCalls,
|
|
1892
|
+
renderToolCall,
|
|
1893
|
+
hideToolCalls = false,
|
|
1891
1894
|
className
|
|
1892
1895
|
}) {
|
|
1893
1896
|
if (!calls?.length) return null;
|
|
1894
|
-
return /* @__PURE__ */
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1897
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("mt-2 space-y-1.5", className), children: [
|
|
1898
|
+
!hideToolCalls && calls.map(
|
|
1899
|
+
(call) => renderToolCall ? /* @__PURE__ */ jsx("div", { children: renderToolCall(call) }, call.id) : /* @__PURE__ */ jsx(
|
|
1900
|
+
ToolCallItem,
|
|
1901
|
+
{
|
|
1902
|
+
call,
|
|
1903
|
+
defaultExpanded,
|
|
1904
|
+
expandWhileStreaming,
|
|
1905
|
+
renderInput,
|
|
1906
|
+
renderOutput,
|
|
1907
|
+
renderStreaming,
|
|
1908
|
+
renderPayload
|
|
1909
|
+
},
|
|
1910
|
+
call.id
|
|
1911
|
+
)
|
|
1912
|
+
),
|
|
1913
|
+
renderAfterCalls ? renderAfterCalls(calls) : null
|
|
1914
|
+
] });
|
|
1907
1915
|
}
|
|
1908
1916
|
__name(ToolCalls, "ToolCalls");
|
|
1909
1917
|
function ToolCallItem({
|
|
@@ -2408,5 +2416,5 @@ function copy(text) {
|
|
|
2408
2416
|
__name(copy, "copy");
|
|
2409
2417
|
|
|
2410
2418
|
export { Attachments, AttachmentsGrid, AttachmentsList, CHAT_EVENT_NAME, CSS_VARS, ChatProvider, ChatRoot, Composer, DEFAULT_LABELS, DEFAULT_SIDEBAR, DEFAULT_Z_INDEX, EmptyState, ErrorBanner, HOTKEYS, JumpToLatest, LIMITS, MessageActions, MessageBubble, MessageList, STORAGE_KEYS, Sources, StreamingIndicator, ToolCalls, createId, createTokenBuffer, deriveInitials, getChatLogger, initialState, isSubmittableDraft, reducer, resolvePersona, sanitizeDraft, useChat, useChatAudio, useChatAudioPrefs, useChatComposer, useChatContext, useChatContextOptional, useChatLayout };
|
|
2411
|
-
//# sourceMappingURL=chunk-
|
|
2412
|
-
//# sourceMappingURL=chunk-
|
|
2419
|
+
//# sourceMappingURL=chunk-QLMKCSR6.mjs.map
|
|
2420
|
+
//# sourceMappingURL=chunk-QLMKCSR6.mjs.map
|