@uipath/apollo-react 3.51.0 → 3.51.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.
@@ -258,29 +258,17 @@ const ApToolCall = /*#__PURE__*/ external_react_default().forwardRef((props, ref
258
258
  const getStatusText = (0, external_react_namespaceObject.useMemo)(()=>{
259
259
  const status = getStatus;
260
260
  const toolCallName = toolName?.replace(/_/g, ' ') || span?.name?.replace('Tool call - ', '').replace(/_/g, ' ') || 'tool';
261
- if ('loading' === status) return _({
262
- id: 'tool-call.running',
263
- values: {
264
- toolCallName: toolCallName
265
- }
266
- });
261
+ if ('loading' === status) return `Running '${toolCallName}'`;
267
262
  const endTimeStamp = endTime || span?.data?.endTime;
268
263
  const startTimeStamp = startTime || span?.data?.startTime;
269
264
  const duration = endTimeStamp && startTimeStamp ? (new Date(endTimeStamp).getTime() - new Date(startTimeStamp).getTime()) / 1000 : 0;
270
- return _({
271
- id: 'tool-call.ran',
272
- values: {
273
- 0: duration.toFixed(2),
274
- toolCallName: toolCallName
275
- }
276
- });
265
+ return `Ran '${toolCallName}' for ${duration.toFixed(2)} seconds`;
277
266
  }, [
278
267
  getStatus,
279
268
  toolName,
280
269
  span,
281
270
  startTime,
282
- endTime,
283
- _
271
+ endTime
284
272
  ]);
285
273
  const handleKeyDown = (0, external_react_namespaceObject.useCallback)((event)=>{
286
274
  if ('Enter' === event.key || ' ' === event.key) {
@@ -1 +1 @@
1
- {"version":3,"file":"ApToolCall.d.ts","sourceRoot":"","sources":["../../../../src/material/components/ap-tool-call/ApToolCall.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAoD,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAoB,MAAM,oBAAoB,CAAC;AAuH5E,eAAO,MAAM,UAAU,wFA6RrB,CAAC"}
1
+ {"version":3,"file":"ApToolCall.d.ts","sourceRoot":"","sources":["../../../../src/material/components/ap-tool-call/ApToolCall.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAoD,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAoB,MAAM,oBAAoB,CAAC;AAuH5E,eAAO,MAAM,UAAU,wFA2RrB,CAAC"}
@@ -216,29 +216,17 @@ const ApToolCall = /*#__PURE__*/ react.forwardRef((props, ref)=>{
216
216
  const getStatusText = useMemo(()=>{
217
217
  const status = getStatus;
218
218
  const toolCallName = toolName?.replace(/_/g, ' ') || span?.name?.replace('Tool call - ', '').replace(/_/g, ' ') || 'tool';
219
- if ('loading' === status) return _({
220
- id: 'tool-call.running',
221
- values: {
222
- toolCallName: toolCallName
223
- }
224
- });
219
+ if ('loading' === status) return `Running '${toolCallName}'`;
225
220
  const endTimeStamp = endTime || span?.data?.endTime;
226
221
  const startTimeStamp = startTime || span?.data?.startTime;
227
222
  const duration = endTimeStamp && startTimeStamp ? (new Date(endTimeStamp).getTime() - new Date(startTimeStamp).getTime()) / 1000 : 0;
228
- return _({
229
- id: 'tool-call.ran',
230
- values: {
231
- 0: duration.toFixed(2),
232
- toolCallName: toolCallName
233
- }
234
- });
223
+ return `Ran '${toolCallName}' for ${duration.toFixed(2)} seconds`;
235
224
  }, [
236
225
  getStatus,
237
226
  toolName,
238
227
  span,
239
228
  startTime,
240
- endTime,
241
- _
229
+ endTime
242
230
  ]);
243
231
  const handleKeyDown = useCallback((event)=>{
244
232
  if ('Enter' === event.key || ' ' === event.key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "3.51.0",
3
+ "version": "3.51.1",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",