@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.
@@ -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-AWNBBBH7.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ChatRoot-EJC5Y2YM.cjs"}
@@ -0,0 +1,5 @@
1
+ export { ChatRoot } from './chunk-QLMKCSR6.mjs';
2
+ import './chunk-NWUT327A.mjs';
3
+ import './chunk-N2XQF2OL.mjs';
4
+ //# sourceMappingURL=ChatRoot-QOSKJPM6.mjs.map
5
+ //# sourceMappingURL=ChatRoot-QOSKJPM6.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"ChatRoot-VJKOAVPQ.mjs"}
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__ */ jsx("div", { className: cn("mt-2 space-y-1.5", className), children: calls.map((call) => /* @__PURE__ */ jsx(
1895
- ToolCallItem,
1896
- {
1897
- call,
1898
- defaultExpanded,
1899
- expandWhileStreaming,
1900
- renderInput,
1901
- renderOutput,
1902
- renderStreaming,
1903
- renderPayload
1904
- },
1905
- call.id
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-BDWVCSM5.mjs.map
2412
- //# sourceMappingURL=chunk-BDWVCSM5.mjs.map
2419
+ //# sourceMappingURL=chunk-QLMKCSR6.mjs.map
2420
+ //# sourceMappingURL=chunk-QLMKCSR6.mjs.map