@uipath/apollo-react 4.5.0 → 4.5.2

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.
Files changed (37) hide show
  1. package/dist/canvas/icons/CasePlanIcon.cjs +1 -1
  2. package/dist/canvas/icons/CasePlanIcon.js +1 -1
  3. package/dist/material/components/ap-tool-call/ApToolCall.cjs +127 -41
  4. package/dist/material/components/ap-tool-call/ApToolCall.d.ts.map +1 -1
  5. package/dist/material/components/ap-tool-call/ApToolCall.js +123 -38
  6. package/dist/material/components/ap-tool-call/ApToolCall.types.cjs +23 -1
  7. package/dist/material/components/ap-tool-call/ApToolCall.types.d.ts +9 -1
  8. package/dist/material/components/ap-tool-call/ApToolCall.types.d.ts.map +1 -1
  9. package/dist/material/components/ap-tool-call/ApToolCall.types.js +6 -0
  10. package/dist/material/components/ap-tool-call/assets/spanIcons.cjs +221 -0
  11. package/dist/material/components/ap-tool-call/assets/spanIcons.d.ts +2 -0
  12. package/dist/material/components/ap-tool-call/assets/spanIcons.d.ts.map +1 -0
  13. package/dist/material/components/ap-tool-call/assets/spanIcons.js +187 -0
  14. package/dist/material/components/ap-tool-call/components/NestedValue.d.ts +4 -0
  15. package/dist/material/components/ap-tool-call/components/NestedValue.d.ts.map +1 -0
  16. package/dist/material/components/ap-tool-call/{ToolCallSection.cjs → components/ToolCallSection.cjs} +5 -1
  17. package/dist/material/components/ap-tool-call/components/ToolCallSection.d.ts +4 -0
  18. package/dist/material/components/ap-tool-call/components/ToolCallSection.d.ts.map +1 -0
  19. package/dist/material/components/ap-tool-call/{ToolCallSection.js → components/ToolCallSection.js} +5 -1
  20. package/dist/material/components/ap-tool-call/index.cjs +8 -4
  21. package/dist/material/components/ap-tool-call/index.d.ts +4 -3
  22. package/dist/material/components/ap-tool-call/index.d.ts.map +1 -1
  23. package/dist/material/components/ap-tool-call/index.js +4 -3
  24. package/dist/material/components/ap-tool-call/locales/en.cjs +1 -1
  25. package/dist/material/components/ap-tool-call/locales/en.d.ts.map +1 -1
  26. package/dist/material/components/ap-tool-call/locales/en.js +1 -1
  27. package/dist/material/components/ap-tool-call/utils/traceIconUtils.cjs +254 -0
  28. package/dist/material/components/ap-tool-call/utils/traceIconUtils.d.ts +3 -0
  29. package/dist/material/components/ap-tool-call/utils/traceIconUtils.d.ts.map +1 -0
  30. package/dist/material/components/ap-tool-call/utils/traceIconUtils.js +220 -0
  31. package/package.json +3 -3
  32. package/dist/material/components/ap-tool-call/NestedValue.d.ts +0 -4
  33. package/dist/material/components/ap-tool-call/NestedValue.d.ts.map +0 -1
  34. package/dist/material/components/ap-tool-call/ToolCallSection.d.ts +0 -4
  35. package/dist/material/components/ap-tool-call/ToolCallSection.d.ts.map +0 -1
  36. /package/dist/material/components/ap-tool-call/{NestedValue.cjs → components/NestedValue.cjs} +0 -0
  37. /package/dist/material/components/ap-tool-call/{NestedValue.js → components/NestedValue.js} +0 -0
@@ -0,0 +1,4 @@
1
+ import type React from 'react';
2
+ import type { NestedValueProps } from '../ApToolCall.types';
3
+ export declare const NestedValue: React.FC<NestedValueProps>;
4
+ //# sourceMappingURL=NestedValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NestedValue.d.ts","sourceRoot":"","sources":["../../../../../src/material/components/ap-tool-call/components/NestedValue.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAwD5D,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0DlD,CAAC"}
@@ -74,7 +74,7 @@ const SectionContent = (0, material_namespaceObject.styled)('div', {
74
74
  marginLeft: apollo_core_default().Spacing.SpacingXl,
75
75
  overflow: 'hidden',
76
76
  transition: 'max-height 0.2s ease',
77
- maxHeight: expanded ? '220px' : '0'
77
+ maxHeight: expanded ? 'fit-content' : '0'
78
78
  }));
