@uipath/apollo-react 7.8.0 → 7.8.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.
|
@@ -299,12 +299,13 @@ const BaseNodeComponent = (props)=>{
|
|
|
299
299
|
const handleMouseLeave = (0, external_react_namespaceObject.useCallback)(()=>setIsHovered(false), []);
|
|
300
300
|
const handleFocus = (0, external_react_namespaceObject.useCallback)(()=>setIsFocused(true), []);
|
|
301
301
|
const handleBlur = (0, external_react_namespaceObject.useCallback)(()=>setIsFocused(false), []);
|
|
302
|
-
const handleLabelChange = (0, external_react_namespaceObject.useCallback)((
|
|
302
|
+
const handleLabelChange = (0, external_react_namespaceObject.useCallback)(({ label, subLabel })=>{
|
|
303
303
|
const newDisplay = {
|
|
304
|
-
...data.display
|
|
304
|
+
...data.display,
|
|
305
|
+
label
|
|
305
306
|
};
|
|
306
|
-
|
|
307
|
-
else delete newDisplay
|
|
307
|
+
if (subLabel) newDisplay.subLabel = subLabel;
|
|
308
|
+
else delete newDisplay.subLabel;
|
|
308
309
|
updateNodeData(id, {
|
|
309
310
|
display: newDisplay
|
|
310
311
|
});
|
|
@@ -271,12 +271,13 @@ const BaseNodeComponent = (props)=>{
|
|
|
271
271
|
const handleMouseLeave = useCallback(()=>setIsHovered(false), []);
|
|
272
272
|
const handleFocus = useCallback(()=>setIsFocused(true), []);
|
|
273
273
|
const handleBlur = useCallback(()=>setIsFocused(false), []);
|
|
274
|
-
const handleLabelChange = useCallback((
|
|
274
|
+
const handleLabelChange = useCallback(({ label, subLabel })=>{
|
|
275
275
|
const newDisplay = {
|
|
276
|
-
...data.display
|
|
276
|
+
...data.display,
|
|
277
|
+
label
|
|
277
278
|
};
|
|
278
|
-
|
|
279
|
-
else delete newDisplay
|
|
279
|
+
if (subLabel) newDisplay.subLabel = subLabel;
|
|
280
|
+
else delete newDisplay.subLabel;
|
|
280
281
|
updateNodeData(id, {
|
|
281
282
|
display: newDisplay
|
|
282
283
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "7.8.
|
|
3
|
+
"version": "7.8.1",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -245,8 +245,8 @@
|
|
|
245
245
|
"zod": "^4.3.5",
|
|
246
246
|
"zustand": "^5.0.9",
|
|
247
247
|
"@uipath/apollo-core": "5.15.2",
|
|
248
|
-
"@uipath/apollo-
|
|
249
|
-
"@uipath/apollo-
|
|
248
|
+
"@uipath/apollo-wind": "2.72.2",
|
|
249
|
+
"@uipath/apollo-ui-icons": "1.2.0"
|
|
250
250
|
},
|
|
251
251
|
"devDependencies": {
|
|
252
252
|
"@lingui/cli": "^5.6.1",
|