@uipath/apollo-react 6.42.0 → 6.44.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.
Files changed (52) hide show
  1. package/dist/canvas/components/CanvasTakeoverModal/CanvasTakeoverModal.cjs +21 -104
  2. package/dist/canvas/components/CanvasTakeoverModal/CanvasTakeoverModal.d.ts +1 -1
  3. package/dist/canvas/components/CanvasTakeoverModal/CanvasTakeoverModal.d.ts.map +1 -1
  4. package/dist/canvas/components/CanvasTakeoverModal/CanvasTakeoverModal.js +24 -97
  5. package/dist/canvas/components/NodePropertyPanel/EditableText.cjs +28 -16
  6. package/dist/canvas/components/NodePropertyPanel/EditableText.d.ts +4 -2
  7. package/dist/canvas/components/NodePropertyPanel/EditableText.d.ts.map +1 -1
  8. package/dist/canvas/components/NodePropertyPanel/EditableText.js +28 -16
  9. package/dist/canvas/components/NodePropertyPanel/NodePropertyPanel.cjs +7 -3
  10. package/dist/canvas/components/NodePropertyPanel/NodePropertyPanel.d.ts +1 -1
  11. package/dist/canvas/components/NodePropertyPanel/NodePropertyPanel.d.ts.map +1 -1
  12. package/dist/canvas/components/NodePropertyPanel/NodePropertyPanel.js +7 -3
  13. package/dist/canvas/components/NodePropertyPanel/NodePropertyPanel.types.d.ts +2 -0
  14. package/dist/canvas/components/NodePropertyPanel/NodePropertyPanel.types.d.ts.map +1 -1
  15. package/dist/canvas/styles/tailwind.canvas.css +1 -1
  16. package/dist/material/components/ap-chat/locales/de.cjs +1 -1
  17. package/dist/material/components/ap-chat/locales/de.d.ts.map +1 -1
  18. package/dist/material/components/ap-chat/locales/de.js +1 -1
  19. package/dist/material/components/ap-chat/locales/es-MX.cjs +1 -1
  20. package/dist/material/components/ap-chat/locales/es-MX.d.ts.map +1 -1
  21. package/dist/material/components/ap-chat/locales/es-MX.js +1 -1
  22. package/dist/material/components/ap-chat/locales/es.cjs +1 -1
  23. package/dist/material/components/ap-chat/locales/es.d.ts.map +1 -1
  24. package/dist/material/components/ap-chat/locales/es.js +1 -1
  25. package/dist/material/components/ap-chat/locales/fr.cjs +1 -1
  26. package/dist/material/components/ap-chat/locales/fr.d.ts.map +1 -1
  27. package/dist/material/components/ap-chat/locales/fr.js +1 -1
  28. package/dist/material/components/ap-chat/locales/ja.cjs +1 -1
  29. package/dist/material/components/ap-chat/locales/ja.d.ts.map +1 -1
  30. package/dist/material/components/ap-chat/locales/ja.js +1 -1
  31. package/dist/material/components/ap-chat/locales/ko.cjs +1 -1
  32. package/dist/material/components/ap-chat/locales/ko.d.ts.map +1 -1
  33. package/dist/material/components/ap-chat/locales/ko.js +1 -1
  34. package/dist/material/components/ap-chat/locales/pt-BR.cjs +1 -1
  35. package/dist/material/components/ap-chat/locales/pt-BR.d.ts.map +1 -1
  36. package/dist/material/components/ap-chat/locales/pt-BR.js +1 -1
  37. package/dist/material/components/ap-chat/locales/pt.cjs +1 -1
  38. package/dist/material/components/ap-chat/locales/pt.d.ts.map +1 -1
  39. package/dist/material/components/ap-chat/locales/pt.js +1 -1
  40. package/dist/material/components/ap-chat/locales/ro.cjs +1 -1
  41. package/dist/material/components/ap-chat/locales/ro.d.ts.map +1 -1
  42. package/dist/material/components/ap-chat/locales/ro.js +1 -1
  43. package/dist/material/components/ap-chat/locales/tr.cjs +1 -1
  44. package/dist/material/components/ap-chat/locales/tr.d.ts.map +1 -1
  45. package/dist/material/components/ap-chat/locales/tr.js +1 -1
  46. package/dist/material/components/ap-chat/locales/zh-CN.cjs +1 -1
  47. package/dist/material/components/ap-chat/locales/zh-CN.d.ts.map +1 -1
  48. package/dist/material/components/ap-chat/locales/zh-CN.js +1 -1
  49. package/dist/material/components/ap-chat/locales/zh-TW.cjs +1 -1
  50. package/dist/material/components/ap-chat/locales/zh-TW.d.ts.map +1 -1
  51. package/dist/material/components/ap-chat/locales/zh-TW.js +1 -1
  52. package/package.json +2 -2
