@uipath/apollo-react 6.47.0 → 6.47.1
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/BaseNode/BaseNode.cjs +1 -0
- package/dist/canvas/components/BaseNode/BaseNode.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.js +1 -0
- package/dist/canvas/components/ButtonHandle/ButtonHandle.cjs +4 -3
- package/dist/canvas/components/ButtonHandle/ButtonHandle.d.ts +4 -2
- package/dist/canvas/components/ButtonHandle/ButtonHandle.d.ts.map +1 -1
- package/dist/canvas/components/ButtonHandle/ButtonHandle.js +4 -3
- package/dist/canvas/components/ButtonHandle/useButtonHandles.cjs +3 -1
- package/dist/canvas/components/ButtonHandle/useButtonHandles.d.ts +2 -1
- package/dist/canvas/components/ButtonHandle/useButtonHandles.d.ts.map +1 -1
- package/dist/canvas/components/ButtonHandle/useButtonHandles.js +3 -1
- package/dist/canvas/components/LoopNode/LoopNode.cjs +3 -1
- package/dist/canvas/components/LoopNode/LoopNode.d.ts.map +1 -1
- package/dist/canvas/components/LoopNode/LoopNode.js +3 -1
- package/package.json +3 -3
|
@@ -380,6 +380,7 @@ const BaseNodeComponent = (props)=>{
|
|
|
380
380
|
selected: selected ?? false,
|
|
381
381
|
hovered: isHovered,
|
|
382
382
|
showAddButton: canEdit && !multipleNodesSelected && !isConnecting && !dragging,
|
|
383
|
+
isLocked: !canEdit,
|
|
383
384
|
showNotches,
|
|
384
385
|
nodeWidth: containerWidth,
|
|
385
386
|
nodeHeight: computedHeight,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AA+ChF,OAAO,KAAK,EACV,YAAY,EAIb,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AA+ChF,OAAO,KAAK,EACV,YAAY,EAIb,MAAM,kBAAkB,CAAC;AAysB1B,eAAO,MAAM,QAAQ,8CApqBa,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,6CAoqBmB,CAAC"}
|
|
@@ -352,6 +352,7 @@ const BaseNodeComponent = (props)=>{
|
|
|
352
352
|
selected: selected ?? false,
|
|
353
353
|
hovered: isHovered,
|
|
354
354
|
showAddButton: canEdit && !multipleNodesSelected && !isConnecting && !dragging,
|
|
355
|
+
isLocked: !canEdit,
|
|
355
356
|
showNotches,
|
|
356
357
|
nodeWidth: containerWidth,
|
|
357
358
|
nodeHeight: computedHeight,
|
|
@@ -39,7 +39,7 @@ const external_HandleButton_cjs_namespaceObject = require("./HandleButton.cjs");
|
|
|
39
39
|
const external_HandleLabel_cjs_namespaceObject = require("./HandleLabel.cjs");
|
|
40
40
|
const external_HandleNotch_cjs_namespaceObject = require("./HandleNotch.cjs");
|
|
41
41
|
const external_useButtonHandleSizeAndPosition_cjs_namespaceObject = require("./useButtonHandleSizeAndPosition.cjs");
|
|
42
|
-
const ButtonHandleBase = ({ id, nodeId, type, position, connectionPosition = position, handleType, label, labelIcon, labelBackgroundColor, visible = true, labelVisible, labelVisibility, showButton = true, selected = false, index = 0, total = 1, onAction, onMouseEnter, onMouseLeave, showNotches = true, customPositionAndOffsets, nodeWidth, nodeHeight, portalAction = false })=>{
|
|
42
|
+
const ButtonHandleBase = ({ id, nodeId, type, position, connectionPosition = position, handleType, label, labelIcon, labelBackgroundColor, visible = true, labelVisible, labelVisibility, showButton = true, isLocked = false, selected = false, index = 0, total = 1, onAction, onMouseEnter, onMouseLeave, showNotches = true, customPositionAndOffsets, nodeWidth, nodeHeight, portalAction = false })=>{
|
|
43
43
|
const handleRef = (0, external_react_namespaceObject.useRef)(null);
|
|
44
44
|
const [isHovered, setIsHovered] = (0, external_react_namespaceObject.useState)(false);
|
|
45
45
|
const isVertical = position === react_cjs_namespaceObject.Position.Top || position === react_cjs_namespaceObject.Position.Bottom;
|
|
@@ -108,7 +108,7 @@ const ButtonHandleBase = ({ id, nodeId, type, position, connectionPosition = pos
|
|
|
108
108
|
const unmarkAsHovered = (0, external_react_namespaceObject.useCallback)(()=>setIsHovered(false), []);
|
|
109
109
|
const showActionButton = !!onAction && 'source' === type;
|
|
110
110
|
const resolvedLabelVisible = labelVisible ?? visible;
|
|
111
|
-
const keepButtonMounted = 'hover' === labelVisibility;
|
|
111
|
+
const keepButtonMounted = 'hover' === labelVisibility && !isLocked;
|
|
112
112
|
const { width: handleWidth, height: handleHeight, top, bottom, left, right, transform } = (0, external_useButtonHandleSizeAndPosition_cjs_namespaceObject.useButtonHandleSizeAndPosition)({
|
|
113
113
|
position,
|
|
114
114
|
positionPercent,
|
|
@@ -257,7 +257,7 @@ function InwardHandleContent({ handleType, isVertical, selected, hovered, showNo
|
|
|
257
257
|
]
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
const ButtonHandlesBase = ({ nodeId, handles, position, connectionPosition = position, selected = false, hovered = false, visible = true, showAddButton = true, showNotches = true, customPositionAndOffsets, shouldShowAddButtonFn = ({ showAddButton, selected, hovered })=>showAddButton && (selected || hovered), nodeWidth, nodeHeight, portalActions = false })=>{
|
|
260
|
+
const ButtonHandlesBase = ({ nodeId, handles, position, connectionPosition = position, selected = false, hovered = false, visible = true, showAddButton = true, isLocked = false, showNotches = true, customPositionAndOffsets, shouldShowAddButtonFn = ({ showAddButton, selected, hovered })=>showAddButton && (selected || hovered), nodeWidth, nodeHeight, portalActions = false })=>{
|
|
261
261
|
const finalSelected = shouldShowAddButtonFn({
|
|
262
262
|
showAddButton,
|
|
263
263
|
selected,
|
|
@@ -291,6 +291,7 @@ const ButtonHandlesBase = ({ nodeId, handles, position, connectionPosition = pos
|
|
|
291
291
|
visible: handleVisible,
|
|
292
292
|
labelVisible: labelVisible,
|
|
293
293
|
showButton: finalSelected && handleVisible && handle.showButton,
|
|
294
|
+
isLocked: isLocked || false === handle.showButton,
|
|
294
295
|
onAction: handle.onAction,
|
|
295
296
|
onMouseEnter: handle.onMouseEnter,
|
|
296
297
|
onMouseLeave: handle.onMouseLeave,
|
|
@@ -28,6 +28,7 @@ type ButtonHandleProps = {
|
|
|
28
28
|
labelVisible?: boolean;
|
|
29
29
|
labelVisibility?: HandleLabelVisibility;
|
|
30
30
|
showButton?: boolean;
|
|
31
|
+
isLocked?: boolean;
|
|
31
32
|
selected?: boolean;
|
|
32
33
|
index?: number;
|
|
33
34
|
total?: number;
|
|
@@ -40,7 +41,7 @@ type ButtonHandleProps = {
|
|
|
40
41
|
nodeHeight?: number;
|
|
41
42
|
portalAction?: boolean;
|
|
42
43
|
};
|
|
43
|
-
export declare const ButtonHandle: import("react").MemoExoticComponent<({ id, nodeId, type, position, connectionPosition, handleType, label, labelIcon, labelBackgroundColor, visible, labelVisible, labelVisibility, showButton, selected, index, total, onAction, onMouseEnter, onMouseLeave, showNotches, customPositionAndOffsets, nodeWidth, nodeHeight, portalAction, }: ButtonHandleProps) => import("react/jsx-runtime").JSX.Element>;
|
|
44
|
+
export declare const ButtonHandle: import("react").MemoExoticComponent<({ id, nodeId, type, position, connectionPosition, handleType, label, labelIcon, labelBackgroundColor, visible, labelVisible, labelVisibility, showButton, isLocked, selected, index, total, onAction, onMouseEnter, onMouseLeave, showNotches, customPositionAndOffsets, nodeWidth, nodeHeight, portalAction, }: ButtonHandleProps) => import("react/jsx-runtime").JSX.Element>;
|
|
44
45
|
export interface ButtonHandleConfig {
|
|
45
46
|
id: string;
|
|
46
47
|
type: 'source' | 'target';
|
|
@@ -57,7 +58,7 @@ export interface ButtonHandleConfig {
|
|
|
57
58
|
onMouseLeave?: (event: HandleMouseEvent) => void;
|
|
58
59
|
customPositionAndOffsets?: HandleConfigurationSpecificPosition;
|
|
59
60
|
}
|
|
60
|
-
export declare const ButtonHandles: import("react").MemoExoticComponent<({ nodeId, handles, position, connectionPosition, selected, hovered, visible, showAddButton, showNotches, customPositionAndOffsets, shouldShowAddButtonFn, nodeWidth, nodeHeight, portalActions, }: {
|
|
61
|
+
export declare const ButtonHandles: import("react").MemoExoticComponent<({ nodeId, handles, position, connectionPosition, selected, hovered, visible, showAddButton, isLocked, showNotches, customPositionAndOffsets, shouldShowAddButtonFn, nodeWidth, nodeHeight, portalActions, }: {
|
|
61
62
|
nodeId: string;
|
|
62
63
|
handles: ButtonHandleConfig[];
|
|
63
64
|
position: Position;
|
|
@@ -66,6 +67,7 @@ export declare const ButtonHandles: import("react").MemoExoticComponent<({ nodeI
|
|
|
66
67
|
hovered?: boolean;
|
|
67
68
|
visible?: boolean;
|
|
68
69
|
showAddButton?: boolean;
|
|
70
|
+
isLocked?: boolean;
|
|
69
71
|
showNotches?: boolean;
|
|
70
72
|
customPositionAndOffsets?: HandleConfigurationSpecificPosition;
|
|
71
73
|
nodeWidth?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonHandle.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/ButtonHandle/ButtonHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAE5E,OAAO,KAAK,EACV,mCAAmC,EACnC,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAY7C,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAG7D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,aAAa,EAAE,KAAK,CAAC,UAAU,CAAC;CACjC;AAGD,MAAM,WAAW,gBAAgB;IAC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AAC;IACnB,kBAAkB,CAAC,EAAE,QAAQ,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wBAAwB,CAAC,EAAE,mCAAmC,CAAC;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,aAAa,CAAC,EAAE,OAAO,CAAC;IAUxB,qBAAqB,CAAC,EAAE,CAAC,EACvB,aAAa,EACb,QAAQ,EACR,OAAO,GACR,EAAE;QACD,aAAa,EAAE,OAAO,CAAC;QACvB,QAAQ,EAAE,OAAO,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;KAClB,KAAK,OAAO,CAAC;CACf,6CA2DmD,CAAC"}
|
|
@@ -10,7 +10,7 @@ import { HandleButton, HandleHoverBridge } from "./HandleButton.js";
|
|
|
10
10
|
import { HandleLabel } from "./HandleLabel.js";
|
|
11
11
|
import { HandleNotch } from "./HandleNotch.js";
|
|
12
12
|
import { useButtonHandleSizeAndPosition } from "./useButtonHandleSizeAndPosition.js";
|
|
13
|
-
const ButtonHandleBase = ({ id, nodeId, type, position, connectionPosition = position, handleType, label, labelIcon, labelBackgroundColor, visible = true, labelVisible, labelVisibility, showButton = true, selected = false, index = 0, total = 1, onAction, onMouseEnter, onMouseLeave, showNotches = true, customPositionAndOffsets, nodeWidth, nodeHeight, portalAction = false })=>{
|
|
13
|
+
const ButtonHandleBase = ({ id, nodeId, type, position, connectionPosition = position, handleType, label, labelIcon, labelBackgroundColor, visible = true, labelVisible, labelVisibility, showButton = true, isLocked = false, selected = false, index = 0, total = 1, onAction, onMouseEnter, onMouseLeave, showNotches = true, customPositionAndOffsets, nodeWidth, nodeHeight, portalAction = false })=>{
|
|
14
14
|
const handleRef = useRef(null);
|
|
15
15
|
const [isHovered, setIsHovered] = useState(false);
|
|
16
16
|
const isVertical = position === Position.Top || position === Position.Bottom;
|
|
@@ -79,7 +79,7 @@ const ButtonHandleBase = ({ id, nodeId, type, position, connectionPosition = pos
|
|
|
79
79
|
const unmarkAsHovered = useCallback(()=>setIsHovered(false), []);
|
|
80
80
|
const showActionButton = !!onAction && 'source' === type;
|
|
81
81
|
const resolvedLabelVisible = labelVisible ?? visible;
|
|
82
|
-
const keepButtonMounted = 'hover' === labelVisibility;
|
|
82
|
+
const keepButtonMounted = 'hover' === labelVisibility && !isLocked;
|
|
83
83
|
const { width: handleWidth, height: handleHeight, top, bottom, left, right, transform } = useButtonHandleSizeAndPosition({
|
|
84
84
|
position,
|
|
85
85
|
positionPercent,
|
|
@@ -228,7 +228,7 @@ function InwardHandleContent({ handleType, isVertical, selected, hovered, showNo
|
|
|
228
228
|
]
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
|
-
const ButtonHandlesBase = ({ nodeId, handles, position, connectionPosition = position, selected = false, hovered = false, visible = true, showAddButton = true, showNotches = true, customPositionAndOffsets, shouldShowAddButtonFn = ({ showAddButton, selected, hovered })=>showAddButton && (selected || hovered), nodeWidth, nodeHeight, portalActions = false })=>{
|
|
231
|
+
const ButtonHandlesBase = ({ nodeId, handles, position, connectionPosition = position, selected = false, hovered = false, visible = true, showAddButton = true, isLocked = false, showNotches = true, customPositionAndOffsets, shouldShowAddButtonFn = ({ showAddButton, selected, hovered })=>showAddButton && (selected || hovered), nodeWidth, nodeHeight, portalActions = false })=>{
|
|
232
232
|
const finalSelected = shouldShowAddButtonFn({
|
|
233
233
|
showAddButton,
|
|
234
234
|
selected,
|
|
@@ -262,6 +262,7 @@ const ButtonHandlesBase = ({ nodeId, handles, position, connectionPosition = pos
|
|
|
262
262
|
visible: handleVisible,
|
|
263
263
|
labelVisible: labelVisible,
|
|
264
264
|
showButton: finalSelected && handleVisible && handle.showButton,
|
|
265
|
+
isLocked: isLocked || false === handle.showButton,
|
|
265
266
|
onAction: handle.onAction,
|
|
266
267
|
onMouseEnter: handle.onMouseEnter,
|
|
267
268
|
onMouseLeave: handle.onMouseLeave,
|
|
@@ -32,7 +32,7 @@ const external_react_namespaceObject = require("react");
|
|
|
32
32
|
const manifest_resolver_cjs_namespaceObject = require("../../utils/manifest-resolver.cjs");
|
|
33
33
|
const ConnectedHandlesContext_cjs_namespaceObject = require("../BaseCanvas/ConnectedHandlesContext.cjs");
|
|
34
34
|
const external_index_cjs_namespaceObject = require("./index.cjs");
|
|
35
|
-
const useButtonHandles = ({ handleConfigurations, shouldShowHandles, handleAction, handleMouseEnter, handleMouseLeave, nodeId, selected, hovered, showAddButton, showNotches, shouldShowAddButtonFn, nodeWidth, nodeHeight, portalActions })=>{
|
|
35
|
+
const useButtonHandles = ({ handleConfigurations, shouldShowHandles, handleAction, handleMouseEnter, handleMouseLeave, nodeId, selected, hovered, showAddButton, isLocked, showNotches, shouldShowAddButtonFn, nodeWidth, nodeHeight, portalActions })=>{
|
|
36
36
|
const connectedHandleIds = (0, ConnectedHandlesContext_cjs_namespaceObject.useConnectedHandles)(nodeId);
|
|
37
37
|
const node = (0, react_namespaceObject.useNodesData)(nodeId);
|
|
38
38
|
const handleElements = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
@@ -54,6 +54,7 @@ const useButtonHandles = ({ handleConfigurations, shouldShowHandles, handleActio
|
|
|
54
54
|
selected: selected,
|
|
55
55
|
hovered: hovered,
|
|
56
56
|
showAddButton: showAddButton,
|
|
57
|
+
isLocked: isLocked,
|
|
57
58
|
showNotches: showNotches,
|
|
58
59
|
customPositionAndOffsets: config.customPositionAndOffsets,
|
|
59
60
|
shouldShowAddButtonFn: shouldShowAddButtonFn,
|
|
@@ -74,6 +75,7 @@ const useButtonHandles = ({ handleConfigurations, shouldShowHandles, handleActio
|
|
|
74
75
|
handleMouseLeave,
|
|
75
76
|
nodeId,
|
|
76
77
|
showAddButton,
|
|
78
|
+
isLocked,
|
|
77
79
|
showNotches,
|
|
78
80
|
shouldShowAddButtonFn,
|
|
79
81
|
nodeWidth,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HandleGroupManifest } from '../../schema/node-definition';
|
|
2
2
|
import type { HandleActionEvent, HandleMouseEvent } from '../ButtonHandle';
|
|
3
|
-
export declare const useButtonHandles: ({ handleConfigurations, shouldShowHandles, handleAction, handleMouseEnter, handleMouseLeave, nodeId, selected, hovered, showAddButton, showNotches, shouldShowAddButtonFn, nodeWidth, nodeHeight, portalActions, }: {
|
|
3
|
+
export declare const useButtonHandles: ({ handleConfigurations, shouldShowHandles, handleAction, handleMouseEnter, handleMouseLeave, nodeId, selected, hovered, showAddButton, isLocked, showNotches, shouldShowAddButtonFn, nodeWidth, nodeHeight, portalActions, }: {
|
|
4
4
|
handleConfigurations: HandleGroupManifest[];
|
|
5
5
|
shouldShowHandles: boolean;
|
|
6
6
|
nodeId: string;
|
|
@@ -10,6 +10,7 @@ export declare const useButtonHandles: ({ handleConfigurations, shouldShowHandle
|
|
|
10
10
|
handleMouseEnter?: (event: HandleMouseEvent) => void;
|
|
11
11
|
handleMouseLeave?: (event: HandleMouseEvent) => void;
|
|
12
12
|
showAddButton?: boolean;
|
|
13
|
+
isLocked?: boolean;
|
|
13
14
|
showNotches?: boolean;
|
|
14
15
|
nodeWidth?: number;
|
|
15
16
|
nodeHeight?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useButtonHandles.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/ButtonHandle/useButtonHandles.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAG3E,eAAO,MAAM,gBAAgB,GAAI,
|
|
1
|
+
{"version":3,"file":"useButtonHandles.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/ButtonHandle/useButtonHandles.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAG3E,eAAO,MAAM,gBAAgB,GAAI,8NAgB9B;IACD,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;IAC5C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAClD,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrD,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IAUxB,qBAAqB,CAAC,EAAE,CAAC,EACvB,aAAa,EACb,QAAQ,EACR,OAAO,GACR,EAAE;QACD,aAAa,EAAE,OAAO,CAAC;QACvB,QAAQ,EAAE,OAAO,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;KAClB,KAAK,OAAO,CAAC;CACf,wFAwEA,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { useMemo } from "react";
|
|
|
4
4
|
import { resolveHandles } from "../../utils/manifest-resolver.js";
|
|
5
5
|
import { useConnectedHandles } from "../BaseCanvas/ConnectedHandlesContext.js";
|
|
6
6
|
import { ButtonHandles } from "./index.js";
|
|
7
|
-
const useButtonHandles = ({ handleConfigurations, shouldShowHandles, handleAction, handleMouseEnter, handleMouseLeave, nodeId, selected, hovered, showAddButton, showNotches, shouldShowAddButtonFn, nodeWidth, nodeHeight, portalActions })=>{
|
|
7
|
+
const useButtonHandles = ({ handleConfigurations, shouldShowHandles, handleAction, handleMouseEnter, handleMouseLeave, nodeId, selected, hovered, showAddButton, isLocked, showNotches, shouldShowAddButtonFn, nodeWidth, nodeHeight, portalActions })=>{
|
|
8
8
|
const connectedHandleIds = useConnectedHandles(nodeId);
|
|
9
9
|
const node = useNodesData(nodeId);
|
|
10
10
|
const handleElements = useMemo(()=>{
|
|
@@ -26,6 +26,7 @@ const useButtonHandles = ({ handleConfigurations, shouldShowHandles, handleActio
|
|
|
26
26
|
selected: selected,
|
|
27
27
|
hovered: hovered,
|
|
28
28
|
showAddButton: showAddButton,
|
|
29
|
+
isLocked: isLocked,
|
|
29
30
|
showNotches: showNotches,
|
|
30
31
|
customPositionAndOffsets: config.customPositionAndOffsets,
|
|
31
32
|
shouldShowAddButtonFn: shouldShowAddButtonFn,
|
|
@@ -46,6 +47,7 @@ const useButtonHandles = ({ handleConfigurations, shouldShowHandles, handleActio
|
|
|
46
47
|
handleMouseLeave,
|
|
47
48
|
nodeId,
|
|
48
49
|
showAddButton,
|
|
50
|
+
isLocked,
|
|
49
51
|
showNotches,
|
|
50
52
|
shouldShowAddButtonFn,
|
|
51
53
|
nodeWidth,
|
|
@@ -401,6 +401,7 @@ function LoopNodeComponent(props) {
|
|
|
401
401
|
hovered: isHovered,
|
|
402
402
|
shouldShowHandles: shouldShowHandles,
|
|
403
403
|
showAddButton: showHandleAddButtons,
|
|
404
|
+
isLocked: !canEditNode,
|
|
404
405
|
showNotches: shouldShowHandles,
|
|
405
406
|
nodeWidth: containerWidth,
|
|
406
407
|
nodeHeight: containerHeight,
|
|
@@ -533,7 +534,7 @@ function HandleGroups({ groups, ...handleGroupProps }) {
|
|
|
533
534
|
}, `${group.boundary}:${group.position}:${groupIndex}`))
|
|
534
535
|
});
|
|
535
536
|
}
|
|
536
|
-
function HandleGroup({ nodeId, group, selected, hovered, shouldShowHandles, showAddButton, showNotches, nodeWidth, nodeHeight, connectedHandleIds, onHandleAction }) {
|
|
537
|
+
function HandleGroup({ nodeId, group, selected, hovered, shouldShowHandles, showAddButton, isLocked, showNotches, nodeWidth, nodeHeight, connectedHandleIds, onHandleAction }) {
|
|
537
538
|
const groupVisible = shouldShowHandles && (group.visible ?? true);
|
|
538
539
|
const position = group.position;
|
|
539
540
|
const enhancedHandles = (0, external_react_namespaceObject.useMemo)(()=>group.handles.map((handle)=>{
|
|
@@ -565,6 +566,7 @@ function HandleGroup({ nodeId, group, selected, hovered, shouldShowHandles, show
|
|
|
565
566
|
selected: selected,
|
|
566
567
|
hovered: hovered,
|
|
567
568
|
showAddButton: showAddButton,
|
|
569
|
+
isLocked: isLocked,
|
|
568
570
|
showNotches: showNotches,
|
|
569
571
|
customPositionAndOffsets: group.customPositionAndOffsets,
|
|
570
572
|
nodeWidth: nodeWidth,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoopNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/LoopNode/LoopNode.tsx"],"names":[],"mappings":"AA4CA,OAAO,KAAK,EAA+B,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAsInF,iBAAS,iBAAiB,CAAC,KAAK,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"LoopNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/LoopNode/LoopNode.tsx"],"names":[],"mappings":"AA4CA,OAAO,KAAK,EAA+B,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAsInF,iBAAS,iBAAiB,CAAC,KAAK,EAAE,aAAa,2CAsS9C;AAED,eAAO,MAAM,QAAQ,+DAA6D,CAAC"}
|
|
@@ -373,6 +373,7 @@ function LoopNodeComponent(props) {
|
|
|
373
373
|
hovered: isHovered,
|
|
374
374
|
shouldShowHandles: shouldShowHandles,
|
|
375
375
|
showAddButton: showHandleAddButtons,
|
|
376
|
+
isLocked: !canEditNode,
|
|
376
377
|
showNotches: shouldShowHandles,
|
|
377
378
|
nodeWidth: containerWidth,
|
|
378
379
|
nodeHeight: containerHeight,
|
|
@@ -505,7 +506,7 @@ function HandleGroups({ groups, ...handleGroupProps }) {
|
|
|
505
506
|
}, `${group.boundary}:${group.position}:${groupIndex}`))
|
|
506
507
|
});
|
|
507
508
|
}
|
|
508
|
-
function HandleGroup({ nodeId, group, selected, hovered, shouldShowHandles, showAddButton, showNotches, nodeWidth, nodeHeight, connectedHandleIds, onHandleAction }) {
|
|
509
|
+
function HandleGroup({ nodeId, group, selected, hovered, shouldShowHandles, showAddButton, isLocked, showNotches, nodeWidth, nodeHeight, connectedHandleIds, onHandleAction }) {
|
|
509
510
|
const groupVisible = shouldShowHandles && (group.visible ?? true);
|
|
510
511
|
const position = group.position;
|
|
511
512
|
const enhancedHandles = useMemo(()=>group.handles.map((handle)=>{
|
|
@@ -537,6 +538,7 @@ function HandleGroup({ nodeId, group, selected, hovered, shouldShowHandles, show
|
|
|
537
538
|
selected: selected,
|
|
538
539
|
hovered: hovered,
|
|
539
540
|
showAddButton: showAddButton,
|
|
541
|
+
isLocked: isLocked,
|
|
540
542
|
showNotches: showNotches,
|
|
541
543
|
customPositionAndOffsets: group.customPositionAndOffsets,
|
|
542
544
|
nodeWidth: nodeWidth,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "6.47.
|
|
3
|
+
"version": "6.47.1",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -226,9 +226,9 @@
|
|
|
226
226
|
"use-sync-external-store": "^1.2.0",
|
|
227
227
|
"zod": "^4.3.5",
|
|
228
228
|
"zustand": "^5.0.9",
|
|
229
|
+
"@uipath/apollo-core": "5.14.1",
|
|
229
230
|
"@uipath/apollo-ui-icons": "1.1.0",
|
|
230
|
-
"@uipath/apollo-wind": "2.52.2"
|
|
231
|
-
"@uipath/apollo-core": "5.14.1"
|
|
231
|
+
"@uipath/apollo-wind": "2.52.2"
|
|
232
232
|
},
|
|
233
233
|
"devDependencies": {
|
|
234
234
|
"@lingui/cli": "^5.6.1",
|