@uipath/apollo-react 7.8.0 → 7.8.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.
@@ -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)((values)=>{
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
- for (const labelKey of Object.keys(values))if (values[labelKey]) newDisplay[labelKey] = values[labelKey];
307
- else delete newDisplay[labelKey];
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((values)=>{
274
+ const handleLabelChange = useCallback(({ label, subLabel })=>{
275
275
  const newDisplay = {
276
- ...data.display
276
+ ...data.display,
277
+ label
277
278
  };
278
- for (const labelKey of Object.keys(values))if (values[labelKey]) newDisplay[labelKey] = values[labelKey];
279
- else delete newDisplay[labelKey];
279
+ if (subLabel) newDisplay.subLabel = subLabel;
280
+ else delete newDisplay.subLabel;
280
281
  updateNodeData(id, {
281
282
  display: newDisplay
282
283
  });
@@ -197,6 +197,7 @@ function NodeIOView({ schema, value, onValueChange, basePath, readOnly = false,
197
197
  }),
198
198
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.TabsContent, {
199
199
  value: "schema",
200
+ tabIndex: void 0,
200
201
  className: "mt-0 flex min-h-0 flex-1 flex-col",
201
202
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
202
203
  className: "min-h-0 flex-1 overflow-hidden rounded-xl border border-surface-overlay bg-surface-overlay/40",
@@ -225,6 +226,7 @@ function NodeIOView({ schema, value, onValueChange, basePath, readOnly = false,
225
226
  }),
226
227
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.TabsContent, {
227
228
  value: "json",
229
+ tabIndex: void 0,
228
230
  className: "mt-0 flex min-h-0 flex-1 flex-col",
229
231
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
230
232
  className: "min-h-0 flex-1 overflow-hidden rounded-xl border border-surface-overlay bg-surface-overlay/40",
@@ -1 +1 @@
1
- {"version":3,"file":"NodeIOView.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodeIOView/NodeIOView.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAqC1D,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAgB,EAChB,KAAK,EACL,SAAS,EACT,UAAU,EACV,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,EACV,OAAO,EACP,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,MAAM,EACN,WAAmB,EACnB,qBAAyB,EACzB,KAAa,EACb,SAAS,GACV,EAAE,eAAe,2CAkNjB"}
1
+ {"version":3,"file":"NodeIOView.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodeIOView/NodeIOView.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAqC1D,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAgB,EAChB,KAAK,EACL,SAAS,EACT,UAAU,EACV,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,EACV,OAAO,EACP,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,MAAM,EACN,WAAmB,EACnB,qBAAyB,EACzB,KAAa,EACb,SAAS,GACV,EAAE,eAAe,2CA4NjB"}
@@ -169,6 +169,7 @@ function NodeIOView({ schema, value, onValueChange, basePath, readOnly = false,
169
169
  }),
170
170
  /*#__PURE__*/ jsx(TabsContent, {
171
171
  value: "schema",
172
+ tabIndex: void 0,
172
173
  className: "mt-0 flex min-h-0 flex-1 flex-col",
173
174
  children: /*#__PURE__*/ jsx("div", {
174
175
  className: "min-h-0 flex-1 overflow-hidden rounded-xl border border-surface-overlay bg-surface-overlay/40",
@@ -197,6 +198,7 @@ function NodeIOView({ schema, value, onValueChange, basePath, readOnly = false,
197
198
  }),
198
199
  /*#__PURE__*/ jsx(TabsContent, {
199
200
  value: "json",
201
+ tabIndex: void 0,
200
202
  className: "mt-0 flex min-h-0 flex-1 flex-col",
201
203
  children: /*#__PURE__*/ jsx("div", {
202
204
  className: "min-h-0 flex-1 overflow-hidden rounded-xl border border-surface-overlay bg-surface-overlay/40",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "7.8.0",
3
+ "version": "7.8.2",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",
@@ -246,7 +246,7 @@
246
246
  "zustand": "^5.0.9",
247
247
  "@uipath/apollo-core": "5.15.2",
248
248
  "@uipath/apollo-ui-icons": "1.2.0",
249
- "@uipath/apollo-wind": "2.72.2"
249
+ "@uipath/apollo-wind": "2.75.1"
250
250
  },
251
251
  "devDependencies": {
252
252
  "@lingui/cli": "^5.6.1",