@uipath/apollo-react 3.29.2 → 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/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
|
@@ -34,11 +34,13 @@ const external_react_namespaceObject = require("react");
|
|
|
34
34
|
const external_FloatingCanvasPanel_index_cjs_namespaceObject = require("../../FloatingCanvasPanel/index.cjs");
|
|
35
35
|
const external_types_cjs_namespaceObject = require("../../../types.cjs");
|
|
36
36
|
const BaseNode_cjs_namespaceObject = require("../../BaseNode/BaseNode.cjs");
|
|
37
|
+
const BaseNodeConfigContext_cjs_namespaceObject = require("../../BaseNode/BaseNodeConfigContext.cjs");
|
|
37
38
|
const external_AgentFlow_constants_cjs_namespaceObject = require("../AgentFlow.constants.cjs");
|
|
38
39
|
const agent_flow_store_cjs_namespaceObject = require("../store/agent-flow-store.cjs");
|
|
39
40
|
const external_AgentNode_styles_cjs_namespaceObject = require("./AgentNode.styles.cjs");
|
|
40
41
|
const HOVER_DELAY_MS = 500;
|
|
41
42
|
const HOVER_HIDE_DELAY_MS = 300;
|
|
43
|
+
const alwaysShowNotches = ()=>true;
|
|
42
44
|
const AgentNodeComponent = /*#__PURE__*/ (0, external_react_namespaceObject.memo)((props)=>{
|
|
43
45
|
const { id, data, selected = false, mode = 'design', hasMemory = false, hasContext = false, hasEscalation = false, hasTool = false, hasMcp = false, mcpEnabled = true, hasError = false, hasSuccess = false, hasRunning = false, onAddResource, onAddInstructions, translations, enableMemory, enableInstructions = false, healthScore, onHealthScoreClick, suggestionTranslations, suggestionGroupVersion, ...nodeProps } = props;
|
|
44
46
|
const { actOnSuggestion } = (0, agent_flow_store_cjs_namespaceObject.useAgentFlowStore)();
|
|
@@ -446,35 +448,50 @@ const AgentNodeComponent = /*#__PURE__*/ (0, external_react_namespaceObject.memo
|
|
|
446
448
|
translations,
|
|
447
449
|
isConversational
|
|
448
450
|
]);
|
|
451
|
+
const baseNodeConfig = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
452
|
+
executionStatusOverride: executionStatus,
|
|
453
|
+
suggestionType,
|
|
454
|
+
handleConfigurations,
|
|
455
|
+
toolbarConfig,
|
|
456
|
+
footerVariant,
|
|
457
|
+
iconComponent: agentIcon,
|
|
458
|
+
footerComponent: instructionsFooter,
|
|
459
|
+
subLabelComponent: subLabelWithHealthScore,
|
|
460
|
+
shouldShowAddButtonFn,
|
|
461
|
+
shouldShowButtonHandleNotchesFn: alwaysShowNotches
|
|
462
|
+
}), [
|
|
463
|
+
executionStatus,
|
|
464
|
+
suggestionType,
|
|
465
|
+
handleConfigurations,
|
|
466
|
+
toolbarConfig,
|
|
467
|
+
footerVariant,
|
|
468
|
+
agentIcon,
|
|
469
|
+
instructionsFooter,
|
|
470
|
+
subLabelWithHealthScore,
|
|
471
|
+
shouldShowAddButtonFn
|
|
472
|
+
]);
|
|
449
473
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
450
474
|
onMouseEnter: handleMouseEnter,
|
|
451
475
|
onMouseLeave: handleMouseLeave,
|
|
452
476
|
children: [
|
|
453
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
toolbarConfig: toolbarConfig,
|
|
472
|
-
footerVariant: footerVariant,
|
|
473
|
-
iconComponent: agentIcon,
|
|
474
|
-
footerComponent: instructionsFooter,
|
|
475
|
-
subLabelComponent: subLabelWithHealthScore,
|
|
476
|
-
shouldShowAddButtonFn: shouldShowAddButtonFn,
|
|
477
|
-
shouldShowButtonHandleNotchesFn: ()=>true
|
|
477
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(BaseNodeConfigContext_cjs_namespaceObject.BaseNodeOverrideConfigProvider, {
|
|
478
|
+
value: baseNodeConfig,
|
|
479
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(BaseNode_cjs_namespaceObject.BaseNode, {
|
|
480
|
+
...nodeProps,
|
|
481
|
+
id: id,
|
|
482
|
+
type: isConversational ? 'uipath.agent.conversational' : 'uipath.agent.autonomous',
|
|
483
|
+
data: {
|
|
484
|
+
...data,
|
|
485
|
+
display: {
|
|
486
|
+
label: name,
|
|
487
|
+
subLabel: isConversational ? translations.conversationalAgent : translations.autonomousAgent,
|
|
488
|
+
shape: 'rectangle',
|
|
489
|
+
background: 'var(--uix-canvas-background)',
|
|
490
|
+
iconBackground: 'var(--uix-canvas-background-secondary)'
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
selected: selected
|
|
494
|
+
})
|
|
478
495
|
}),
|
|
479
496
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_FloatingCanvasPanel_index_cjs_namespaceObject.FloatingCanvasPanel, {
|
|
480
497
|
open: showSettingsPreview,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentNode.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/AgentCanvas/nodes/AgentNode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAKhF,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"AgentNode.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/AgentCanvas/nodes/AgentNode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAKhF,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACpB,MAAM,gBAA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OAAO,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAEhD,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAgjBD,eAAO,MAAM,gBAAgB,8CApDI,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,cAAc,6CAoD1B,CAAC;AAEvD,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -6,11 +6,13 @@ import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
|
6
6
|
import { FloatingCanvasPanel } from "../../FloatingCanvasPanel/index.js";
|
|
7
7
|
import { DefaultSuggestionTranslations } from "../../../types.js";
|
|
8
8
|
import { BaseNode } from "../../BaseNode/BaseNode.js";
|
|
9
|
+
import { BaseNodeOverrideConfigProvider } from "../../BaseNode/BaseNodeConfigContext.js";
|
|
9
10
|
import { ResourceNodeType } from "../AgentFlow.constants.js";
|
|
10
11
|
import { useAgentFlowStore } from "../store/agent-flow-store.js";
|
|
11
12
|
import { AddInstructionsButton, HealthScoreBadge, InstructionsLabel, InstructionsLine, InstructionsPreview, SettingsPreviewContainer, SettingsPreviewHeader, SettingsPreviewSubtitle, SettingsPreviewTitle, SettingsPromptBox, SettingsRow, SettingsRowLabel, SettingsRowValue, SettingsSection, SettingsSectionLabel, SettingsSectionValue, SubLabelContainer } from "./AgentNode.styles.js";
|
|
12
13
|
const HOVER_DELAY_MS = 500;
|
|
13
14
|
const HOVER_HIDE_DELAY_MS = 300;
|
|
15
|
+
const alwaysShowNotches = ()=>true;
|
|
14
16
|
const AgentNodeComponent = /*#__PURE__*/ memo((props)=>{
|
|
15
17
|
const { id, data, selected = false, mode = 'design', hasMemory = false, hasContext = false, hasEscalation = false, hasTool = false, hasMcp = false, mcpEnabled = true, hasError = false, hasSuccess = false, hasRunning = false, onAddResource, onAddInstructions, translations, enableMemory, enableInstructions = false, healthScore, onHealthScoreClick, suggestionTranslations, suggestionGroupVersion, ...nodeProps } = props;
|
|
16
18
|
const { actOnSuggestion } = useAgentFlowStore();
|
|
@@ -418,35 +420,50 @@ const AgentNodeComponent = /*#__PURE__*/ memo((props)=>{
|
|
|
418
420
|
translations,
|
|
419
421
|
isConversational
|
|
420
422
|
]);
|
|
423
|
+
const baseNodeConfig = useMemo(()=>({
|
|
424
|
+
executionStatusOverride: executionStatus,
|
|
425
|
+
suggestionType,
|
|
426
|
+
handleConfigurations,
|
|
427
|
+
toolbarConfig,
|
|
428
|
+
footerVariant,
|
|
429
|
+
iconComponent: agentIcon,
|
|
430
|
+
footerComponent: instructionsFooter,
|
|
431
|
+
subLabelComponent: subLabelWithHealthScore,
|
|
432
|
+
shouldShowAddButtonFn,
|
|
433
|
+
shouldShowButtonHandleNotchesFn: alwaysShowNotches
|
|
434
|
+
}), [
|
|
435
|
+
executionStatus,
|
|
436
|
+
suggestionType,
|
|
437
|
+
handleConfigurations,
|
|
438
|
+
toolbarConfig,
|
|
439
|
+
footerVariant,
|
|
440
|
+
agentIcon,
|
|
441
|
+
instructionsFooter,
|
|
442
|
+
subLabelWithHealthScore,
|
|
443
|
+
shouldShowAddButtonFn
|
|
444
|
+
]);
|
|
421
445
|
return /*#__PURE__*/ jsxs("div", {
|
|
422
446
|
onMouseEnter: handleMouseEnter,
|
|
423
447
|
onMouseLeave: handleMouseLeave,
|
|
424
448
|
children: [
|
|
425
|
-
/*#__PURE__*/ jsx(
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
toolbarConfig: toolbarConfig,
|
|
444
|
-
footerVariant: footerVariant,
|
|
445
|
-
iconComponent: agentIcon,
|
|
446
|
-
footerComponent: instructionsFooter,
|
|
447
|
-
subLabelComponent: subLabelWithHealthScore,
|
|
448
|
-
shouldShowAddButtonFn: shouldShowAddButtonFn,
|
|
449
|
-
shouldShowButtonHandleNotchesFn: ()=>true
|
|
449
|
+
/*#__PURE__*/ jsx(BaseNodeOverrideConfigProvider, {
|
|
450
|
+
value: baseNodeConfig,
|
|
451
|
+
children: /*#__PURE__*/ jsx(BaseNode, {
|
|
452
|
+
...nodeProps,
|
|
453
|
+
id: id,
|
|
454
|
+
type: isConversational ? 'uipath.agent.conversational' : 'uipath.agent.autonomous',
|
|
455
|
+
data: {
|
|
456
|
+
...data,
|
|
457
|
+
display: {
|
|
458
|
+
label: name,
|
|
459
|
+
subLabel: isConversational ? translations.conversationalAgent : translations.autonomousAgent,
|
|
460
|
+
shape: 'rectangle',
|
|
461
|
+
background: 'var(--uix-canvas-background)',
|
|
462
|
+
iconBackground: 'var(--uix-canvas-background-secondary)'
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
selected: selected
|
|
466
|
+
})
|
|
450
467
|
}),
|
|
451
468
|
/*#__PURE__*/ jsx(FloatingCanvasPanel, {
|
|
452
469
|
open: showSettingsPreview,
|
|
@@ -34,9 +34,11 @@ const components_index_cjs_namespaceObject = require("../../../../material/compo
|
|
|
34
34
|
const external_react_namespaceObject = require("react");
|
|
35
35
|
const external_types_cjs_namespaceObject = require("../../../types.cjs");
|
|
36
36
|
const BaseNode_cjs_namespaceObject = require("../../BaseNode/BaseNode.cjs");
|
|
37
|
+
const BaseNodeConfigContext_cjs_namespaceObject = require("../../BaseNode/BaseNodeConfigContext.cjs");
|
|
37
38
|
const ExecutionStatusIcon_cjs_namespaceObject = require("../../ExecutionStatusIcon/ExecutionStatusIcon.cjs");
|
|
38
39
|
const ToolResourceIcon_index_cjs_namespaceObject = require("../components/ToolResourceIcon/index.cjs");
|
|
39
40
|
const agent_flow_store_cjs_namespaceObject = require("../store/agent-flow-store.cjs");
|
|
41
|
+
const alwaysShowNotches = ()=>true;
|
|
40
42
|
const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ data, selected, id, mode, hasError = false, hasSuccess = false, hasRunning = false, onEnable, onDisable, onAddBreakpoint, onRemoveBreakpoint, onAddGuardrail, onGoToSource, translations, suggestionTranslations, suggestionGroupVersion, ...nodeProps })=>{
|
|
41
43
|
const { nodes: _nodes, deleteNode, actOnSuggestion } = (0, agent_flow_store_cjs_namespaceObject.useAgentFlowStore)();
|
|
42
44
|
const edges = (0, agent_flow_store_cjs_namespaceObject.useEdges)();
|
|
@@ -431,38 +433,56 @@ const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ d
|
|
|
431
433
|
return 'uipath.resource.tool';
|
|
432
434
|
}
|
|
433
435
|
};
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
suggestionType
|
|
456
|
-
|
|
457
|
-
handleConfigurations
|
|
458
|
-
toolbarConfig
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
436
|
+
const baseNodeConfig = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
437
|
+
labelTooltip: displayTooltips ? data.description : void 0,
|
|
438
|
+
labelBackgroundColor: 'var(--uix-canvas-background-secondary)',
|
|
439
|
+
disabled: isDisabled,
|
|
440
|
+
executionStatusOverride: executionStatus,
|
|
441
|
+
suggestionType,
|
|
442
|
+
iconComponent: resourceIcon,
|
|
443
|
+
handleConfigurations,
|
|
444
|
+
toolbarConfig,
|
|
445
|
+
adornments: {
|
|
446
|
+
topLeft: breakpointAdornment,
|
|
447
|
+
topRight: statusAdornment,
|
|
448
|
+
bottomLeft: suggestionAdornment,
|
|
449
|
+
bottomRight: guardrailsAdornment
|
|
450
|
+
},
|
|
451
|
+
shouldShowButtonHandleNotchesFn: alwaysShowNotches
|
|
452
|
+
}), [
|
|
453
|
+
displayTooltips,
|
|
454
|
+
data.description,
|
|
455
|
+
isDisabled,
|
|
456
|
+
executionStatus,
|
|
457
|
+
suggestionType,
|
|
458
|
+
resourceIcon,
|
|
459
|
+
handleConfigurations,
|
|
460
|
+
toolbarConfig,
|
|
461
|
+
breakpointAdornment,
|
|
462
|
+
statusAdornment,
|
|
463
|
+
suggestionAdornment,
|
|
464
|
+
guardrailsAdornment
|
|
465
|
+
]);
|
|
466
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(BaseNodeConfigContext_cjs_namespaceObject.BaseNodeOverrideConfigProvider, {
|
|
467
|
+
value: baseNodeConfig,
|
|
468
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(BaseNode_cjs_namespaceObject.BaseNode, {
|
|
469
|
+
...nodeProps,
|
|
470
|
+
type: getResourceNodeType(),
|
|
471
|
+
data: {
|
|
472
|
+
...data,
|
|
473
|
+
display: {
|
|
474
|
+
iconBackground: 'var(--uix-canvas-background-secondary)',
|
|
475
|
+
label: data.name,
|
|
476
|
+
subLabel: data.originalName,
|
|
477
|
+
shape: 'circle'
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
id: id,
|
|
481
|
+
selected: selected,
|
|
482
|
+
draggable: false,
|
|
483
|
+
selectable: true,
|
|
484
|
+
deletable: !isSuggestion
|
|
485
|
+
})
|
|
466
486
|
});
|
|
467
487
|
});
|
|
468
488
|
exports.ResourceNode = __webpack_exports__.ResourceNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceNode.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/AgentCanvas/nodes/ResourceNode.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EAAE,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACjF,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACrF,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IACvF,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,YAAY,CAAC,EAAE,wBAAwB,CAAC;IACxC,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAEhD,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,eAAO,MAAM,YAAY,2QAmBpB,iBAAiB,6CAmbrB,CAAC"}
|
|
@@ -6,9 +6,11 @@ import { ApIcon } from "../../../../material/components/index.js";
|
|
|
6
6
|
import { memo, useCallback, useMemo } from "react";
|
|
7
7
|
import { DefaultSuggestionTranslations } from "../../../types.js";
|
|
8
8
|
import { BaseNode } from "../../BaseNode/BaseNode.js";
|
|
9
|
+
import { BaseNodeOverrideConfigProvider } from "../../BaseNode/BaseNodeConfigContext.js";
|
|
9
10
|
import { ExecutionStatusIcon } from "../../ExecutionStatusIcon/ExecutionStatusIcon.js";
|
|
10
11
|
import { ToolResourceIcon } from "../components/ToolResourceIcon/index.js";
|
|
11
12
|
import { useAgentFlowStore, useEdges } from "../store/agent-flow-store.js";
|
|
13
|
+
const alwaysShowNotches = ()=>true;
|
|
12
14
|
const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError = false, hasSuccess = false, hasRunning = false, onEnable, onDisable, onAddBreakpoint, onRemoveBreakpoint, onAddGuardrail, onGoToSource, translations, suggestionTranslations, suggestionGroupVersion, ...nodeProps })=>{
|
|
13
15
|
const { nodes: _nodes, deleteNode, actOnSuggestion } = useAgentFlowStore();
|
|
14
16
|
const edges = useEdges();
|
|
@@ -403,38 +405,56 @@ const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError =
|
|
|
403
405
|
return 'uipath.resource.tool';
|
|
404
406
|
}
|
|
405
407
|
};
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
suggestionType
|
|
428
|
-
|
|
429
|
-
handleConfigurations
|
|
430
|
-
toolbarConfig
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
408
|
+
const baseNodeConfig = useMemo(()=>({
|
|
409
|
+
labelTooltip: displayTooltips ? data.description : void 0,
|
|
410
|
+
labelBackgroundColor: 'var(--uix-canvas-background-secondary)',
|
|
411
|
+
disabled: isDisabled,
|
|
412
|
+
executionStatusOverride: executionStatus,
|
|
413
|
+
suggestionType,
|
|
414
|
+
iconComponent: resourceIcon,
|
|
415
|
+
handleConfigurations,
|
|
416
|
+
toolbarConfig,
|
|
417
|
+
adornments: {
|
|
418
|
+
topLeft: breakpointAdornment,
|
|
419
|
+
topRight: statusAdornment,
|
|
420
|
+
bottomLeft: suggestionAdornment,
|
|
421
|
+
bottomRight: guardrailsAdornment
|
|
422
|
+
},
|
|
423
|
+
shouldShowButtonHandleNotchesFn: alwaysShowNotches
|
|
424
|
+
}), [
|
|
425
|
+
displayTooltips,
|
|
426
|
+
data.description,
|
|
427
|
+
isDisabled,
|
|
428
|
+
executionStatus,
|
|
429
|
+
suggestionType,
|
|
430
|
+
resourceIcon,
|
|
431
|
+
handleConfigurations,
|
|
432
|
+
toolbarConfig,
|
|
433
|
+
breakpointAdornment,
|
|
434
|
+
statusAdornment,
|
|
435
|
+
suggestionAdornment,
|
|
436
|
+
guardrailsAdornment
|
|
437
|
+
]);
|
|
438
|
+
return /*#__PURE__*/ jsx(BaseNodeOverrideConfigProvider, {
|
|
439
|
+
value: baseNodeConfig,
|
|
440
|
+
children: /*#__PURE__*/ jsx(BaseNode, {
|
|
441
|
+
...nodeProps,
|
|
442
|
+
type: getResourceNodeType(),
|
|
443
|
+
data: {
|
|
444
|
+
...data,
|
|
445
|
+
display: {
|
|
446
|
+
iconBackground: 'var(--uix-canvas-background-secondary)',
|
|
447
|
+
label: data.name,
|
|
448
|
+
subLabel: data.originalName,
|
|
449
|
+
shape: 'circle'
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
id: id,
|
|
453
|
+
selected: selected,
|
|
454
|
+
draggable: false,
|
|
455
|
+
selectable: true,
|
|
456
|
+
deletable: !isSuggestion
|
|
457
|
+
})
|
|
438
458
|
});
|
|
439
459
|
});
|
|
440
460
|
export { ResourceNode };
|
|
@@ -46,10 +46,12 @@ const SmartHandle_cjs_namespaceObject = require("../ButtonHandle/SmartHandle.cjs
|
|
|
46
46
|
const useButtonHandles_cjs_namespaceObject = require("../ButtonHandle/useButtonHandles.cjs");
|
|
47
47
|
const external_Toolbar_index_cjs_namespaceObject = require("../Toolbar/index.cjs");
|
|
48
48
|
const external_BaseNode_styles_cjs_namespaceObject = require("./BaseNode.styles.cjs");
|
|
49
|
+
const external_BaseNodeConfigContext_cjs_namespaceObject = require("./BaseNodeConfigContext.cjs");
|
|
49
50
|
const external_NodeLabel_cjs_namespaceObject = require("./NodeLabel.cjs");
|
|
50
51
|
const selectIsConnecting = (state)=>!!state.connectionClickStartHandle;
|
|
51
52
|
const BaseNodeComponent = (props)=>{
|
|
52
|
-
const { type, data, selected, id, dragging, width, height
|
|
53
|
+
const { type, data, selected, id, dragging, width, height } = props;
|
|
54
|
+
const { onHandleAction: onHandleActionProp, shouldShowAddButtonFn: shouldShowAddButtonFnProp, shouldShowButtonHandleNotchesFn: shouldShowButtonHandleNotchesFnProp, toolbarConfig: toolbarConfigProp, handleConfigurations: handleConfigurationsProp, adornments: adornmentsProp, suggestionType, disabled, executionStatusOverride, labelTooltip, labelBackgroundColor, footerVariant, footerComponent, subLabelComponent, iconComponent } = (0, external_BaseNodeConfigContext_cjs_namespaceObject.useBaseNodeOverrideConfig)();
|
|
53
55
|
const updateNodeInternals = (0, react_cjs_namespaceObject.useUpdateNodeInternals)();
|
|
54
56
|
const { updateNodeData, updateNode } = (0, react_cjs_namespaceObject.useReactFlow)();
|
|
55
57
|
const containerRef = (0, external_react_namespaceObject.useRef)(null);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { Node, NodeProps } from '../../xyflow/react.ts';
|
|
2
|
+
import type { BaseNodeData } from './BaseNode.types';
|
|
3
|
+
export declare const BaseNode: import("react").MemoExoticComponent<(props: NodeProps<Node<BaseNodeData>>) => import("react/jsx-runtime").JSX.Element>;
|
|
3
4
|
//# sourceMappingURL=BaseNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAkB,MAAM,0CAA0C,CAAC;AAkChG,OAAO,KAAK,EACV,YAAY,EAIb,MAAM,kBAAkB,CAAC;AA0f1B,eAAO,MAAM,QAAQ,8CArfa,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,6CAqfhB,CAAC"}
|
|
@@ -18,10 +18,12 @@ import { SmartHandle, SmartHandleProvider } from "../ButtonHandle/SmartHandle.js
|
|
|
18
18
|
import { useButtonHandles } from "../ButtonHandle/useButtonHandles.js";
|
|
19
19
|
import { NodeToolbar } from "../Toolbar/index.js";
|
|
20
20
|
import { BaseBadgeSlot, BaseContainer, BaseHeader, BaseIconWrapper, BaseSubHeader, BaseTextContainer } from "./BaseNode.styles.js";
|
|
21
|
+
import { useBaseNodeOverrideConfig } from "./BaseNodeConfigContext.js";
|
|
21
22
|
import { NodeLabel } from "./NodeLabel.js";
|
|
22
23
|
const selectIsConnecting = (state)=>!!state.connectionClickStartHandle;
|
|
23
24
|
const BaseNodeComponent = (props)=>{
|
|
24
|
-
const { type, data, selected, id, dragging, width, height
|
|
25
|
+
const { type, data, selected, id, dragging, width, height } = props;
|
|
26
|
+
const { onHandleAction: onHandleActionProp, shouldShowAddButtonFn: shouldShowAddButtonFnProp, shouldShowButtonHandleNotchesFn: shouldShowButtonHandleNotchesFnProp, toolbarConfig: toolbarConfigProp, handleConfigurations: handleConfigurationsProp, adornments: adornmentsProp, suggestionType, disabled, executionStatusOverride, labelTooltip, labelBackgroundColor, footerVariant, footerComponent, subLabelComponent, iconComponent } = useBaseNodeOverrideConfig();
|
|
25
27
|
const updateNodeInternals = useUpdateNodeInternals();
|
|
26
28
|
const { updateNodeData, updateNode } = useReactFlow();
|
|
27
29
|
const containerRef = useRef(null);
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import type { HandleGroupManifest } from '../../schema/node-definition';
|
|
2
1
|
import type { NodeShape } from '../../schema';
|
|
3
2
|
import type { ExecutionState } from '../../types/execution';
|
|
4
|
-
import type { HandleActionEvent } from '../ButtonHandle/ButtonHandle';
|
|
5
|
-
import type { NodeToolbarConfig } from '../Toolbar';
|
|
6
|
-
import type { Node, NodeProps } from '@xyflow/react';
|
|
7
3
|
export type FooterVariant = 'none' | 'button' | 'single' | 'double';
|
|
8
4
|
export interface BaseNodeData extends Record<string, unknown> {
|
|
9
5
|
display?: {
|
|
@@ -33,28 +29,4 @@ export interface NodeStatusContext {
|
|
|
33
29
|
isSelected?: boolean;
|
|
34
30
|
isDragging?: boolean;
|
|
35
31
|
}
|
|
36
|
-
export interface BaseNodeComponentProps extends NodeProps<Node<BaseNodeData>> {
|
|
37
|
-
onHandleAction?: (event: HandleActionEvent) => void;
|
|
38
|
-
shouldShowAddButtonFn?: (opts: {
|
|
39
|
-
showAddButton: boolean;
|
|
40
|
-
selected: boolean;
|
|
41
|
-
}) => boolean;
|
|
42
|
-
shouldShowButtonHandleNotchesFn?: (opts: {
|
|
43
|
-
isConnecting: boolean;
|
|
44
|
-
isSelected: boolean;
|
|
45
|
-
isHovered: boolean;
|
|
46
|
-
}) => boolean;
|
|
47
|
-
toolbarConfig?: NodeToolbarConfig | null;
|
|
48
|
-
handleConfigurations?: HandleGroupManifest[];
|
|
49
|
-
adornments?: NodeAdornments;
|
|
50
|
-
suggestionType?: 'add' | 'update' | 'delete';
|
|
51
|
-
disabled?: boolean;
|
|
52
|
-
executionStatusOverride?: string;
|
|
53
|
-
labelTooltip?: string;
|
|
54
|
-
labelBackgroundColor?: string;
|
|
55
|
-
footerVariant?: FooterVariant;
|
|
56
|
-
footerComponent?: React.ReactNode;
|
|
57
|
-
subLabelComponent?: React.ReactNode;
|
|
58
|
-
iconComponent?: React.ReactNode;
|
|
59
|
-
}
|
|
60
32
|
//# sourceMappingURL=BaseNode.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseNode.types.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"BaseNode.types.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEpE,MAAM,WAAW,YAAa,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC3D,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,SAAS,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IAOF,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 ('undefined' != 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
|
+
useBaseNodeOverrideConfig: ()=>useBaseNodeOverrideConfig,
|
|
28
|
+
BaseNodeOverrideConfigProvider: ()=>BaseNodeOverrideConfigProvider
|
|
29
|
+
});
|
|
30
|
+
const external_react_namespaceObject = require("react");
|
|
31
|
+
const EMPTY_CONFIG = {};
|
|
32
|
+
const BaseNodeOverrideConfigContext = /*#__PURE__*/ (0, external_react_namespaceObject.createContext)(EMPTY_CONFIG);
|
|
33
|
+
const BaseNodeOverrideConfigProvider = BaseNodeOverrideConfigContext.Provider;
|
|
34
|
+
function useBaseNodeOverrideConfig() {
|
|
35
|
+
return (0, external_react_namespaceObject.useContext)(BaseNodeOverrideConfigContext);
|
|
36
|
+
}
|
|
37
|
+
exports.BaseNodeOverrideConfigProvider = __webpack_exports__.BaseNodeOverrideConfigProvider;
|
|
38
|
+
exports.useBaseNodeOverrideConfig = __webpack_exports__.useBaseNodeOverrideConfig;
|
|
39
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
40
|
+
"BaseNodeOverrideConfigProvider",
|
|
41
|
+
"useBaseNodeOverrideConfig"
|
|
42
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
43
|
+
Object.defineProperty(exports, '__esModule', {
|
|
44
|
+
value: true
|
|
45
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { HandleGroupManifest } from '../../schema/node-definition';
|
|
2
|
+
import type { HandleActionEvent } from '../ButtonHandle/ButtonHandle';
|
|
3
|
+
import type { NodeToolbarConfig } from '../Toolbar';
|
|
4
|
+
import type { FooterVariant, NodeAdornments } from './BaseNode.types';
|
|
5
|
+
export interface BaseNodeOverrideConfig {
|
|
6
|
+
onHandleAction?: (event: HandleActionEvent) => void;
|
|
7
|
+
shouldShowAddButtonFn?: (opts: {
|
|
8
|
+
showAddButton: boolean;
|
|
9
|
+
selected: boolean;
|
|
10
|
+
}) => boolean;
|
|
11
|
+
shouldShowButtonHandleNotchesFn?: (opts: {
|
|
12
|
+
isConnecting: boolean;
|
|
13
|
+
isSelected: boolean;
|
|
14
|
+
isHovered: boolean;
|
|
15
|
+
}) => boolean;
|
|
16
|
+
toolbarConfig?: NodeToolbarConfig | null;
|
|
17
|
+
handleConfigurations?: HandleGroupManifest[];
|
|
18
|
+
adornments?: NodeAdornments;
|
|
19
|
+
suggestionType?: 'add' | 'update' | 'delete';
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
executionStatusOverride?: string;
|
|
22
|
+
labelTooltip?: string;
|
|
23
|
+
labelBackgroundColor?: string;
|
|
24
|
+
footerVariant?: FooterVariant;
|
|
25
|
+
footerComponent?: React.ReactNode;
|
|
26
|
+
subLabelComponent?: React.ReactNode;
|
|
27
|
+
iconComponent?: React.ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export declare const BaseNodeOverrideConfigProvider: import("react").Provider<BaseNodeOverrideConfig>;
|
|
30
|
+
export declare function useBaseNodeOverrideConfig(): BaseNodeOverrideConfig;
|
|
31
|
+
//# sourceMappingURL=BaseNodeConfigContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseNodeConfigContext.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/Ba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kDAAyC,CAAC;AAMrF,wBAAgB,yBAAyB,IAAI,sBAAsB,CAElE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext, useContext } from "react";
|
|
2
|
+
const EMPTY_CONFIG = {};
|
|
3
|
+
const BaseNodeOverrideConfigContext = /*#__PURE__*/ createContext(EMPTY_CONFIG);
|
|
4
|
+
const BaseNodeOverrideConfigProvider = BaseNodeOverrideConfigContext.Provider;
|
|
5
|
+
function useBaseNodeOverrideConfig() {
|
|
6
|
+
return useContext(BaseNodeOverrideConfigContext);
|
|
7
|
+
}
|
|
8
|
+
export { BaseNodeOverrideConfigProvider, useBaseNodeOverrideConfig };
|
|
@@ -6,6 +6,9 @@ var __webpack_modules__ = {
|
|
|
6
6
|
"./BaseNode.types": function(module) {
|
|
7
7
|
module.exports = require("./BaseNode.types.cjs");
|
|
8
8
|
},
|
|
9
|
+
"./BaseNodeConfigContext": function(module) {
|
|
10
|
+
module.exports = require("./BaseNodeConfigContext.cjs");
|
|
11
|
+
},
|
|
9
12
|
"./useNodeCollapse": function(module) {
|
|
10
13
|
module.exports = require("./useNodeCollapse.cjs");
|
|
11
14
|
}
|
|
@@ -65,10 +68,16 @@ var __webpack_exports__ = {};
|
|
|
65
68
|
return _BaseNode_types__WEBPACK_IMPORTED_MODULE_1__[key];
|
|
66
69
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
67
70
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
68
|
-
var
|
|
71
|
+
var _BaseNodeConfigContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./BaseNodeConfigContext");
|
|
72
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
73
|
+
for(var __WEBPACK_IMPORT_KEY__ in _BaseNodeConfigContext__WEBPACK_IMPORTED_MODULE_2__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
74
|
+
return _BaseNodeConfigContext__WEBPACK_IMPORTED_MODULE_2__[key];
|
|
75
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
76
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
77
|
+
var _useNodeCollapse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./useNodeCollapse");
|
|
69
78
|
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
70
|
-
for(var __WEBPACK_IMPORT_KEY__ in
|
|
71
|
-
return
|
|
79
|
+
for(var __WEBPACK_IMPORT_KEY__ in _useNodeCollapse__WEBPACK_IMPORTED_MODULE_3__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
80
|
+
return _useNodeCollapse__WEBPACK_IMPORTED_MODULE_3__[key];
|
|
72
81
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
73
82
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
74
83
|
})();
|