@uipath/apollo-react 3.29.1 → 3.30.0
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/canvas/components/AgentCanvas/components/SuggestionGroupPanel.cjs +34 -13
- package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.js +34 -13
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.cjs +42 -25
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.js +42 -25
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.cjs +52 -32
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.js +52 -32
- package/dist/canvas/components/BaseNode/BaseNode.cjs +3 -1
- package/dist/canvas/components/BaseNode/BaseNode.d.ts +3 -2
- package/dist/canvas/components/BaseNode/BaseNode.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.js +3 -1
- package/dist/canvas/components/BaseNode/BaseNode.types.d.ts +0 -28
- package/dist/canvas/components/BaseNode/BaseNode.types.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/BaseNodeConfigContext.cjs +45 -0
- package/dist/canvas/components/BaseNode/BaseNodeConfigContext.d.ts +31 -0
- package/dist/canvas/components/BaseNode/BaseNodeConfigContext.d.ts.map +1 -0
- package/dist/canvas/components/BaseNode/BaseNodeConfigContext.js +8 -0
- package/dist/canvas/components/BaseNode/index.cjs +12 -3
- package/dist/canvas/components/BaseNode/index.d.ts +1 -0
- package/dist/canvas/components/BaseNode/index.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/index.js +1 -0
- package/dist/canvas/components/CodedAgent/CodedAgentFlow.cjs +112 -82
- package/dist/canvas/components/CodedAgent/CodedAgentFlow.d.ts.map +1 -1
- package/dist/canvas/components/CodedAgent/CodedAgentFlow.js +112 -82
- package/dist/canvas/components/CollapseConfig/CollapseConfig.stories.cjs +24 -15
- package/dist/canvas/components/CollapseConfig/CollapseConfig.stories.d.ts.map +1 -1
- package/dist/canvas/components/CollapseConfig/CollapseConfig.stories.js +24 -15
- package/package.json +2 -2
|
@@ -11,6 +11,7 @@ import { d3HierarchyLayout } from "../../utils/coded-agents/d3-layout.js";
|
|
|
11
11
|
import { mermaidToReactFlow } from "../../utils/coded-agents/mermaid-parser.js";
|
|
12
12
|
import { BaseCanvas } from "../BaseCanvas/index.js";
|
|
13
13
|
import { BaseNode } from "../BaseNode/BaseNode.js";
|
|
14
|
+
import { BaseNodeOverrideConfigProvider } from "../BaseNode/BaseNodeConfigContext.js";
|
|
14
15
|
import { CanvasPositionControls } from "../CanvasPositionControls.js";
|
|
15
16
|
import { NodeRegistryProvider } from "../../core/NodeRegistryProvider.js";
|
|
16
17
|
import { codedAgentManifest } from "./coded-agent.manifest.js";
|
|
@@ -117,39 +118,48 @@ const createCodedAgentNodeWrapper = (translations = DefaultCodedAgentNodeTransla
|
|
|
117
118
|
nodeData.hasSuccess,
|
|
118
119
|
nodeData.hasRunning
|
|
119
120
|
]);
|
|
120
|
-
const handleConfigurations = [
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
position: Position.Right,
|
|
128
|
-
handles: rightSourceHandle,
|
|
129
|
-
visible: true
|
|
130
|
-
}
|
|
131
|
-
];
|
|
132
|
-
return /*#__PURE__*/ jsx(BaseNode, {
|
|
133
|
-
...nodeProps,
|
|
134
|
-
type: "uipath.coded.agent",
|
|
135
|
-
id: id,
|
|
136
|
-
selected: selected,
|
|
137
|
-
data: {
|
|
138
|
-
...nodeData,
|
|
139
|
-
display: {
|
|
140
|
-
label: nodeData.label,
|
|
141
|
-
subLabel: translations.codedAgentStep,
|
|
142
|
-
shape: 'rectangle'
|
|
121
|
+
const handleConfigurations = useMemo(()=>[
|
|
122
|
+
{
|
|
123
|
+
position: Position.Left,
|
|
124
|
+
handles: leftTargetHandle,
|
|
125
|
+
visible: true
|
|
143
126
|
},
|
|
127
|
+
{
|
|
128
|
+
position: Position.Right,
|
|
129
|
+
handles: rightSourceHandle,
|
|
130
|
+
visible: true
|
|
131
|
+
}
|
|
132
|
+
], []);
|
|
133
|
+
const baseNodeConfig = useMemo(()=>({
|
|
144
134
|
executionStatusOverride: executionStatus,
|
|
145
135
|
handleConfigurations,
|
|
146
136
|
adornments: {
|
|
147
137
|
topRight: statusAdornment
|
|
138
|
+
},
|
|
139
|
+
iconComponent: /*#__PURE__*/ jsx(CodedAgentIcon, {
|
|
140
|
+
w: 40,
|
|
141
|
+
h: 40
|
|
142
|
+
})
|
|
143
|
+
}), [
|
|
144
|
+
executionStatus,
|
|
145
|
+
handleConfigurations,
|
|
146
|
+
statusAdornment
|
|
147
|
+
]);
|
|
148
|
+
return /*#__PURE__*/ jsx(BaseNodeOverrideConfigProvider, {
|
|
149
|
+
value: baseNodeConfig,
|
|
150
|
+
children: /*#__PURE__*/ jsx(BaseNode, {
|
|
151
|
+
...nodeProps,
|
|
152
|
+
type: "uipath.coded.agent",
|
|
153
|
+
id: id,
|
|
154
|
+
selected: selected,
|
|
155
|
+
data: {
|
|
156
|
+
...nodeData,
|
|
157
|
+
display: {
|
|
158
|
+
label: nodeData.label,
|
|
159
|
+
subLabel: translations.codedAgentStep,
|
|
160
|
+
shape: 'rectangle'
|
|
161
|
+
}
|
|
148
162
|
}
|
|
149
|
-
},
|
|
150
|
-
iconComponent: /*#__PURE__*/ jsx(CodedAgentIcon, {
|
|
151
|
-
w: 40,
|
|
152
|
-
h: 40
|
|
153
163
|
})
|
|
154
164
|
});
|
|
155
165
|
});
|
|
@@ -206,41 +216,51 @@ const CodedResourceNodeElement = /*#__PURE__*/ memo(({ data, selected, id, ...no
|
|
|
206
216
|
nodeData.hasSuccess,
|
|
207
217
|
nodeData.hasRunning
|
|
208
218
|
]);
|
|
209
|
-
const handleConfigurations = [
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
const handleConfigurations = useMemo(()=>[
|
|
220
|
+
{
|
|
221
|
+
position: Position.Left,
|
|
222
|
+
handles: leftTargetHandle,
|
|
223
|
+
visible: true
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
position: Position.Right,
|
|
227
|
+
handles: rightSourceHandle,
|
|
228
|
+
visible: true
|
|
229
|
+
}
|
|
230
|
+
], []);
|
|
231
|
+
const baseNodeConfig = useMemo(()=>({
|
|
232
|
+
executionStatusOverride: executionStatus,
|
|
233
|
+
handleConfigurations,
|
|
234
|
+
adornments: {
|
|
235
|
+
topRight: statusAdornment
|
|
236
|
+
},
|
|
237
|
+
iconComponent: resourceIcon
|
|
238
|
+
}), [
|
|
239
|
+
executionStatus,
|
|
240
|
+
handleConfigurations,
|
|
241
|
+
statusAdornment,
|
|
242
|
+
resourceIcon
|
|
243
|
+
]);
|
|
221
244
|
return /*#__PURE__*/ jsxs("div", {
|
|
222
245
|
style: {
|
|
223
246
|
position: 'relative'
|
|
224
247
|
},
|
|
225
248
|
children: [
|
|
226
|
-
/*#__PURE__*/ jsx(
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
adornments: {
|
|
240
|
-
topRight: statusAdornment
|
|
249
|
+
/*#__PURE__*/ jsx(BaseNodeOverrideConfigProvider, {
|
|
250
|
+
value: baseNodeConfig,
|
|
251
|
+
children: /*#__PURE__*/ jsx(BaseNode, {
|
|
252
|
+
...nodeProps,
|
|
253
|
+
type: "uipath.coded.resource",
|
|
254
|
+
id: id,
|
|
255
|
+
selected: selected,
|
|
256
|
+
data: {
|
|
257
|
+
...nodeData,
|
|
258
|
+
display: {
|
|
259
|
+
label: void 0,
|
|
260
|
+
shape: 'circle'
|
|
261
|
+
}
|
|
241
262
|
}
|
|
242
|
-
}
|
|
243
|
-
iconComponent: resourceIcon
|
|
263
|
+
})
|
|
244
264
|
}),
|
|
245
265
|
/*#__PURE__*/ jsx(TextContainer, {
|
|
246
266
|
children: /*#__PURE__*/ jsx(ApTypography, {
|
|
@@ -270,24 +290,29 @@ const CodedFlowNodeElement = /*#__PURE__*/ memo(({ data, selected, id, ...nodePr
|
|
|
270
290
|
}
|
|
271
291
|
];
|
|
272
292
|
const nodeType = isStart ? 'uipath.coded.flow.start' : 'uipath.coded.flow.end';
|
|
293
|
+
const config = {
|
|
294
|
+
handleConfigurations: handleConfigs
|
|
295
|
+
};
|
|
273
296
|
return /*#__PURE__*/ jsxs("div", {
|
|
274
297
|
style: {
|
|
275
298
|
position: 'relative'
|
|
276
299
|
},
|
|
277
300
|
children: [
|
|
278
|
-
/*#__PURE__*/ jsx(
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
301
|
+
/*#__PURE__*/ jsx(BaseNodeOverrideConfigProvider, {
|
|
302
|
+
value: config,
|
|
303
|
+
children: /*#__PURE__*/ jsx(BaseNode, {
|
|
304
|
+
...nodeProps,
|
|
305
|
+
type: nodeType,
|
|
306
|
+
id: id,
|
|
307
|
+
selected: selected,
|
|
308
|
+
data: {
|
|
309
|
+
...nodeData,
|
|
310
|
+
display: {
|
|
311
|
+
label: void 0,
|
|
312
|
+
shape: 'square'
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
})
|
|
291
316
|
}),
|
|
292
317
|
/*#__PURE__*/ jsx(TextContainer, {
|
|
293
318
|
children: /*#__PURE__*/ jsx(ApTypography, {
|
|
@@ -311,20 +336,25 @@ const CodedFlowNodeElement = /*#__PURE__*/ memo(({ data, selected, id, ...nodePr
|
|
|
311
336
|
visible: true
|
|
312
337
|
}
|
|
313
338
|
];
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
type: "uipath.coded.flow.node",
|
|
317
|
-
id: id,
|
|
318
|
-
selected: selected,
|
|
319
|
-
data: {
|
|
320
|
-
...nodeData,
|
|
321
|
-
display: {
|
|
322
|
-
label: nodeData.label,
|
|
323
|
-
shape: 'rectangle'
|
|
324
|
-
},
|
|
325
|
-
handleConfigurations: handleConfigs
|
|
326
|
-
},
|
|
339
|
+
const config = {
|
|
340
|
+
handleConfigurations: handleConfigs,
|
|
327
341
|
iconComponent: null
|
|
342
|
+
};
|
|
343
|
+
return /*#__PURE__*/ jsx(BaseNodeOverrideConfigProvider, {
|
|
344
|
+
value: config,
|
|
345
|
+
children: /*#__PURE__*/ jsx(BaseNode, {
|
|
346
|
+
...nodeProps,
|
|
347
|
+
type: "uipath.coded.flow.node",
|
|
348
|
+
id: id,
|
|
349
|
+
selected: selected,
|
|
350
|
+
data: {
|
|
351
|
+
...nodeData,
|
|
352
|
+
display: {
|
|
353
|
+
label: nodeData.label,
|
|
354
|
+
shape: 'rectangle'
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
})
|
|
328
358
|
});
|
|
329
359
|
});
|
|
330
360
|
const edgeTypes = {
|
|
@@ -35,6 +35,7 @@ const external_storybook_utils_index_cjs_namespaceObject = require("../../storyb
|
|
|
35
35
|
const external_types_cjs_namespaceObject = require("../../types.cjs");
|
|
36
36
|
const external_BaseCanvas_index_cjs_namespaceObject = require("../BaseCanvas/index.cjs");
|
|
37
37
|
const BaseNode_cjs_namespaceObject = require("../BaseNode/BaseNode.cjs");
|
|
38
|
+
const BaseNodeConfigContext_cjs_namespaceObject = require("../BaseNode/BaseNodeConfigContext.cjs");
|
|
38
39
|
const external_CanvasPositionControls_cjs_namespaceObject = require("../CanvasPositionControls.cjs");
|
|
39
40
|
const NodeRegistryProvider_cjs_namespaceObject = require("../../core/NodeRegistryProvider.cjs");
|
|
40
41
|
const agent_flow_manifest_cjs_namespaceObject = require("../AgentCanvas/agent-flow.manifest.cjs");
|
|
@@ -226,22 +227,30 @@ function CollapsibleAgentNode(props) {
|
|
|
226
227
|
], [
|
|
227
228
|
collapsed
|
|
228
229
|
]);
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
230
|
+
const baseNodeConfig = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
231
|
+
handleConfigurations,
|
|
232
|
+
toolbarConfig
|
|
233
|
+
}), [
|
|
234
|
+
handleConfigurations,
|
|
235
|
+
toolbarConfig
|
|
236
|
+
]);
|
|
237
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(BaseNodeConfigContext_cjs_namespaceObject.BaseNodeOverrideConfigProvider, {
|
|
238
|
+
value: baseNodeConfig,
|
|
239
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(BaseNode_cjs_namespaceObject.BaseNode, {
|
|
240
|
+
...nodeProps,
|
|
241
|
+
type: "uipath.agent.collapsible",
|
|
242
|
+
id: id,
|
|
243
|
+
selected: selected,
|
|
244
|
+
data: {
|
|
245
|
+
...data,
|
|
246
|
+
parameters: data?.parameters ?? {},
|
|
247
|
+
display: {
|
|
248
|
+
label,
|
|
249
|
+
shape: collapsed ? 'square' : agentManifest?.display.shape ?? 'rectangle',
|
|
250
|
+
iconBackground: agentManifest?.display.iconBackground
|
|
251
|
+
}
|
|
241
252
|
}
|
|
242
|
-
}
|
|
243
|
-
handleConfigurations: handleConfigurations,
|
|
244
|
-
toolbarConfig: toolbarConfig
|
|
253
|
+
})
|
|
245
254
|
});
|
|
246
255
|
}
|
|
247
256
|
function DefaultStory() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapseConfig.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/CollapseConfig/CollapseConfig.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"CollapseConfig.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/CollapseConfig/CollapseConfig.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA+D5D,QAAA,MAAM,IAAI,EAAE,IAsBX,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA+YnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
|
|
@@ -6,6 +6,7 @@ import { StoryInfoPanel, allNodeManifests, useCanvasStory } from "../../storyboo
|
|
|
6
6
|
import { DefaultCanvasTranslations } from "../../types.js";
|
|
7
7
|
import { BaseCanvas } from "../BaseCanvas/index.js";
|
|
8
8
|
import { BaseNode } from "../BaseNode/BaseNode.js";
|
|
9
|
+
import { BaseNodeOverrideConfigProvider } from "../BaseNode/BaseNodeConfigContext.js";
|
|
9
10
|
import { CanvasPositionControls } from "../CanvasPositionControls.js";
|
|
10
11
|
import { NodeRegistryProvider } from "../../core/NodeRegistryProvider.js";
|
|
11
12
|
import { contextResourceManifest, escalationResourceManifest, memoryResourceManifest, toolResourceManifest } from "../AgentCanvas/agent-flow.manifest.js";
|
|
@@ -197,22 +198,30 @@ function CollapsibleAgentNode(props) {
|
|
|
197
198
|
], [
|
|
198
199
|
collapsed
|
|
199
200
|
]);
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
201
|
+
const baseNodeConfig = useMemo(()=>({
|
|
202
|
+
handleConfigurations,
|
|
203
|
+
toolbarConfig
|
|
204
|
+
}), [
|
|
205
|
+
handleConfigurations,
|
|
206
|
+
toolbarConfig
|
|
207
|
+
]);
|
|
208
|
+
return /*#__PURE__*/ jsx(BaseNodeOverrideConfigProvider, {
|
|
209
|
+
value: baseNodeConfig,
|
|
210
|
+
children: /*#__PURE__*/ jsx(BaseNode, {
|
|
211
|
+
...nodeProps,
|
|
212
|
+
type: "uipath.agent.collapsible",
|
|
213
|
+
id: id,
|
|
214
|
+
selected: selected,
|
|
215
|
+
data: {
|
|
216
|
+
...data,
|
|
217
|
+
parameters: data?.parameters ?? {},
|
|
218
|
+
display: {
|
|
219
|
+
label,
|
|
220
|
+
shape: collapsed ? 'square' : agentManifest?.display.shape ?? 'rectangle',
|
|
221
|
+
iconBackground: agentManifest?.display.iconBackground
|
|
222
|
+
}
|
|
212
223
|
}
|
|
213
|
-
}
|
|
214
|
-
handleConfigurations: handleConfigurations,
|
|
215
|
-
toolbarConfig: toolbarConfig
|
|
224
|
+
})
|
|
216
225
|
});
|
|
217
226
|
}
|
|
218
227
|
function DefaultStory() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.30.0",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
"zod": "^4.3.5",
|
|
200
200
|
"zustand": "^5.0.9",
|
|
201
201
|
"@uipath/apollo-core": "5.7.0",
|
|
202
|
-
"@uipath/apollo-wind": "0.
|
|
202
|
+
"@uipath/apollo-wind": "0.9.0"
|
|
203
203
|
},
|
|
204
204
|
"devDependencies": {
|
|
205
205
|
"@lingui/cli": "^5.6.1",
|