@@ -5,10 +5,10 @@ import { useMemo } from "react";
5
5
  import { useSafeLingui } from "../../../i18n/index.js";
6
6
  import { EditableText } from "./EditableText.js";
7
7
  const SURFACE_REMAP = 'future:[--surface-raised:var(--surface-overlay)]';
8
- function NodePropertyPanel({ panelTitle, dragHandleProps, onClose, nodeIcon, nodeLabel, nodeCategory, nodeDescription, nodeLabelPlaceholder, nodeDescriptionPlaceholder, onNodeLabelChange, onNodeDescriptionChange, nodeLabelError, nodeDescriptionError, action, schema, plugins, onSubmit, disabled, autoComplete, resetKey, className, contentInset = '1.5rem', children, headerExtra, sectionVariant, activeStepId, onActiveStepChange }) {
8
+ function NodePropertyPanel({ panelTitle, dragHandleProps, onClose, nodeIcon, nodeLabel, nodeCategory, nodeDescription, nodeLabelPlaceholder, nodeDescriptionPlaceholder, onNodeLabelChange, onNodeLabelSubmit, onNodeDescriptionChange, onNodeDescriptionSubmit, nodeLabelError, nodeDescriptionError, action, schema, plugins, onSubmit, disabled, autoComplete, resetKey, className, contentInset = '1.5rem', children, headerExtra, sectionVariant, activeStepId, onActiveStepChange }) {
9
9
  const { _ } = useSafeLingui();
10
- const isLabelEditable = !!onNodeLabelChange;
11
- const isDescriptionEditable = !!onNodeDescriptionChange;
10
+ const isLabelEditable = !!onNodeLabelChange && !!onNodeLabelSubmit;
11
+ const isDescriptionEditable = !!onNodeDescriptionChange && !!onNodeDescriptionSubmit;
12
12
  const showsDescription = !!nodeDescription || isDescriptionEditable || !!nodeDescriptionError;
13
13
  const showsLabel = !!nodeLabel || isLabelEditable || !!nodeLabelError;
14
14
  const hasNodeHeader = !!(showsLabel || nodeCategory || nodeIcon || action || showsDescription);
@@ -90,6 +90,8 @@ function NodePropertyPanel({ panelTitle, dragHandleProps, onClose, nodeIcon, nod
90
90
  }),
91
91
  size: "lg",
92
92
  onChange: onNodeLabelChange,
93
+ onSubmit: onNodeLabelSubmit,
94
+ disabled: disabled,
93
95
  error: nodeLabelError,
94
96
  "aria-label": _({
95
97
  id: 'canvas.node_property_panel.node_name',
@@ -107,6 +109,8 @@ function NodePropertyPanel({ panelTitle, dragHandleProps, onClose, nodeIcon, nod
107
109
  multiline: true,
108
110
  maxLines: 3,
109
111
  onChange: onNodeDescriptionChange,
112
+ onSubmit: onNodeDescriptionSubmit,
113
+ disabled: disabled,
110
114
  error: nodeDescriptionError,
111
115
  "aria-label": _({
112
116
  id: "canvas.node_property_panel.node_description",
@@ -11,7 +11,9 @@ export interface NodePropertyPanelProps {
11
11
  nodeLabelPlaceholder?: string;
12
12
  nodeDescriptionPlaceholder?: string;
13
13
  onNodeLabelChange?: (label: string) => void;
14
+ onNodeLabelSubmit?: (label: string) => void;
14
15
  onNodeDescriptionChange?: (description: string) => void;
16
+ onNodeDescriptionSubmit?: (description: string) => void;
15
17
  nodeLabelError?: ReactNode;
16
18
  nodeDescriptionError?: ReactNode;
17
19
  action?: ReactNode;
@@ -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,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,sBAAsB;IAKrC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,eAAe,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,CAAC,CAAC;IAEpE,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,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAEpC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAE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