@uipath/apollo-react 4.25.0 → 4.25.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.
@@ -97,6 +97,7 @@ const StageNodeHeaderInner = ({ props, isReadOnly, isException, status, handleTa
97
97
  children: [
98
98
  icon,
99
99
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StageTitleInput_cjs_namespaceObject.StageTitleInput, {
100
+ stageId: id,
100
101
  label: stageDetails.label,
101
102
  onChange: isReadOnly ? void 0 : onStageTitleChange,
102
103
  className: "flex-1 min-w-0"
@@ -1 +1 @@
1
- {"version":3,"file":"StageNodeHeader.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNodeHeader.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAgB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAqJnF,eAAO,MAAM,eAAe,wGAvHzB;IACD,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,kBAAkB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;CACvD,6CAiHwD,CAAC"}
1
+ {"version":3,"file":"StageNodeHeader.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNodeHeader.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAgB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAsJnF,eAAO,MAAM,eAAe,wGAxHzB;IACD,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,kBAAkB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;CACvD,6CAkHwD,CAAC"}
@@ -69,6 +69,7 @@ const StageNodeHeaderInner = ({ props, isReadOnly, isException, status, handleTa
69
69
  children: [
70
70
  icon,
71
71
  /*#__PURE__*/ jsx(StageTitleInput, {
72
+ stageId: id,
72
73
  label: stageDetails.label,
73
74
  onChange: isReadOnly ? void 0 : onStageTitleChange,
74
75
  className: "flex-1 min-w-0"
@@ -31,7 +31,7 @@ const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
31
31
  const external_react_namespaceObject = require("react");
32
32
  const external_CanvasTooltip_cjs_namespaceObject = require("../CanvasTooltip.cjs");
33
33
  const external_useStageNodeLabels_cjs_namespaceObject = require("./useStageNodeLabels.cjs");
34
- const StageTitleInput = ({ label: labelProp, onChange, className })=>{
34
+ const StageTitleInput = ({ stageId, label: labelProp, onChange, className })=>{
35
35
  const labels = (0, external_useStageNodeLabels_cjs_namespaceObject.useStageNodeLabels)();
36
36
  const isEditable = !!onChange;
37
37
  const [isEditing, setIsEditing] = (0, external_react_namespaceObject.useState)(false);
@@ -89,7 +89,9 @@ const StageTitleInput = ({ label: labelProp, onChange, className })=>{
89
89
  className: (0, apollo_wind_namespaceObject.cn)('flex min-h-7 w-full items-center rounded', isEditing && 'outline outline-1 -outline-offset-1 outline-[var(--canvas-border-de-emp)]'),
90
90
  children: isEditing ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("input", {
91
91
  ref: inputRef,
92
- name: "Stage Title",
92
+ name: `stage-title-${stageId}`,
93
+ "aria-label": `Stage title: ${label}`,
94
+ autoComplete: "off",
93
95
  value: label,
94
96
  onInput: handleChange,
95
97
  onKeyDown: handleKeyDown,
@@ -1,8 +1,9 @@
1
1
  type StageTitleInputProps = {
2
+ stageId: string;
2
3
  label: string;
3
4
  onChange?: (next: string) => void;
4
5
  className?: string;
5
6
  };
6
- export declare const StageTitleInput: ({ label: labelProp, onChange, className, }: StageTitleInputProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const StageTitleInput: ({ stageId, label: labelProp, onChange, className, }: StageTitleInputProps) => import("react/jsx-runtime").JSX.Element;
7
8
  export {};
8
9
  //# sourceMappingURL=StageTitleInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StageTitleInput.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageTitleInput.tsx"],"names":[],"mappings":"AAKA,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,4CAI7B,oBAAoB,4CAyFtB,CAAC"}
1
+ {"version":3,"file":"StageTitleInput.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageTitleInput.tsx"],"names":[],"mappings":"AAKA,KAAK,oBAAoB,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,qDAK7B,oBAAoB,4CA2FtB,CAAC"}
@@ -3,7 +3,7 @@ import { cn } from "@uipath/apollo-wind";
3
3
  import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
4
4
  import { CanvasTooltip } from "../CanvasTooltip.js";
5
5
  import { useStageNodeLabels } from "./useStageNodeLabels.js";
6
- const StageTitleInput = ({ label: labelProp, onChange, className })=>{
6
+ const StageTitleInput = ({ stageId, label: labelProp, onChange, className })=>{
7
7
  const labels = useStageNodeLabels();
8
8
  const isEditable = !!onChange;
9
9
  const [isEditing, setIsEditing] = useState(false);
@@ -61,7 +61,9 @@ const StageTitleInput = ({ label: labelProp, onChange, className })=>{
61
61
  className: cn('flex min-h-7 w-full items-center rounded', isEditing && 'outline outline-1 -outline-offset-1 outline-[var(--canvas-border-de-emp)]'),
62
62
  children: isEditing ? /*#__PURE__*/ jsx("input", {
63
63
  ref: inputRef,
64
- name: "Stage Title",
64
+ name: `stage-title-${stageId}`,
65
+ "aria-label": `Stage title: ${label}`,
66
+ autoComplete: "off",
65
67
  value: label,
66
68
  onInput: handleChange,
67
69
  onKeyDown: handleKeyDown,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "4.25.0",
3
+ "version": "4.25.1",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",