@uipath/apollo-react 4.55.0 → 4.56.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.
@@ -33,7 +33,7 @@ const external_react_namespaceObject = require("react");
33
33
  const SURFACE_REMAP = {
34
34
  '--surface-raised': 'var(--surface-overlay)'
35
35
  };
36
- function NodePropertyPanel({ panelTitle, onClose, nodeIcon, nodeLabel, nodeCategory, action, schema, plugins, onSubmit, disabled, resetKey, className, contentInset = '1.5rem', children }) {
36
+ function NodePropertyPanel({ panelTitle, onClose, nodeIcon, nodeLabel, nodeCategory, action, schema, plugins, onSubmit, disabled, resetKey, className, contentInset = '1.5rem', children, headerExtra }) {
37
37
  const hasNodeHeader = !!(nodeLabel || nodeCategory || nodeIcon || action);
38
38
  const formSchema = (0, external_react_namespaceObject.useMemo)(()=>schema && void 0 === schema.actions ? {
39
39
  ...schema,
@@ -65,15 +65,21 @@ function NodePropertyPanel({ panelTitle, onClose, nodeIcon, nodeLabel, nodeCateg
65
65
  })
66
66
  ]
67
67
  }),
68
- onClose && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
69
- type: "button",
70
- onClick: onClose,
71
- title: "Close",
72
- "aria-label": "Close",
73
- className: "grid size-6 place-items-center rounded text-foreground-muted transition hover:bg-surface-overlay hover:text-foreground",
74
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X, {
75
- size: 14
76
- })
68
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
69
+ className: "flex items-center gap-1",
70
+ children: [
71
+ headerExtra,
72
+ onClose && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
73
+ type: "button",
74
+ onClick: onClose,
75
+ title: "Close",
76
+ "aria-label": "Close",
77
+ className: "grid size-6 place-items-center rounded text-foreground-muted transition hover:bg-surface-overlay hover:text-foreground",
78
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X, {
79
+ size: 14
80
+ })
81
+ })
82
+ ]
77
83
  })
78
84
  ]
79
85
  }),
@@ -1,3 +1,3 @@
1
1
  import type { NodePropertyPanelProps } from './NodePropertyPanel.types';
2
- export declare function NodePropertyPanel({ panelTitle, onClose, nodeIcon, nodeLabel, nodeCategory, action, schema, plugins, onSubmit, disabled, resetKey, className, contentInset, children, }: NodePropertyPanelProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function NodePropertyPanel({ panelTitle, onClose, nodeIcon, nodeLabel, nodeCategory, action, schema, plugins, onSubmit, disabled, resetKey, className, contentInset, children, headerExtra, }: NodePropertyPanelProps): import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=NodePropertyPanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NodePropertyPanel.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodePropertyPanel/NodePropertyPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAiCxE,wBAAgB,iBAAiB,CAAC,EAChC,UAAU,EACV,OAAO,EACP,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,MAAM,EACN,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,YAAuB,EACvB,QAAQ,GACT,EAAE,sBAAsB,2CA6FxB"}
1
+ {"version":3,"file":"NodePropertyPanel.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodePropertyPanel/NodePropertyPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAiCxE,wBAAgB,iBAAiB,CAAC,EAChC,UAAU,EACV,OAAO,EACP,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,MAAM,EACN,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,YAAuB,EACvB,QAAQ,EACR,WAAW,GACZ,EAAE,sBAAsB,2CAgGxB"}
@@ -5,7 +5,7 @@ import { useMemo } from "react";
5
5
  const SURFACE_REMAP = {
6
6
  '--surface-raised': 'var(--surface-overlay)'
7
7
  };
8
- function NodePropertyPanel({ panelTitle, onClose, nodeIcon, nodeLabel, nodeCategory, action, schema, plugins, onSubmit, disabled, resetKey, className, contentInset = '1.5rem', children }) {
8
+ function NodePropertyPanel({ panelTitle, onClose, nodeIcon, nodeLabel, nodeCategory, action, schema, plugins, onSubmit, disabled, resetKey, className, contentInset = '1.5rem', children, headerExtra }) {
9
9
  const hasNodeHeader = !!(nodeLabel || nodeCategory || nodeIcon || action);
10
10
  const formSchema = useMemo(()=>schema && void 0 === schema.actions ? {
11
11
  ...schema,
@@ -37,15 +37,21 @@ function NodePropertyPanel({ panelTitle, onClose, nodeIcon, nodeLabel, nodeCateg
37
37
  })
38
38
  ]
39
39
  }),
40
- onClose && /*#__PURE__*/ jsx("button", {
41
- type: "button",
42
- onClick: onClose,
43
- title: "Close",
44
- "aria-label": "Close",
45
- className: "grid size-6 place-items-center rounded text-foreground-muted transition hover:bg-surface-overlay hover:text-foreground",
46
- children: /*#__PURE__*/ jsx(X, {
47
- size: 14
48
- })
40
+ /*#__PURE__*/ jsxs("div", {
41
+ className: "flex items-center gap-1",
42
+ children: [
43
+ headerExtra,
44
+ onClose && /*#__PURE__*/ jsx("button", {
45
+ type: "button",
46
+ onClick: onClose,
47
+ title: "Close",
48
+ "aria-label": "Close",
49
+ className: "grid size-6 place-items-center rounded text-foreground-muted transition hover:bg-surface-overlay hover:text-foreground",
50
+ children: /*#__PURE__*/ jsx(X, {
51
+ size: 14
52
+ })
53
+ })
54
+ ]
49
55
  })
50
56
  ]
51
57
  }),
@@ -14,6 +14,7 @@ export interface NodePropertyPanelProps {
14
14
  resetKey?: string;
15
15
  className?: string;
16
16
  contentInset?: string;
17
+ headerExtra?: ReactNode;
17
18
  children?: ReactNode;
18
19
  }
19
20
  //# sourceMappingURL=NodePropertyPanel.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NodePropertyPanel.types.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodePropertyPanel/NodePropertyPanel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,sBAAsB;IAKrC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,MAAM,CAAC,EAAE,SAAS,CAAC;IAMnB,MAAM,CAAC,EAAE,UAAU,CAAC;IAMpB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IAEvB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAMnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,YAAY,CAAC,EAAE,MAAM,CAAC;IAQtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"NodePropertyPanel.types.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodePropertyPanel/NodePropertyPanel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,sBAAsB;IAKrC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,OA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