@uipath/apollo-react 3.59.0 → 3.59.2

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.
@@ -62,7 +62,7 @@ const StageNodeComponent = (props)=>{
62
62
  const isReadOnly = !!stageDetails?.isReadOnly;
63
63
  const icon = stageDetails?.icon;
64
64
  const selectedTaskId = stageDetails?.selectedTaskId;
65
- const defaultContent = stageDetails?.defaultContent || 'Add first task';
65
+ const defaultContent = stageDetails?.defaultContent || (isReadOnly ? 'No tasks' : 'Add first task');
66
66
  const status = execution?.stageStatus?.status;
67
67
  const statusLabel = execution?.stageStatus?.label;
68
68
  const stageDuration = execution?.stageStatus?.duration;
@@ -1 +1 @@
1
- {"version":3,"file":"StageNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNode.tsx"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAmpBxD,eAAO,MAAM,SAAS,8CAzoBa,cAAc,6CAyoBA,CAAC"}
1
+ {"version":3,"file":"StageNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNode.tsx"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAopBxD,eAAO,MAAM,SAAS,8CA1oBa,cAAc,6CA0oBA,CAAC"}
@@ -34,7 +34,7 @@ const StageNodeComponent = (props)=>{
34
34
  const isReadOnly = !!stageDetails?.isReadOnly;
35
35
  const icon = stageDetails?.icon;
36
36
  const selectedTaskId = stageDetails?.selectedTaskId;
37
- const defaultContent = stageDetails?.defaultContent || 'Add first task';
37
+ const defaultContent = stageDetails?.defaultContent || (isReadOnly ? 'No tasks' : 'Add first task');
38
38
  const status = execution?.stageStatus?.status;
39
39
  const statusLabel = execution?.stageStatus?.label;
40
40
  const stageDuration = execution?.stageStatus?.duration;
@@ -149,8 +149,8 @@ function mergeGroupDown(tasks, groupIndex, taskIndex) {
149
149
  const currentGroupWithoutTask = currentGroup.filter((_, idx)=>idx !== taskIndex);
150
150
  if (belowGroup) {
151
151
  updatedTasks[groupIndex + 1] = [
152
- ...belowGroup,
153
- task
152
+ task,
153
+ ...belowGroup
154
154
  ];
155
155
  if (currentGroupWithoutTask.length > 0) updatedTasks[groupIndex] = currentGroupWithoutTask;
156
156
  else updatedTasks.splice(groupIndex, 1);
@@ -111,8 +111,8 @@ function mergeGroupDown(tasks, groupIndex, taskIndex) {
111
111
  const currentGroupWithoutTask = currentGroup.filter((_, idx)=>idx !== taskIndex);
112
112
  if (belowGroup) {
113
113
  updatedTasks[groupIndex + 1] = [
114
- ...belowGroup,
115
- task
114
+ task,
115
+ ...belowGroup
116
116
  ];
117
117
  if (currentGroupWithoutTask.length > 0) updatedTasks[groupIndex] = currentGroupWithoutTask;
118
118
  else updatedTasks.splice(groupIndex, 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "3.59.0",
3
+ "version": "3.59.2",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",
@@ -200,8 +200,8 @@
200
200
  "use-sync-external-store": "^1.2.0",
201
201
  "zod": "^4.3.5",
202
202
  "zustand": "^5.0.9",
203
- "@uipath/apollo-core": "5.7.4",
204
- "@uipath/apollo-wind": "1.2.1"
203
+ "@uipath/apollo-wind": "1.3.0",
204
+ "@uipath/apollo-core": "5.7.4"
205
205
  },
206
206
  "devDependencies": {
207
207
  "@lingui/cli": "^5.6.1",