@uipath/apollo-react 4.5.0 → 4.5.2-pr525.171b58a

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 (84) hide show
  1. package/dist/canvas/components/BaseNode/BaseNode.cjs +55 -74
  2. package/dist/canvas/components/BaseNode/BaseNode.d.ts.map +1 -1
  3. package/dist/canvas/components/BaseNode/BaseNode.js +50 -69
  4. package/dist/canvas/components/BaseNode/BaseNodeBadgeSlot.cjs +67 -0
  5. package/dist/canvas/components/BaseNode/BaseNodeBadgeSlot.d.ts +9 -0
  6. package/dist/canvas/components/BaseNode/BaseNodeBadgeSlot.d.ts.map +1 -0
  7. package/dist/canvas/components/BaseNode/BaseNodeBadgeSlot.js +33 -0
  8. package/dist/canvas/components/BaseNode/BaseNodeContainer.cjs +87 -0
  9. package/dist/canvas/components/BaseNode/BaseNodeContainer.d.ts +23 -0
  10. package/dist/canvas/components/BaseNode/BaseNodeContainer.d.ts.map +1 -0
  11. package/dist/canvas/components/BaseNode/BaseNodeContainer.js +50 -0
  12. package/dist/canvas/components/BaseNode/BaseNodeInnerShape.cjs +65 -0
  13. package/dist/canvas/components/BaseNode/BaseNodeInnerShape.d.ts +14 -0
  14. package/dist/canvas/components/BaseNode/BaseNodeInnerShape.d.ts.map +1 -0
  15. package/dist/canvas/components/BaseNode/BaseNodeInnerShape.js +31 -0
  16. package/dist/canvas/components/BaseNode/BaseNodeMissingManifest.cjs +67 -0
  17. package/dist/canvas/components/BaseNode/BaseNodeMissingManifest.d.ts +9 -0
  18. package/dist/canvas/components/BaseNode/BaseNodeMissingManifest.d.ts.map +1 -0
  19. package/dist/canvas/components/BaseNode/BaseNodeMissingManifest.js +33 -0
  20. package/dist/canvas/components/BaseNode/BaseNodeTextContainer.cjs +51 -0
  21. package/dist/canvas/components/BaseNode/BaseNodeTextContainer.d.ts +9 -0
  22. package/dist/canvas/components/BaseNode/BaseNodeTextContainer.d.ts.map +1 -0
  23. package/dist/canvas/components/BaseNode/BaseNodeTextContainer.js +17 -0
  24. package/dist/canvas/components/BaseNode/NodeLabel.cjs +48 -18
  25. package/dist/canvas/components/BaseNode/NodeLabel.d.ts +1 -1
  26. package/dist/canvas/components/BaseNode/NodeLabel.d.ts.map +1 -1
  27. package/dist/canvas/components/BaseNode/NodeLabel.js +44 -14
  28. package/dist/canvas/components/ButtonHandle/ButtonHandleStyleUtils.cjs +4 -7
  29. package/dist/canvas/components/ButtonHandle/ButtonHandleStyleUtils.d.ts.map +1 -1
  30. package/dist/canvas/components/ButtonHandle/ButtonHandleStyleUtils.js +4 -7
  31. package/dist/canvas/constants.cjs +60 -0
  32. package/dist/canvas/constants.d.ts +15 -0
  33. package/dist/canvas/constants.d.ts.map +1 -1
  34. package/dist/canvas/constants.js +16 -1
  35. package/dist/canvas/icons/CasePlanIcon.cjs +1 -1
  36. package/dist/canvas/icons/CasePlanIcon.js +1 -1
  37. package/dist/canvas/index.cjs +39 -35
  38. package/dist/canvas/index.d.ts +1 -0
  39. package/dist/canvas/index.d.ts.map +1 -1
  40. package/dist/canvas/index.js +1 -0
  41. package/dist/canvas/styles/reactflow-reset.css +12 -0
  42. package/dist/canvas/styles/tailwind.canvas.css +1 -1
  43. package/dist/material/components/ap-chat/components/message/suggestions/chat-suggestions.cjs +1 -0
  44. package/dist/material/components/ap-chat/components/message/suggestions/chat-suggestions.d.ts.map +1 -1
  45. package/dist/material/components/ap-chat/components/message/suggestions/chat-suggestions.js +1 -0
  46. package/dist/material/components/ap-tool-call/ApToolCall.cjs +127 -41
  47. package/dist/material/components/ap-tool-call/ApToolCall.d.ts.map +1 -1
  48. package/dist/material/components/ap-tool-call/ApToolCall.js +123 -38
  49. package/dist/material/components/ap-tool-call/ApToolCall.types.cjs +23 -1
  50. package/dist/material/components/ap-tool-call/ApToolCall.types.d.ts +9 -1
  51. package/dist/material/components/ap-tool-call/ApToolCall.types.d.ts.map +1 -1
  52. package/dist/material/components/ap-tool-call/ApToolCall.types.js +6 -0
  53. package/dist/material/components/ap-tool-call/assets/spanIcons.cjs +221 -0
  54. package/dist/material/components/ap-tool-call/assets/spanIcons.d.ts +2 -0
  55. package/dist/material/components/ap-tool-call/assets/spanIcons.d.ts.map +1 -0
  56. package/dist/material/components/ap-tool-call/assets/spanIcons.js +187 -0
  57. package/dist/material/components/ap-tool-call/components/NestedValue.d.ts +4 -0
  58. package/dist/material/components/ap-tool-call/components/NestedValue.d.ts.map +1 -0
  59. package/dist/material/components/ap-tool-call/{ToolCallSection.cjs → components/ToolCallSection.cjs} +5 -1
  60. package/dist/material/components/ap-tool-call/components/ToolCallSection.d.ts +4 -0
  61. package/dist/material/components/ap-tool-call/components/ToolCallSection.d.ts.map +1 -0
  62. package/dist/material/components/ap-tool-call/{ToolCallSection.js → components/ToolCallSection.js} +5 -1
  63. package/dist/material/components/ap-tool-call/index.cjs +8 -4
  64. package/dist/material/components/ap-tool-call/index.d.ts +4 -3
  65. package/dist/material/components/ap-tool-call/index.d.ts.map +1 -1
  66. package/dist/material/components/ap-tool-call/index.js +4 -3
  67. package/dist/material/components/ap-tool-call/locales/en.cjs +1 -1
  68. package/dist/material/components/ap-tool-call/locales/en.d.ts.map +1 -1
  69. package/dist/material/components/ap-tool-call/locales/en.js +1 -1
  70. package/dist/material/components/ap-tool-call/utils/traceIconUtils.cjs +254 -0
  71. package/dist/material/components/ap-tool-call/utils/traceIconUtils.d.ts +3 -0
  72. package/dist/material/components/ap-tool-call/utils/traceIconUtils.d.ts.map +1 -0
  73. package/dist/material/components/ap-tool-call/utils/traceIconUtils.js +220 -0
  74. package/package.json +3 -3
  75. package/dist/canvas/components/BaseNode/BaseNode.styles.cjs +0 -410
  76. package/dist/canvas/components/BaseNode/BaseNode.styles.d.ts +0 -75
  77. package/dist/canvas/components/BaseNode/BaseNode.styles.d.ts.map +0 -1
  78. package/dist/canvas/components/BaseNode/BaseNode.styles.js +0 -342
  79. package/dist/material/components/ap-tool-call/NestedValue.d.ts +0 -4
  80. package/dist/material/components/ap-tool-call/NestedValue.d.ts.map +0 -1
  81. package/dist/material/components/ap-tool-call/ToolCallSection.d.ts +0 -4
  82. package/dist/material/components/ap-tool-call/ToolCallSection.d.ts.map +0 -1
  83. /package/dist/material/components/ap-tool-call/{NestedValue.cjs → components/NestedValue.cjs} +0 -0
  84. /package/dist/material/components/ap-tool-call/{NestedValue.js → components/NestedValue.js} +0 -0
@@ -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-pr525.171b58a",
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.2.0"
206
206
  },
207
207
  "devDependencies": {
208
208
  "@tailwindcss/cli": "^4.1.17",