79
79
  const KeyValueContainer = (0, material_namespaceObject.styled)('div')({
80
80
  maxHeight: '180px',
@@ -181,6 +181,10 @@ const ToolCallSection = ({ title, isExpanded, onToggle, data, children })=>{
181
181
  }),
182
182
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(SectionContent, {
183
183
  expanded: isExpanded,
184
+ "aria-hidden": !isExpanded,
185
+ ...!isExpanded && {
186
+ inert: true
187
+ },
184
188
  children: [
185
189
  isStringData && data && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(StringContent, {
186
190
  children: data
@@ -0,0 +1,4 @@
1
+ import type React from 'react';
2
+ import type { ToolCallSectionProps } from '../ApToolCall.types';
3
+ export declare const ToolCallSection: React.FC<ToolCallSectionProps>;
4
+ //# sourceMappingURL=ToolCallSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolCallSection.d.ts","sourceRoot":"","sources":["../../../../../src/material/components/ap-tool-call/components/ToolCallSection.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AA6HhE,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAyE1D,CAAC"}
@@ -33,7 +33,7 @@ const SectionContent = styled('div', {
33
33
  marginLeft: apollo_core.Spacing.SpacingXl,
34
34
  overflow: 'hidden',
35
35
  transition: 'max-height 0.2s ease',
36
- maxHeight: expanded ? '220px' : '0'
36
+ maxHeight: expanded ? 'fit-content' : '0'
37
37
  }));
38
38
  const KeyValueContainer = styled('div')({
39
39
  maxHeight: '180px',
@@ -140,6 +140,10 @@ const ToolCallSection = ({ title, isExpanded, onToggle, data, children })=>{
140
140
  }),
141
141
  /*#__PURE__*/ jsxs(SectionContent, {
142
142
  expanded: isExpanded,
143
+ "aria-hidden": !isExpanded,
144
+ ...!isExpanded && {
145
+ inert: true
146
+ },
143
147
  children: [
144
148
  isStringData && data && /*#__PURE__*/ jsx(StringContent, {
145
149
  children: data
@@ -33,17 +33,19 @@ var __webpack_require__ = {};
33
33
  var __webpack_exports__ = {};
34
34
  __webpack_require__.r(__webpack_exports__);
35
35
  __webpack_require__.d(__webpack_exports__, {
36
- NestedValue: ()=>external_NestedValue_cjs_namespaceObject.NestedValue,
37
36
  ApToolCall: ()=>ApToolCall,
38
- ToolCallSection: ()=>external_ToolCallSection_cjs_namespaceObject.ToolCallSection
37
+ NestedValue: ()=>NestedValue_cjs_namespaceObject.NestedValue,
38
+ ConversationalDisplayModeTypes: ()=>external_ApToolCall_types_cjs_namespaceObject.ConversationalDisplayModeTypes,
39
+ ToolCallSection: ()=>ToolCallSection_cjs_namespaceObject.ToolCallSection
39
40
  });
40
41
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
41
42
  const external_react_namespaceObject = require("react");
42
43
  var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
43
44
  const index_cjs_namespaceObject = require("../../../i18n/index.cjs");
44
45
  const external_ApToolCall_cjs_namespaceObject = require("./ApToolCall.cjs");
45
- const external_NestedValue_cjs_namespaceObject = require("./NestedValue.cjs");
46
- const external_ToolCallSection_cjs_namespaceObject = require("./ToolCallSection.cjs");
46
+ const external_ApToolCall_types_cjs_namespaceObject = require("./ApToolCall.types.cjs");
47
+ const NestedValue_cjs_namespaceObject = require("./components/NestedValue.cjs");
48
+ const ToolCallSection_cjs_namespaceObject = require("./components/ToolCallSection.cjs");
47
49
  const ApToolCall = /*#__PURE__*/ external_react_default().forwardRef(({ locale = 'en', ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.ApI18nProvider, {
48
50
  component: "material/components/ap-tool-call",
49
51
  locale: locale,
@@ -54,10 +56,12 @@ const ApToolCall = /*#__PURE__*/ external_react_default().forwardRef(({ locale =
54
56
  }));
55
57
  ApToolCall.displayName = 'ApToolCall';
56
58
  exports.ApToolCall = __webpack_exports__.ApToolCall;
59
+ exports.ConversationalDisplayModeTypes = __webpack_exports__.ConversationalDisplayModeTypes;
57
60
  exports.NestedValue = __webpack_exports__.NestedValue;
58
61
  exports.ToolCallSection = __webpack_exports__.ToolCallSection;
59
62
  for(var __rspack_i in __webpack_exports__)if (-1 === [
60
63
  "ApToolCall",
64
+ "ConversationalDisplayModeTypes",
61
65
  "NestedValue",
62
66
  "ToolCallSection"
63
67
  ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
@@ -5,7 +5,8 @@ export interface ApToolCallWithI18nProps extends ApToolCallProps {
5
5
  locale?: SupportedLocale;
6
6
  }
7
7
  export declare const ApToolCall: React.ForwardRefExoticComponent<ApToolCallWithI18nProps & React.RefAttributes<HTMLDivElement>>;
8
- export type { ApToolCallProps, ITreeNode, NestedValueProps, ToolCallSectionProps, ToolCallSectionType, TSpan, } from './ApToolCall.types';
9
- export { NestedValue } from './NestedValue';
10
- export { ToolCallSection } from './ToolCallSection';
8
+ export { ConversationalDisplayModeTypes } from './ApToolCall.types';
9
+ export type { ApToolCallProps, ConversationalDisplayMode, ITreeNode, NestedValueProps, ToolCallSectionProps, ToolCallSectionType, TSpan, } from './ApToolCall.types';
10
+ export { NestedValue } from './components/NestedValue';
11
+ export { ToolCallSection } from './components/ToolCallSection';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/material/components/ap-tool-call/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAErE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAK9D,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAKD,eAAO,MAAM,UAAU,gGAQtB,CAAC;AAIF,YAAY,EACV,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,GACN,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/material/components/ap-tool-call/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAErE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAK9D,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAKD,eAAO,MAAM,UAAU,gGAQtB,CAAC;AAIF,OAAO,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AACpE,YAAY,EACV,eAAe,EACf,yBAAyB,EACzB,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,GACN,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC"}
@@ -2,8 +2,9 @@ import { jsx } from "react/jsx-runtime";
2
2
  import react from "react";
3
3
  import { ApI18nProvider } from "../../../i18n/index.js";
4
4
  import { ApToolCall } from "./ApToolCall.js";
5
- import { NestedValue } from "./NestedValue.js";
6
- import { ToolCallSection } from "./ToolCallSection.js";
5
+ import { ConversationalDisplayModeTypes } from "./ApToolCall.types.js";
6
+ import { NestedValue } from "./components/NestedValue.js";
7
+ import { ToolCallSection } from "./components/ToolCallSection.js";
7
8
  const ap_tool_call_ApToolCall = /*#__PURE__*/ react.forwardRef(({ locale = 'en', ...props }, ref)=>/*#__PURE__*/ jsx(ApI18nProvider, {
8
9
  component: "material/components/ap-tool-call",
9
10
  locale: locale,
@@ -13,4 +14,4 @@ const ap_tool_call_ApToolCall = /*#__PURE__*/ react.forwardRef(({ locale = 'en',
13
14
  })
14
15
  }));
15
16
  ap_tool_call_ApToolCall.displayName = 'ApToolCall';
16
- export { ap_tool_call_ApToolCall as ApToolCall, NestedValue, ToolCallSection };
17
+ export { ap_tool_call_ApToolCall as ApToolCall, ConversationalDisplayModeTypes, NestedValue, ToolCallSection };
@@ -26,7 +26,7 @@ __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
27
  messages: ()=>messages
28
28
  });
29
- const messages = JSON.parse("{\"tool-call.errors\":[\"Errors\"],\"tool-call.escalation\":[\"Escalation\"],\"tool-call.execution\":[\"Execution\"],\"tool-call.input\":[\"Input\"],\"tool-call.output\":[\"Output\"],\"tool-call.ran\":[\"Ran \",[\"toolName\"],\" (\",[\"duration\"],\"s)\"],\"tool-call.running\":[\"Running \",[\"toolName\"],\"...\"]}");
29
+ const messages = JSON.parse("{\"tool-call.errors\":[\"Errors\"],\"tool-call.escalation\":[\"Escalation\"],\"tool-call.input\":[\"Input\"],\"tool-call.output\":[\"Output\"],\"tool-call.ran\":[\"Ran \",[\"toolName\"],\" (\",[\"duration\"],\"s)\"],\"tool-call.running\":[\"Running \",[\"toolName\"],\"...\"],\"tool-call.traces\":[\"Traces\"]}");
30
30
  exports.messages = __webpack_exports__.messages;
31
31
  for(var __rspack_i in __webpack_exports__)if (-1 === [
32
32
  "messages"
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../../src/material/components/ap-tool-call/locales/en.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAA8U,QAAQ,CAAC"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../../src/material/components/ap-tool-call/locales/en.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAAwU,QAAQ,CAAC"}
@@ -1,2 +1,2 @@
1
- const messages = JSON.parse("{\"tool-call.errors\":[\"Errors\"],\"tool-call.escalation\":[\"Escalation\"],\"tool-call.execution\":[\"Execution\"],\"tool-call.input\":[\"Input\"],\"tool-call.output\":[\"Output\"],\"tool-call.ran\":[\"Ran \",[\"toolName\"],\" (\",[\"duration\"],\"s)\"],\"tool-call.running\":[\"Running \",[\"toolName\"],\"...\"]}");
1
+ const messages = JSON.parse("{\"tool-call.errors\":[\"Errors\"],\"tool-call.escalation\":[\"Escalation\"],\"tool-call.input\":[\"Input\"],\"tool-call.output\":[\"Output\"],\"tool-call.ran\":[\"Ran \",[\"toolName\"],\" (\",[\"duration\"],\"s)\"],\"tool-call.running\":[\"Running \",[\"toolName\"],\"...\"],\"tool-call.traces\":[\"Traces\"]}");
2
2
  export { messages };
@@ -0,0 +1,254 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ getSpanIconSvg: ()=>getSpanIconSvg
28
+ });
29
+ const spanIcons_cjs_namespaceObject = require("../assets/spanIcons.cjs");
30
+ const SPAN_FUNCTION_TYPES = [
31
+ 'function_call_sync',
32
+ 'function_call_async',
33
+ 'function_call_generator_sync',
34
+ 'function_call_generator_async'
35
+ ];
36
+ const SPAN_ICON_MAP = new Map([
37
+ [
38
+ 'TimeTrigger',
39
+ 'time-trigger'
40
+ ],
41
+ [
42
+ 'QueueTrigger',
43
+ 'queue-trigger'
44
+ ],
45
+ [
46
+ 'ApiTrigger',
47
+ 'api-trigger'
48
+ ],
49
+ [
50
+ 'processTool',
51
+ 'process-tool'
52
+ ],
53
+ [
54
+ 'agentTool',
55
+ 'agent-tool'
56
+ ],
57
+ [
58
+ 'agentRun',
59
+ 'agent-run'
60
+ ],
61
+ [
62
+ 'parser',
63
+ 'parser-icon'
64
+ ],
65
+ [
66
+ 'chain',
67
+ 'link-icon'
68
+ ],
69
+ [
70
+ 'AgentToolCall',
71
+ 'agent-run'
72
+ ],
73
+ [
74
+ 'licensing',
75
+ 'lock-icon'
76
+ ],
77
+ [
78
+ 'ProcessRun',
79
+ 'process-run'
80
+ ],
81
+ [
82
+ 'ElementRun',
83
+ 'element-run'
84
+ ],
85
+ [
86
+ 'eval',
87
+ 'eval'
88
+ ],
89
+ [
90
+ 'OpenTelemetry',
91
+ 'settings-input-antenna-icon'
92
+ ],
93
+ [
94
+ 'toolPreGovernance',
95
+ 'pre-governance'
96
+ ],
97
+ [
98
+ 'escalationTool',
99
+ 'escalation-tool'
100
+ ],
101
+ [
102
+ 'toolPostGovernance',
103
+ 'post-governance'
104
+ ],
105
+ [
106
+ 'contextGroundingTool',
107
+ 'context-grounding-tool'
108
+ ],
109
+ [
110
+ 'apiWorkflowRun',
111
+ 'api-workflow-run'
112
+ ],
113
+ [
114
+ 'MCP Server',
115
+ 'mcp-server'
116
+ ],
117
+ [
118
+ 'MCP response',
119
+ 'mcp-response'
120
+ ],
121
+ [
122
+ 'MCP request',
123
+ 'mcp-request'
124
+ ],
125
+ [
126
+ 'conversation',
127
+ 'conversation-icon'
128
+ ],
129
+ [
130
+ 'conversationExchange',
131
+ 'conversation-exchange-icon'
132
+ ],
133
+ [
134
+ 'conversationUserMessage',
135
+ 'conversation-user-message-icon'
136
+ ],
137
+ [
138
+ 'conversationAgentMessage',
139
+ 'conversation-agent-message-icon'
140
+ ],
141
+ [
142
+ 'conversationContentPart',
143
+ 'conversation-content-part-icon'
144
+ ],
145
+ [
146
+ 'conversationToolCall',
147
+ 'conversation-tool-call-icon'
148
+ ],
149
+ [
150
+ 'conversationCitation',
151
+ 'conversation-citation-icon'
152
+ ],
153
+ [
154
+ 'agentMemoryLookup',
155
+ 'memory-space-icon'
156
+ ],
157
+ [
158
+ 'applyDynamicFewShot',
159
+ 'memory-space-icon'
160
+ ],
161
+ [
162
+ 'agentMemoryStore',
163
+ 'memory-space-icon'
164
+ ]
165
+ ]);
166
+ const API_WORKFLOW_TASK_ICON_MAP = new Map([
167
+ [
168
+ 'HTTP',
169
+ 'http-icon'
170
+ ],
171
+ [
172
+ 'Script',
173
+ "script-icon"
174
+ ],
175
+ [
176
+ 'Connector',
177
+ 'connector-icon'
178
+ ],
179
+ [
180
+ 'If',
181
+ 'if-icon'
182
+ ],
183
+ [
184
+ 'ForEach',
185
+ 'for-each-icon'
186
+ ],
187
+ [
188
+ 'TryCatch',
189
+ 'try-catch-icon'
190
+ ],
191
+ [
192
+ 'Response',
193
+ 'response-icon'
194
+ ],
195
+ [
196
+ 'DoWhile',
197
+ 'do-while-icon'
198
+ ],
199
+ [
200
+ 'Break',
201
+ 'break-icon'
202
+ ],
203
+ [
204
+ 'Assign',
205
+ 'assign-icon'
206
+ ],
207
+ [
208
+ 'Wait',
209
+ 'wait-icon'
210
+ ],
211
+ [
212
+ 'WorkflowStart',
213
+ 'workflow-start-icon'
214
+ ]
215
+ ]);
216
+ function getAttributes(span) {
217
+ const attrs = span.attributes;
218
+ if ('string' == typeof attrs) try {
219
+ return JSON.parse(attrs);
220
+ } catch {
221
+ return {};
222
+ }
223
+ return attrs ?? {};
224
+ }
225
+ function isFunctionSpan(type) {
226
+ return SPAN_FUNCTION_TYPES.includes(type);
227
+ }
228
+ function getIconKey(span) {
229
+ const spanType = span.type ?? '';
230
+ const simpleKey = SPAN_ICON_MAP.get(spanType);
231
+ if (simpleKey) return simpleKey;
232
+ const attrs = getAttributes(span);
233
+ switch(spanType){
234
+ case 'completion':
235
+ case 'agentOutput':
236
+ return attrs.model?.includes('gpt-') ? 'open-ai' : 'generic-ai';
237
+ case 'toolCall':
238
+ return 'Agent' === attrs.toolType ? 'agent-run' : 'process-tool';
239
+ case 'apiWorkflowTaskRun':
240
+ return API_WORKFLOW_TASK_ICON_MAP.get(attrs.taskType) ?? 'api-workflow-task-run';
241
+ default:
242
+ return isFunctionSpan(spanType) ? 'function-span' : 'default-trace-item';
243
+ }
244
+ }
245
+ function getSpanIconSvg(span) {
246
+ return spanIcons_cjs_namespaceObject.spanIconsMap.get(getIconKey(span)) ?? null;
247
+ }
248
+ exports.getSpanIconSvg = __webpack_exports__.getSpanIconSvg;
249
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
250
+ "getSpanIconSvg"
251
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
252
+ Object.defineProperty(exports, '__esModule', {
253
+ value: true
254
+ });
@@ -0,0 +1,3 @@
1
+ import type { TSpan } from '../ApToolCall.types';
2
+ export declare function getSpanIconSvg(span: TSpan): string | null;
3
+ //# sourceMappingURL=traceIconUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"traceIconUtils.d.ts","sourceRoot":"","sources":["../../../../../src/material/components/ap-tool-call/utils/traceIconUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAsGjD,wBAAgB,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAEzD"}
@@ -0,0 +1,220 @@
1
+ import { spanIconsMap } from "../assets/spanIcons.js";
2
+ const SPAN_FUNCTION_TYPES = [
3
+ 'function_call_sync',
4
+ 'function_call_async',
5
+ 'function_call_generator_sync',
6
+ 'function_call_generator_async'
7
+ ];
8
+ const SPAN_ICON_MAP = new Map([
9
+ [
10
+ 'TimeTrigger',
11
+ 'time-trigger'
12
+ ],
13
+ [
14
+ 'QueueTrigger',
15
+ 'queue-trigger'
16
+ ],
17
+ [
18
+ 'ApiTrigger',
19
+ 'api-trigger'
20
+ ],
21
+ [
22
+ 'processTool',
23
+ 'process-tool'
24
+ ],
25
+ [
26
+ 'agentTool',
27
+ 'agent-tool'
28
+ ],
29
+ [
30
+ 'agentRun',
31
+ 'agent-run'
32
+ ],
33
+ [
34
+ 'parser',
35
+ 'parser-icon'
36
+ ],
37
+ [
38
+ 'chain',
39
+ 'link-icon'
40
+ ],
41
+ [
42
+ 'AgentToolCall',
43
+ 'agent-run'
44
+ ],
45
+ [
46
+ 'licensing',
47
+ 'lock-icon'
48
+ ],
49
+ [
50
+ 'ProcessRun',
51
+ 'process-run'
52
+ ],
53
+ [
54
+ 'ElementRun',
55
+ 'element-run'
56
+ ],
57
+ [
58
+ 'eval',
59
+ 'eval'
60
+ ],
61
+ [
62
+ 'OpenTelemetry',
63
+ 'settings-input-antenna-icon'
64
+ ],
65
+ [
66
+ 'toolPreGovernance',
67
+ 'pre-governance'
68
+ ],
69
+ [
70
+ 'escalationTool',
71
+ 'escalation-tool'
72
+ ],
73
+ [
74
+ 'toolPostGovernance',
75
+ 'post-governance'
76
+ ],
77
+ [
78
+ 'contextGroundingTool',
79
+ 'context-grounding-tool'
80
+ ],
81
+ [
82
+ 'apiWorkflowRun',
83
+ 'api-workflow-run'
84
+ ],
85
+ [
86
+ 'MCP Server',
87
+ 'mcp-server'
88
+ ],
89
+ [
90
+ 'MCP response',
91
+ 'mcp-response'
92
+ ],
93
+ [
94
+ 'MCP request',
95
+ 'mcp-request'
96
+ ],
97
+ [
98
+ 'conversation',
99
+ 'conversation-icon'
100
+ ],
101
+ [
102
+ 'conversationExchange',
103
+ 'conversation-exchange-icon'
104
+ ],
105
+ [
106
+ 'conversationUserMessage',
107
+ 'conversation-user-message-icon'
108
+ ],
109
+ [
110
+ 'conversationAgentMessage',
111
+ 'conversation-agent-message-icon'
112
+ ],
113
+ [
114
+ 'conversationContentPart',
115
+ 'conversation-content-part-icon'
116
+ ],
117
+ [
118
+ 'conversationToolCall',
119
+ 'conversation-tool-call-icon'
120
+ ],
121
+ [
122
+ 'conversationCitation',
123
+ 'conversation-citation-icon'
124
+ ],
125
+ [
126
+ 'agentMemoryLookup',
127
+ 'memory-space-icon'
128
+ ],
129
+ [
130
+ 'applyDynamicFewShot',
131
+ 'memory-space-icon'
132
+ ],
133
+ [
134
+ 'agentMemoryStore',
135
+ 'memory-space-icon'
136
+ ]
137
+ ]);
138
+ const API_WORKFLOW_TASK_ICON_MAP = new Map([
139
+ [
140
+ 'HTTP',
141
+ 'http-icon'
142
+ ],
143
+ [
144
+ 'Script',
145
+ "script-icon"
146
+ ],
147
+ [
148
+ 'Connector',
149
+ 'connector-icon'
150
+ ],
151
+ [
152
+ 'If',
153
+ 'if-icon'
154
+ ],
155
+ [
156
+ 'ForEach',
157
+ 'for-each-icon'
158
+ ],
159
+ [
160
+ 'TryCatch',
161
+ 'try-catch-icon'
162
+ ],
163
+ [
164
+ 'Response',
165
+ 'response-icon'
166
+ ],
167
+ [
168
+ 'DoWhile',
169
+ 'do-while-icon'
170
+ ],
171
+ [
172
+ 'Break',
173
+ 'break-icon'
174
+ ],
175
+ [
176
+ 'Assign',
177
+ 'assign-icon'
178
+ ],
179
+ [
180
+ 'Wait',
181
+ 'wait-icon'
182
+ ],
183
+ [
184
+ 'WorkflowStart',
185
+ 'workflow-start-icon'
186
+ ]
187
+ ]);
188
+ function getAttributes(span) {
189
+ const attrs = span.attributes;
190
+ if ('string' == typeof attrs) try {
191
+ return JSON.parse(attrs);
192
+ } catch {
193
+ return {};
194
+ }
195
+ return attrs ?? {};
196
+ }
197
+ function isFunctionSpan(type) {
198
+ return SPAN_FUNCTION_TYPES.includes(type);
199
+ }
200
+ function getIconKey(span) {
201
+ const spanType = span.type ?? '';
202
+ const simpleKey = SPAN_ICON_MAP.get(spanType);
203
+ if (simpleKey) return simpleKey;
204
+ const attrs = getAttributes(span);
205
+ switch(spanType){
206
+ case 'completion':
207
+ case 'agentOutput':
208
+ return attrs.model?.includes('gpt-') ? 'open-ai' : 'generic-ai';
209
+ case 'toolCall':
210
+ return 'Agent' === attrs.toolType ? 'agent-run' : 'process-tool';
211
+ case 'apiWorkflowTaskRun':
212
+ return API_WORKFLOW_TASK_ICON_MAP.get(attrs.taskType) ?? 'api-workflow-task-run';
213
+ default:
214
+ return isFunctionSpan(spanType) ? 'function-span' : 'default-trace-item';
215
+ }
216
+ }
217
+ function getSpanIconSvg(span) {
218
+ return spanIconsMap.get(getIconKey(span)) ?? null;
219
+ }
220
+ export { getSpanIconSvg };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "4.5.0",
3
+ "version": "4.5.2",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",
@@ -201,8 +201,8 @@
201
201
  "use-sync-external-store": "^1.2.0",
202
202
  "zod": "^4.3.5",
203
203
  "zustand": "^5.0.9",
204
- "@uipath/apollo-wind": "2.1.1",
205
- "@uipath/apollo-core": "5.9.0"
204
+ "@uipath/apollo-core": "5.9.0",
205
+ "@uipath/apollo-wind": "2.1.1"
206
206
  },
207
207
  "devDependencies": {
208
208
  "@tailwindcss/cli": "^4.1.17",
@@ -1,4 +0,0 @@
1
- import type React from 'react';
2
- import type { NestedValueProps } from './ApToolCall.types';
3
- export declare const NestedValue: React.FC<NestedValueProps>;
4
- //# sourceMappingURL=NestedValue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NestedValue.d.ts","sourceRoot":"","sources":["../../../../src/material/components/ap-tool-call/NestedValue.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAwD3D,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0DlD,CAAC"}
@@ -1,4 +0,0 @@
1
- import type React from 'react';
2
- import type { ToolCallSectionProps } from './ApToolCall.types';
3
- export declare const ToolCallSection: React.FC<ToolCallSectionProps>;
4
- //# sourceMappingURL=ToolCallSection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToolCallSection.d.ts","sourceRoot":"","sources":["../../../../src/material/components/ap-tool-call/ToolCallSection.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AA6H/D,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAqE1D,CAAC"}