@uipath/apollo-react 3.35.0-pr230.2c2df1d → 3.35.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.
|
@@ -65,9 +65,6 @@ function resolveHandles(handleGroups, context) {
|
|
|
65
65
|
const isCollapsed = context?.isCollapsed ?? false;
|
|
66
66
|
return handleGroups.map((group)=>{
|
|
67
67
|
const handles = group.handles.flatMap((handle)=>{
|
|
68
|
-
const isArtifactHandle = 'artifact' === handle.handleType;
|
|
69
|
-
const handleBaseVisible = resolveVisibility(handle.visible, context);
|
|
70
|
-
const handleVisible = isCollapsed && isArtifactHandle ? false : handleBaseVisible;
|
|
71
68
|
if (handle.repeat) {
|
|
72
69
|
const array = getPropertyByPath(context.inputs || {}, handle.repeat);
|
|
73
70
|
if (!Array.isArray(array)) {
|
|
@@ -82,30 +79,32 @@ function resolveHandles(handleGroups, context) {
|
|
|
82
79
|
[itemVar]: item,
|
|
83
80
|
[indexVar]: index
|
|
84
81
|
};
|
|
82
|
+
const baseVisible = resolveVisibility(handle.visible, context);
|
|
83
|
+
const isArtifactHandle = 'artifact' === handle.handleType;
|
|
84
|
+
const visible = context.isCollapsed && isArtifactHandle ? false : baseVisible;
|
|
85
85
|
return {
|
|
86
86
|
...handle,
|
|
87
87
|
id: replaceTemplateVars(handle.id, vars),
|
|
88
88
|
label: handle.label ? replaceTemplateVars(handle.label, vars) : void 0,
|
|
89
|
-
visible
|
|
89
|
+
visible,
|
|
90
90
|
repeat: void 0,
|
|
91
91
|
itemVar: void 0,
|
|
92
92
|
indexVar: void 0
|
|
93
93
|
};
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
+
const baseVisible = resolveVisibility(handle.visible, context);
|
|
97
|
+
const isArtifactHandle = 'artifact' === handle.handleType;
|
|
98
|
+
const visible = isCollapsed && isArtifactHandle ? false : baseVisible;
|
|
96
99
|
return {
|
|
97
100
|
...handle,
|
|
98
101
|
id: replaceTemplateVars(handle.id, context),
|
|
99
102
|
label: handle.label ? replaceTemplateVars(handle.label, context) : void 0,
|
|
100
|
-
visible
|
|
103
|
+
visible
|
|
101
104
|
};
|
|
102
105
|
});
|
|
103
|
-
const hasVisibleHandles = handles.some((h)=>h.visible);
|
|
104
|
-
const groupBaseVisible = group.visible;
|
|
105
|
-
const groupVisible = isCollapsed && !hasVisibleHandles ? false : groupBaseVisible;
|
|
106
106
|
return {
|
|
107
107
|
...group,
|
|
108
|
-
visible: groupVisible,
|
|
109
108
|
handles
|
|
110
109
|
};
|
|
111
110
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-resolver.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/manifest-resolver.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAMrE,MAAM,WAAW,iBAAkB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAEhE,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAEhC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAMD,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,wBAAw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B,cAAc,CAC5B,eAAe,CAAC,EAAE,mBAAmB,EACrC,OAAO,CAAC,EAAE,iBAAiB,GAC1B,eAAe,CAoBjB;AA6BD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,EACrC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAmBT;AAiCD,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM,CAKhF;AAuCD,wBAAgB,cAAc,CAC5B,YAAY,EAAE,mBAAmB,EAAE,EACnC,OAAO,EAAE,iBAAiB,GACzB,mBAAmB,EAAE,CAkEvB"}
|
|
@@ -34,9 +34,6 @@ function resolveHandles(handleGroups, context) {
|
|
|
34
34
|
const isCollapsed = context?.isCollapsed ?? false;
|
|
35
35
|
return handleGroups.map((group)=>{
|
|
36
36
|
const handles = group.handles.flatMap((handle)=>{
|
|
37
|
-
const isArtifactHandle = 'artifact' === handle.handleType;
|
|
38
|
-
const handleBaseVisible = resolveVisibility(handle.visible, context);
|
|
39
|
-
const handleVisible = isCollapsed && isArtifactHandle ? false : handleBaseVisible;
|
|
40
37
|
if (handle.repeat) {
|
|
41
38
|
const array = getPropertyByPath(context.inputs || {}, handle.repeat);
|
|
42
39
|
if (!Array.isArray(array)) {
|
|
@@ -51,30 +48,32 @@ function resolveHandles(handleGroups, context) {
|
|
|
51
48
|
[itemVar]: item,
|
|
52
49
|
[indexVar]: index
|
|
53
50
|
};
|
|
51
|
+
const baseVisible = resolveVisibility(handle.visible, context);
|
|
52
|
+
const isArtifactHandle = 'artifact' === handle.handleType;
|
|
53
|
+
const visible = context.isCollapsed && isArtifactHandle ? false : baseVisible;
|
|
54
54
|
return {
|
|
55
55
|
...handle,
|
|
56
56
|
id: replaceTemplateVars(handle.id, vars),
|
|
57
57
|
label: handle.label ? replaceTemplateVars(handle.label, vars) : void 0,
|
|
58
|
-
visible
|
|
58
|
+
visible,
|
|
59
59
|
repeat: void 0,
|
|
60
60
|
itemVar: void 0,
|
|
61
61
|
indexVar: void 0
|
|
62
62
|
};
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
+
const baseVisible = resolveVisibility(handle.visible, context);
|
|
66
|
+
const isArtifactHandle = 'artifact' === handle.handleType;
|
|
67
|
+
const visible = isCollapsed && isArtifactHandle ? false : baseVisible;
|
|
65
68
|
return {
|
|
66
69
|
...handle,
|
|
67
70
|
id: replaceTemplateVars(handle.id, context),
|
|
68
71
|
label: handle.label ? replaceTemplateVars(handle.label, context) : void 0,
|
|
69
|
-
visible
|
|
72
|
+
visible
|
|
70
73
|
};
|
|
71
74
|
});
|
|
72
|
-
const hasVisibleHandles = handles.some((h)=>h.visible);
|
|
73
|
-
const groupBaseVisible = group.visible;
|
|
74
|
-
const groupVisible = isCollapsed && !hasVisibleHandles ? false : groupBaseVisible;
|
|
75
75
|
return {
|
|
76
76
|
...group,
|
|
77
|
-
visible: groupVisible,
|
|
78
77
|
handles
|
|
79
78
|
};
|
|
80
79
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "3.35.0
|
|
3
|
+
"version": "3.35.0",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -198,8 +198,8 @@
|
|
|
198
198
|
"use-sync-external-store": "^1.2.0",
|
|
199
199
|
"zod": "^4.3.5",
|
|
200
200
|
"zustand": "^5.0.9",
|
|
201
|
-
"@uipath/apollo-
|
|
202
|
-
"@uipath/apollo-
|
|
201
|
+
"@uipath/apollo-wind": "0.9.1",
|
|
202
|
+
"@uipath/apollo-core": "5.7.0"
|
|
203
203
|
},
|
|
204
204
|
"devDependencies": {
|
|
205
205
|
"@lingui/cli": "^5.6.1",
|