@uipath/apollo-react 4.15.0 → 4.15.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.
@@ -61,7 +61,8 @@ const CHIP_ICONS = {
61
61
  })
62
62
  };
63
63
  const StageNodeHeaderInner = ({ props, isReadOnly, isException, status, handleTaskAddClick })=>{
64
- const { id, stageDetails, execution, addTaskLabel = 'Add task', onTaskAdd, onAddTaskFromToolbox, onStageTitleChange } = props;
64
+ const { id, stageDetails, execution, addTaskLabel = 'Add task', onTaskAdd, onAddTaskFromToolbox, onStageTitleChange, loadingTaskIds } = props;
65
+ const isAddTaskDisabled = (loadingTaskIds?.size ?? 0) > 0;
65
66
  const icon = stageDetails?.icon;
66
67
  const statusLabel = execution?.stageStatus?.label;
67
68
  const stageDuration = execution?.stageStatus?.duration;
@@ -229,6 +230,7 @@ const StageNodeHeaderInner = ({ props, isReadOnly, isException, status, handleTa
229
230
  className: "h-6 w-6",
230
231
  onClick: handleTaskAddClick,
231
232
  "aria-label": addTaskLabel,
233
+ disabled: isAddTaskDisabled,
232
234
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
233
235
  icon: "plus",
234
236
  size: 20
@@ -1 +1 @@
1
- {"version":3,"file":"StageNodeHeader.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNodeHeader.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgMrE,eAAO,MAAM,eAAe,wGA/KzB;IACD,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,kBAAkB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;CACvD,6CAyKwD,CAAC"}
1
+ {"version":3,"file":"StageNodeHeader.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNodeHeader.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAoMrE,eAAO,MAAM,eAAe,wGAnLzB;IACD,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,kBAAkB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;CACvD,6CA6KwD,CAAC"}
@@ -33,7 +33,8 @@ const CHIP_ICONS = {
33
33
  })
34
34
  };
35
35
  const StageNodeHeaderInner = ({ props, isReadOnly, isException, status, handleTaskAddClick })=>{
36
- const { id, stageDetails, execution, addTaskLabel = 'Add task', onTaskAdd, onAddTaskFromToolbox, onStageTitleChange } = props;
36
+ const { id, stageDetails, execution, addTaskLabel = 'Add task', onTaskAdd, onAddTaskFromToolbox, onStageTitleChange, loadingTaskIds } = props;
37
+ const isAddTaskDisabled = (loadingTaskIds?.size ?? 0) > 0;
37
38
  const icon = stageDetails?.icon;
38
39
  const statusLabel = execution?.stageStatus?.label;
39
40
  const stageDuration = execution?.stageStatus?.duration;
@@ -201,6 +202,7 @@ const StageNodeHeaderInner = ({ props, isReadOnly, isException, status, handleTa
201
202
  className: "h-6 w-6",
202
203
  onClick: handleTaskAddClick,
203
204
  "aria-label": addTaskLabel,
205
+ disabled: isAddTaskDisabled,
204
206
  children: /*#__PURE__*/ jsx(CanvasIcon, {
205
207
  icon: "plus",
206
208
  size: 20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "4.15.0",
3
+ "version": "4.15.1",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",